Web.config changes

Top  Previous  Next

 

ATTENTION:

Make sure that you have backup copy of web.config file BEFORE making any changes !

 

 

Because the module replaces the default DotNetNuke membership, role and profile providers you will have to tell DNN what providers it should now use.

This is done by changing the entries in web.config configuration file.

 

The web.config file can be found in main DotNetNuke installation directory.

There are two sample web.config files delivered with the module.

 

Please open it, open your original web.config file and Cut & Paste the marked section from original to the sample.

Now backup the original file to another location, rename the modified sample file to web.config and copy it to your web.

Optionally you can Cut & Paste the marked sections from the sample to your own web.config file.  

If you changed the databaseOwner and/or objectQualifier strings, please make sure that you enter them again in text being replaced!

 

Now you are ready to start using the module. Please see "The User Interface” section of this document.

 

 

 

Below is a forum post with customer experience in installing/uninstalling the module.

 

This is what we did to make the appropriate changes to the web.config for MPUS Xtreme:
MAKE A BACKUP OF YOUR CURRENT WEB.CONFIG FIRST!!!
1)  Open web.config in text editor (preferably an IDE with color coding i.e. VS or VWD)
2)  Do a search for "<\httpModules>"
3)  Go up one line and make a new line (hit the enter key)
4)  Paste the following code from the sample file:

<!--start MPUS-X entries-->

<add name="MPUSX" type="DNNMasters.MPUS.X.HttpModule.Module,DNNMasters.MPUS-X.HttpModule" />

<add name="DNNMembershipX" type="DNNMasters.MPUS.X.HTTPMembership.HTTPMembership,DNNMasters.MPUS-X.HTTPMembership" />

<add name="MPUS2X" type="DNNMasters.MPUS.X.HttpModule2.Module2,DNNMasters.MPUS-X.HttpModule2" />

<!--end MPUS-X entries-->
 
5) Now go up a few lines and find the previous entry for "add name="DNNMembership" and comment this line out.
    <add name="DNNMembership" type="DotNetNuke.HttpModules.DNNMembershipModule, DotNetNuke.HttpModules.DNNMembership"/>

 
6)  Go to the end of the web.config file or if your file is different search for:

<members defaultProvider="AspNetMembershipProvider">

<providers>

<clear />

<add name="AspNetMembershipProvider" type="DotNetNuke.Security.Membership.AspNetMembershipProvider, DotNetNuke.Provider.AspNetProvider" providerPath="~\Providers\MembershipProviders\AspNetMembershipProvider\" />

</providers>

</members>

<roles defaultProvider="DNNRoleProvider">

<providers>

<clear />

<add name="DNNRoleProvider" type="DotNetNuke.Security.Membership.DNNRoleProvider, DotNetNuke.Provider.DNNProvider" providerPath="~\Providers\MembershipProviders\DNNMembershipProvider\" />

</providers>

</roles>

<profiles defaultProvider="DNNProfileProvider">

<providers>

<clear />

<add name="DNNProfileProvider" type="DotNetNuke.Security.Profile.DNNProfileProvider, DotNetNuke.Provider.DNNProvider" providerPath="~\Providers\MembershipProviders\DNNMembershipProvider\" />

</providers>

</profiles>
 
And comment this whole section out.
 
7) Copy and paste the information from the MPUS X sample file or:

<!--start MPUS-X entries-->

<members defaultProvider="MPUSMembershipProvider">

<providers>

<clear />

<add name="MPUSMembershipProvider" type="DNNMasters.MPUS.X.MPUSMembershipProvider.MPUSMembershipProvider,DNNMasters.MPUS-X.MembershipProvider"

providerPath="~\Providers\MembershipProviders\MPUSMembershipProvider\" />

</providers>

</members>

<roles defaultProvider="MPUSRoleProvider">

<providers>

<clear />

<add name="MPUSRoleProvider" type="DNNMasters.MPUS.X.MPUSRoleProvider.MPUSRoleProvider,DNNMasters.MPUS-X.RoleProvider"

providerPath="~\Providers\MembershipProviders\MPUSRoleProvider\" />

</providers>

</roles>

<profiles defaultProvider="MPUSProfileProvider">

<providers>

<clear />

<add name="MPUSProfileProvider" type="DNNMasters.MPUS.X.MPUSProfileProvider.MPUSProfileProvider,DNNMasters.MPUS-X.ProfileProvider"

providerPath="~\Providers\MembershipProviders\MPUSProfileProvider\" />

</providers>

</profiles>

<!--end MPUS-X entries-->
 
8)  I strongly suggest that you just comment out the old areas and add the new sections.
 
If you find that you need/want to uninstall this module be sure TO REMOVE PORTAL FROM THE SHARED AREA first! 
 
After removing portals from a shared area, then delete the modules (Navigator and Shared area manager) from the tab (page) that they reside on.
 
Then uninstall the module from the HOST menu as the known DNN procedure.  The uninstallation will delete the tables used by MPUS Xtreme.
 
At least this is what we have found to work installing and uninstalling MPUS X.