Copied to clipboard

Flag this post as spam?

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


  • Jon Boyer 37 posts 59 karma points
    Aug 01, 2011 @ 06:26
    Jon Boyer
    0

    Initalising connectionstring in xslt extension method.

    Hi,

     

    I've created an an extension class and registered it in the config file.  So far so good.

     

    The extension class contains two methods - the first returns a static string "Hello World".  When I use this extension method in an xslt file it works, so I know that I've registered the class correctly.

     

    The second class references one of our standard internal factory classes (pre compiled in a dll) that calls a staff database and returns a string.  I've tested this class in a stand-alone aspx page, and it returns correctly.  However, it umbraco it returns a "ConnectionString property has not been initialized." 

     

    I've copied all the dlls for extension class and the factory class to the bin folder.  Do I have to register both of them in the xsltExtensions.config file, or just the one containing the actual extension class?  Or do I have to register the factory class somwhere else?

  • 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