我不知道为什么,但从 web.config 中删除以下内容后,一切又开始工作了。
<roleManager enabled="true" defaultProvider="MySQLRoleProvider">
<providers>
<add name="MySQLRoleProvider" connectionStringName="App_DBConnection" applicationName="GRMS 3.0" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=xxxxx"/>
</providers>
</roleManager>
<membership defaultProvider="MySqlMembershipProvider">
<providers>
<add name="MySqlMembershipProvider" connectionStringName="App_DBConnection" applicationName="App3.0" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=xxxxx" passwordFormat="Encrypted" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="true" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
</providers>
</membership>
<profile enabled="true" defaultProvider="MySQLProfileProvider">
<providers>
<add name="MySQLProfileProvider" connectionStringName="App_DBConnection" applicationName="App 3.0" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=xxxxxx"/>
</providers>
<properties>
<add name="Name" type="System.String" provider="MySQLProfileProvider" allowAnonymous="true"/>
<group name="ProjectInfo">
<add name="CurrProjectID" allowAnonymous="false" type="System.guid"/>
<add name="CurrProjectName" allowAnonymous="false" type="System.String"/>
</group>
</properties>
</profile>