hi hk:
first of all, thanks for your reply.
i still get confused of the configuration of web.config file. my project will be in the situation as i described below:
1. i created the project called"IVMembershipProvider" within the the same "solution" of the dnn website.
2.under the project, i directly create three .cs file(IVMembershipProvider.cs, IVMembershipDataProvider. cs, IVRoleProvider.cs) which replace the default provider defined in dnn provider(AspNetMembershipProvider.vb, AspNetSqlMembershipProvider.vb and DNNRoleProvider.vb) respectively.
3. I already write some necessary methods (override) to execute my function based on my customer membership provider. they can work well as i expected.
4. in the web.config file under the dnn website, i already modify some configure like:
a.
<
members defaultProvider="IVMembershipProvider">providers>clear/>add name="IVMembershipProvider" type="IVMembershipProvider.IVMembershipProvider, IVMembershipProvider.Provider.IVMembershipProvider" providerPath="~\Providers\MembershipProviders\IVMembershipProvider\"/>providers>members>
<
<
<
</
</
b. c. above two points are the all place i made the modification to original web.config file
<
roles defaultProvider="IVMembershipProvider">providers>clear/>add name="IVMembershipProvider" type="IVMembershipProvider.IVMembershipProvider, IVMembershipProvider.Provider.IVRoleProvider" providerPath="~\Providers\MembershipProviders\IVMembershipProvider\"/>providers>roles>
<
<
<
</
</
when i only run the project(set as startup project) the debug will be successful, then a blank page will be launched at the end.
when i run the website (set as the startup project) the debug also out of error. but the published page has error message like:
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:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
[ArgumentNullException: Value cannot be null.
Parameter name: type]
System.Activator.CreateInstance(Type type, Boolean nonPublic) +2796723
System.Activator.CreateInstance(Type type) +6
DotNetNuke.Framework.Reflection.CreateObject(String TypeName, String CacheKey, Boolean UseCache) +223
DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectProviderName, String ObjectNamespace, String ObjectAssemblyName, Boolean UseCache) +803
DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, Boolean UseCache) +56
DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType) +36
DotNetNuke.Security.Membership.MembershipProvider.CreateProvider() +40
DotNetNuke.Security.Membership.MembershipProvider..cctor() +27
[TypeInitializationException: The type initializer for 'DotNetNuke.Security.Membership.MembershipProvider' threw an exception.]
DotNetNuke.Security.Membership.MembershipProvider.Instance() +0
DotNetNuke.Entities.Users.UserController..cctor() +20
[TypeInitializationException: The type initializer for 'DotNetNuke.Entities.Users.UserController' threw an exception.]
DotNetNuke.Entities.Users.UserController.GetUserCountByPortal(Int32 portalId) +0
DotNetNuke.Entities.Portals.PortalInfo.get_Users() +51
DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) +2830
DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) +98
DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +6423
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +167
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +117
|
Server Error in '/Website' Application.
Value cannot be null.
Parameter name: type
i think there are should be something wrong in the web.config file. but i have no idea about it, could you give some suggestion, i will appreciate any advise
Thanks