I have created a user control in Visual Studio that references my own Business Logic Layer that is in it's own class library. I can run it in Visual Studio with no problems. However when I import it into Umbraco I have a Null Reference Exception occur when it's trying to access my BLL. Now it looks like it can't find the BLL.
I have copiped my BLL.dll and UserControl.dll to the Umbraco bin directory.
Is this a limitation with Umbraco? Am I doing something wrong?
Found the issue. Wasn't the external reference at all. It was throwing an error, but I never got to see what it was. The error was the connection string in the end, but fixed.
You may already know this, but a helpful hint to debug you custom code against an umbraco installation is to attach your VS project to the w3wp.exe process by choosing Tools -> Attach To Process in VS and selecting w3wp.exe. This lets you set break points in your code to see what happening. Note that it has to be a local umbraco installation.
Using your own BLL
Hi Guys,
I have created a user control in Visual Studio that references my own Business Logic Layer that is in it's own class library. I can run it in Visual Studio with no problems. However when I import it into Umbraco I have a Null Reference Exception occur when it's trying to access my BLL. Now it looks like it can't find the BLL.
I have copiped my BLL.dll and UserControl.dll to the Umbraco bin directory.
Is this a limitation with Umbraco? Am I doing something wrong?
Cheer.
Ok,
Found the issue. Wasn't the external reference at all. It was throwing an error, but I never got to see what it was. The error was the connection string in the end, but fixed.
You may already know this, but a helpful hint to debug you custom code against an umbraco installation is to attach your VS project to the w3wp.exe process by choosing Tools -> Attach To Process in VS and selecting w3wp.exe. This lets you set break points in your code to see what happening. Note that it has to be a local umbraco installation.
Glad you solved it :)
-Chris
A litle addition: I is also posible te debug on a server. All you need to do is do is setup remote debugging.
Folow the steps described here:
http://msdn.microsoft.com/en-us/library/bt727f1t.aspx
Ron
is working on a reply...