Mr Friday
08-02-2010, 12:55 PM
My application is located in my root folder.
I have a web.config file with a custom role manager.
When I try to look at my hosted site a get the error message :
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty.
Source Error:
Line 158: <roleManager>
Line 159: <providers>
Line 160: <add name="AspNetSqlRoleProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=**************"/>
Line 161: <add name="AspNetWindowsTokenRoleProvider" applicationName="/" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=************"/>
Line 162: </providers>
The thing is this is nothing like what I have in my web.config file, nowhere do I reference connection name 'LocalSqlServer' in my web.config file. My role manager section of my web.config is :
<roleManager enabled="true" defaultProvider="myCustomRoleProvider">
<providers>
<add connectionStringName="myOwnConnectionString" name="myCustomRoleProvider"
type="System.Web.Security.SqlRoleProvider" applicationName="myOwnApp" />
</providers>
</roleManager>
...so why am I getting the error message about having connection name 'LocalSqlServer' in my web.config file when I have not got this in my web.config file?
I have a web.config file with a custom role manager.
When I try to look at my hosted site a get the error message :
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty.
Source Error:
Line 158: <roleManager>
Line 159: <providers>
Line 160: <add name="AspNetSqlRoleProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=**************"/>
Line 161: <add name="AspNetWindowsTokenRoleProvider" applicationName="/" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=************"/>
Line 162: </providers>
The thing is this is nothing like what I have in my web.config file, nowhere do I reference connection name 'LocalSqlServer' in my web.config file. My role manager section of my web.config is :
<roleManager enabled="true" defaultProvider="myCustomRoleProvider">
<providers>
<add connectionStringName="myOwnConnectionString" name="myCustomRoleProvider"
type="System.Web.Security.SqlRoleProvider" applicationName="myOwnApp" />
</providers>
</roleManager>
...so why am I getting the error message about having connection name 'LocalSqlServer' in my web.config file when I have not got this in my web.config file?