Hey Folks,
For the record, I'm hoping that this starts to click soon...
I've been making some progress on what I want to do. I've got my class showing up in the DNN solution toolbox now (after I added the project which I had initially built it in), but, when I try to add it to an ascx, I don't get a good result. In fact, I'm getting this:
Error: 2 test is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Unable to cast object of type 'ASP.desktopmodules_atest_atest_ascx' to type 'DotNetNuke.Entities.Modules.PortalModuleBase'. ---> System.InvalidCastException: Unable to cast object of type 'ASP.desktopmodules_atest_atest_ascx' to type 'DotNetNuke.Entities.Modules.PortalModuleBase'. at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) in C:\Projects\DotNetNuke\Library\Components\Skins\Skin.vb:line 492 --- End of inner exception stack trace ---
Now, this class is working when I run the project in standalone mode with the class on an ascx control on the default page, (not within the DNN instance), but when I add the project to the DNN solution, then try to drop the class onto a new ascx control within the desktop modules directory, I get the error shown above...
Any thoughts, tips, fixes would be appreciated.
Brian