Please help to solve the problem. This is working correct in my system but when i put this in remote server i got this problem. 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 281: <providers> Line 282: <add name="AspNetSqlRoleProvider" connectionStringName="LocalSqlServer" applicationName="/" Line 283: type="System.Web.Security.SqlRoleProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> Line 284: <add name="AspNetWindowsTokenRoleProvider" applicationName="/" Line 285: type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> Source File: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config Line: 283 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1 ------------------------------- my web.config file as below. <?xml version="1.0"?> <configuration> <connectionStrings> <add name="qfindsDBConnectionString" connectionString="XXXXXXXXXXXXXXXXXXXX;Initial Catalog=XXXXXXXXXXXXX;User ID=XXXXXXXXXXXX;Password=XXXXXXXXXXXXXX" providerName="System.Data.SqlClient"/> </connectionStrings> <authentication mode="Forms"> <forms loginUrl="~/Account/Login.aspx" timeout="2880" /> </authentication> <membership> <providers> <clear /> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="qfindsDBConnectionString" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/qfinds" /> </providers> </membership> <profile> <providers> <clear /> <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="qfindsDBConnectionString" applicationName="/qfinds" /> </providers> </profile> <roleManager enabled="true"> <providers> <clear /> <add connectionStringName="qfindsDBConnectionString" applicationName="/qfinds" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" /> <add applicationName="/qfinds" name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" /> </providers> </roleManager> . . . . . . . . . . ------------------------------------ please help me... thanks.
Hi Bruce I am not a experinced programmer. connection string is below ? Thanks <connectionStrings> <add name="qfindsDBConnectionString" connectionString="XXXXXXXXXXXXXXXXXXXX;Initial Catalog=XXXXXXXXXXXXX;User ID=XXXXXXXXXXXX;Password=XXXXXXXXXXXXXX" providerName="System.Data.SqlClient"/> </connectionStrings>