Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...broke my web.config and maybe machine.configbroke my web.config and maybe machine.config
Previous
 
Next
New Post
3/15/2016 12:26 PM
 
I was cleaning up some old MySQL settings in my machine.config file and may have deleted a SQL/DNN related line without realizing it...

While other sites on my IIS are starting fine, I have a DNN host site that is not. It is stating Default Role Provider could not be found.

In the DNN site's web.config, it has









In my connectionStrings section of web.config, I have




Ideally, I don't think anything should have been in machine.config that was related to DNN or SQL, but that's the only obvious change I made, recklessly, I know..... Where do I look in machine.config to fix this OR how do I fix the DNN site's web.config file so that all of it's settings are self contained?
 
New Post
3/15/2016 7:51 PM
 
please add a blank after opening "<"

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/15/2016 10:13 PM
 

I think you're reply is because my original post blanked out my two sections of my web.config file?  Here they are again, hopefully I do it right this time.  (and for the record, sql server is running and can connect/read/write with user credentials specified)..

Connection Strings

 <connectionStrings>

       <remove name="LocalSqlServer" />  

    <!-- Connection String for SQL Server 2008/2012 Express -->

    <add name="SiteSqlServer" connectionString="Data Source=IIS\SQLExpress;Initial Catalog=DNN74;User ID=***;Password=***" providerName="System.Data.SqlClient" />

        <add connectionString="Server=IIS\SQLExpress;Database=DNN74;User ID=***;Password=***" name="LocalSqlServer" providerName="System.Data.SqlClient" />

   

    <!-- Connection String for SQL Server 2008/2012

    <add name="SiteSqlServer" connectionString="Server=(local);Database=DotNetNuke;uid=;pwd=;" providerName="System.Data.SqlClient" /> 

    -->

  </connectionStrings>

 

and the Providers

 <authentication defaultProvider="ADSIAuthenticationProvider">

      <providers>

        <clear />

        <add name="ADSIAuthenticationProvider" type="DotNetNuke.Authentication.ActiveDirectory.ADSI.ADSIProvider, DotNetNuke.Authentication.ActiveDirectory" providerPath="~\Providers\AuthenticationProviders\ADSIProvider\" />

      </providers>

    </authentication>

    <members defaultProvider="AspNetMembershipProvider">

      <providers>

        <clear />

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

      </providers>

    </members>

    <roles defaultProvider="DNNRoleProvider"> 

      <providers>

        <clear />

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

      </providers>

    </roles> 

    <profiles defaultProvider="DNNProfileProvider">

      <providers>

        <clear />

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

      </providers>

    </profiles>

    <permissions defaultProvider="CorePermissionProvider">

      <providers>

        <clear />

        <add name="CorePermissionProvider" type="DotNetNuke.Security.Permissions.CorePermissionProvider, DotNetNuke" providerPath="~\Providers\PermissionProviders\CorePermissionProvider\" />

      </providers>

    </permissions>

 

 
New Post
3/16/2016 4:23 AM
 
role provider looks fine, the "roles" section should also be listed at the top.
I suggest comparing your web.config with a web.config from downloaded install package of the DNN version you are running.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...broke my web.config and maybe machine.configbroke my web.config and maybe machine.config


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out