Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Chris 8 posts 26 karma points
    Jul 18, 2009 @ 03:07
    Chris
    0

    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.

  • Chris 8 posts 26 karma points
    Jul 18, 2009 @ 04:14
    Chris
    0

    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.

  • Chris Dunn 75 posts 127 karma points
    Jul 18, 2009 @ 04:45
    Chris Dunn
    1

    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

  • Ron Brouwer 273 posts 768 karma points
    Jul 18, 2009 @ 11:30
    Ron Brouwer
    1

    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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies