My web.config file
<?xml version="1.0"?> <configuration> <system.web> <compilation debug="false" targetFramework="4.0"/> <customErrors mode="Off"/> <httpRuntime maxRequestLength="11264"/> </system.web> <appSettings> <add key="enableSimpleMembership" value="true"/> </appSettings> <connectionStrings> <add name="SQL" connectionString="server=***; database=***; uid=***; pwd=***" providerName="System.Data.SqlClient"/> </connectionStrings> </configuration>
Error :
Server Error in '/' Application. Configuration Error 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 233: <membership> Line 234: <providers> Line 235: <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression="" /> Line 236: </providers> Line 237: </membership> Source File: C:WINDOWSMicrosoft.NETFrameworkv4.0.30319Configmachine.config Line: 235 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1025
Add a
clear element to you connection string config sections
Try with the below modified config settings
<?xml version="1.0"?> <configuration> <system.web> <compilation debug="false" targetFramework="4.0"/> <customErrors mode="Off"/> <httpRuntime maxRequestLength="11264"/> </system.web> <appSettings> <add key="enableSimpleMembership" value="true"/> </appSettings> <connectionStrings> <clear /> <add name="SQL" connectionString="server=****; database=*****; uid=*****; pwd=******" providerName="System.Data.SqlClient"/> </connectionStrings> </configuration>
not much has changed
kortmazsefa
not much has changed
Are you using SQLMemberShip in your application?
yes I am using the
membership system
You can try with the solution suggested in below link
When I try to give
you the address
of the same proposal
again
Hi kortmazsefa,
Thanks for your post.
According to the error that you provided,I suggest that you can try these solutions:
1.go to IIS. Selected defualt website and clicked on modules. Under modules just remove System.Web.Security.RoleManagerModule.
2.
You need to remove it from your config:
<remove name="AspNetSqlMembershipProvider" />Or, better yet,
<clear />Hope this can be helpful.
Best Regards,
Eileen