Hi I sometimes get the following 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: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Source Error:
Line 61: applicationName="/" Line 62:
name="MySqlRoleProvider" Line 63:
type="MySql.Web.Security.MySQLRoleProvider, MySql.Web,Version=6.5.4.0,
Culture=neutral,PublicKeyToken=c5687fc88969c44d" Line 64: Line 65:
autogenerateschema="true" />Source File: E:\\EDUCATIONAL\\DOT NET\\website\\WebSite1\\WebSite1\\web.config
the error at line 62 to 65 are in roleManager
<roleManager enabled="true" defaultProvider="MySQLRoleProvider">
<providers>
<clear />
<add connectionStringName="conStr"
applicationName="/"
name="MySqlRoleProvider"
type="MySql.Web.Security.MySQLRoleProvider, MySql.Web,Version=6.5.4.0,
 Culture=neutral,PublicKeyToken=c5687fc88969c44d"
autogenerateschema="true" />
</providers>
</roleManager>
How to avoid this problem and what actually is happening here? I understand that it is a connection time out error but my page is not yet taken time to load. I got the error suddenly after I navigated to the required page with in fraction of seconds.
You have a linebreak and spaces encoded into your connection string:


That may very well be what is breaking.
可能是导致问题的连接字符串,并且RoleManager无法使用当前的连接字符串连接到MySql数据库。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.