[英]ASP.NET MVC Error
I have just created a brand new ASP.NET MVC 4 project and when I run the project, I get the following error: 我刚刚创建了一个全新的ASP.NET MVC 4项目,当我运行该项目时,出现以下错误:
Parser Error Message: Could not load file or assembly 'MySql.Web, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.
Line 251: <providers>
Line 252: <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 253: <add name="MySQLMembershipProvider" type="MySql.Web.Security.MySQLMembershipProvider, MySql.Web, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" connectionStringName="LocalMySqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Clear" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression="" />
Line 254: </providers>
Line 255: </membership>
Any clue as to how I can fix this? 关于如何解决此问题的任何线索?
Using the MySql installer, mysql-installer-community-5.6.15.0.exe, I removed Connector/Net 6.7.4. 使用MySql安装程序mysql-installer-community-5.6.15.0.exe,我删除了Connector / Net 6.7.4。 That removed all MySql references from machine.config and fixed the problem.
这从machine.config中删除了所有MySql引用,并解决了问题。
您必须将其他项目的组件添加到运行的项目之一
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.