Forums

 
  Support Forum  DNN General Dis...  Membership Prov...  Runtime error in DotNetNuke 4.9.1 with sample code applied
Previous Previous
 
Next Disabled
New Post 3/9/2009 11:23 AM
  AfroMann
1 posts
No Ranking


Runtime error in DotNetNuke 4.9.1 with sample code applied 

I am hoping to get a bit of help with your sample code. I've got a DotNetNuke 4.9.1 site up and going on my development server. I've downloaded your sample code and the authentication site working. I've gone through the Membership Sample Setup Guide.doc instructions in detail. The DotNetNuke Solution compiles but when I try to navigate to the home directory, I get the following error. Do you have any idea of what is going on here?? Any help would be greatly appreciated...

 

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: type

Source Error:

[No relevant source lines]

Source File: Reflection.vb    Line: 227

Stack Trace:

[ArgumentNullException: Value cannot be null.
Parameter name: type]
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +2843963
   System.Activator.CreateInstance(Type type) +6
   DotNetNuke.Framework.Reflection.CreateObject(String TypeName, String CacheKey, Boolean UseCache) in Reflection.vb:227
   DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectProviderName, String ObjectNamespace, String ObjectAssemblyName, Boolean UseCache) in Reflection.vb:189
   DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, Boolean UseCache) in Reflection.vb:76
   DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType) in Reflection.vb:60
   DotNetNuke.Security.Membership.MembershipProvider.CreateProvider() in MembershipProvider.vb:42
   DotNetNuke.Security.Membership.MembershipProvider..cctor() in MembershipProvider.vb:37

[TypeInitializationException: The type initializer for 'DotNetNuke.Security.Membership.MembershipProvider' threw an exception.]
   DotNetNuke.Security.Membership.MembershipProvider.Instance() in MembershipProvider.vb:48
   DotNetNuke.Entities.Users.UserController..cctor() in UserController.vb:60

[TypeInitializationException: The type initializer for 'DotNetNuke.Entities.Users.UserController' threw an exception.]
   DotNetNuke.Entities.Users.UserController.GetUserCountByPortal(Int32 portalId) in UserController.vb:586
   DotNetNuke.Entities.Portals.PortalInfo.get_Users() in PortalInfo.vb:312
   DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) in PortalSettings.vb:661
   DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) in PortalSettings.vb:551
   DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) in UrlRewriteModule.vb:484
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

 
New Post 4/24/2009 9:16 AM
  Henry Kenuam
29 posts
9th Level Poster


Re: Runtime error in DotNetNuke 4.9.1 with sample code applied 

AfroMann,

 

Sorry for the very delayed response.

 

If you've not already found the solution to this problem. Please set a breakpoint on the CreateInstance(Type type, Boolean nonPublic) method located

in the Reflection.vb class.

If you inspect the type parameter I think you'll see that the type that is trying to be created does not match your namespace/assembly name for your

project.

 

Hope this helps.


Henry Kenuam
Engage Software
St. Louis, MO
314.966.4000



The leading provider of DotNetNuke support, training and custom development.
 
Previous Previous
 
Next Disabled
  Support Forum  DNN General Dis...  Membership Prov...  Runtime error in DotNetNuke 4.9.1 with sample code applied

Purchase

Please click here to buy now.
Payment will be processed via credit card or PayPal.

Please click here to buy now.
Payment will be processed via credit card or PayPal.

Test Drive!

Want to find out how it works? Visit our demo site to see the modules in actions!

Want to find out how it works? Visit our demo site to see the modules in actions!

Subscribe

Sign up for our newsletter and get the latest product updates!

Sign up for our newsletter and get the latest product updates!

Online Support

Powered by DotNetNuke