So, you’re going about your business, you upgrade your DotNetNuke 5.6.2 site to the latest, greatest version 6.0 that the world has been so vocal about, and then you go to use one of your favorite modules, dnnWerk Users. After adding it to the page, you click the update settings button and you end up with this, the dreaded “Object reference not set to an instance of an object” error. Oh no!
So, like any good DotNetNuke community member, you run to G+, Twitter or the Forums without doing any troubleshooting of your own. WRONG! First you take a look at the error message under Admin > Event Viewer, see if the text of the error means anything to you, see what you can do to fix it. Then you try uninstalling the module, reinstalling the module, changing skins and containers, etc., etc. When at last you have exhausted the possibilities using your own brain, you post your questions in the appropriate places.
I find Twitter and G+ to be the most responsive of places to get questions answered, so I went there first and got several recommendations, anything from re-uploading the .dll’s in the /bin directory of my install to checking if a different skin or container worked. In the end, Brian Dukes saw the simple message in the error that there was more than one instance of a Telerik Rad Stylesheet Manager. This part of the error message read, “There must be only one instance of RadStyleSheetManager per page.” He noticed there was a reference to said object in the uc_Manage.ascx file.
This file is located at the root of your DNN install in DesktopModulesAdmindnnWerk.Users…
Open the file and remove the following line:
<dnnWerk:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" EnableStyleSheetCombine="true"> </dnnWerk:RadStyleSheetManager>
Save the file and restart the application from Host > Host Settings. Or you can CNTRL + F5 to refresh everything. And then you get back to your lovely dnnWerk User module, so the world now has order once more. Now, of course, you probably don’t want to throw that module on your home page, but hey, for the sake of a quick demo, you get the point.
To download the latest copy of the FREE Community Edition of DotNetNuke, visit http://www.dotnetnuke.com.
To download the latest copy of dnnWerk Users, visit http://dnnusers.codeplex.com.
