Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hi,

I have created a usercontrol in asp.net to place it in my DNN site..
But when I place the control in DNN, It shows this exception..

Error: Control is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() --- End of inner exception stack trace 


Doesn't DNN support Raw ASP.NET controls ??
Posted
Updated 27-Aug-13 23:56pm
v2
Comments
Dave Kreskowiak 28-Aug-13 9:28am    
Why are you asking here and not on the DotNetNuke forums? Where do you think you'd find the highest concentration of DotNetNuke users?
Yesudasan Moses 29-Aug-13 5:02am    
then, why there is a dotnetnuke tag in code project ??
Dave Kreskowiak 29-Aug-13 8:33am    
Tags are automatically created if someone uses one that doesn't already exist. The only reason the tag is there is because someone posted a message and typed that in manually in the Tags section.

The "dotnetnuke" tag has been used less than 60 times and the vast majority of those questions go unanswered.

My point still stands.
syed shanu 1-Sep-13 21:51pm    
Hi Yesudasan,
Dotnet Nuke will not use ASP.net Page UI.You should Implement DNN PortalmoduleBase Class in your pae.Import DNN bass Lib to ur page.and insted of implementing asp.net page.ui implement DNN Portalmodulebase class.DNN will support all asp.net controls.
Yesudasan Moses 2-Sep-13 5:35am    
Thanks syed shanu :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900