ASP.NET MVC - 啓動建立項目,未能加載錯誤

VS2012以常規方式建立一ASP.NET MVC internet 項目。建立後F5啓動項目,遇一錯誤:html

未能加載文件或程序集「MySql.Web.v20, Version=6.9.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d」或它的某一個依賴項。系統找不到指定的文件。app

解決方案:將C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config文件中的MySql.Web.v20替換爲MySql.Web。特別注意:修改保存該文件,需以Administrator身份打開該文件。ide

 

參考信息ui

machine.configspa

The machine configuration file, Machine.config, contains settings that apply to an entire computer. This file is located in the %runtime install path%\Config directory. Machine.config contains configuration settings for machine-wide assembly binding, built-in remoting channels, and ASP.NET.htm

https://msdn.microsoft.com/en-us/library/ms229697(v=vs.90).aspxblog

與傳統的ASP不一樣的是,ASP.NET不是運行在IIS的地址空間,而是有本身的進程:aspnet_wp.exe。該進程能夠經過XML配置文件machine.config進行配置。進程

http://www.cnblogs.com/chenlulouis/archive/2010/05/26/1744261.htmlrem

相關文章
相關標籤/搜索