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: Could not load file or assembly 'Microsoft.Practices.Unity, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. Source Error: Line 13: <assemblies> Line 14: <add assembly="Microsoft.Practices.ObjectBuilder2, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> Line 15: <add assembly="Microsoft.Practices.Unity, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> Line 16: </assemblies> Line 17: </compilation> Source File: E:\oml\20160224OML\HengXin_OML\OML_Managment\HengxinOML.WebSite\web.config Line: 15 Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Practices.Unity, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.
15行总是报错,我都不能理解该怎样解决
nuget安装unity:
install-package Unity -version 2.1.505
谢谢,可是我在安装的时候提示.net版本不行,请问VS2012如何更改调试程序的.net版本,我PC已经装了.NET4.5了,装UNITY需要4.5
@Sola0921: 把targetFramework改为4.5,参考:http://www.cnblogs.com/morrow-f/p/5473251.html
@dudu: 谢谢你!
找不到Microsoft.Practices.Unity