首页 新闻 会员 周边

依赖注入的一个问题问题?

-1
悬赏园豆:5 [已关闭问题] 关闭于 2018-10-08 15:21

StructureMap configuration failures:
Error: 170
Source: Registry: StructureMap.Configuration.DSL.Registry, StructureMap, Version=2.6.4.0, Culture=neutral, PublicKeyToken=e60ad81abae3c223
Unable to find the exported Type's in assembly BC.MIS.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. One or more of the assembly's dependencies may be missing.

Could not load file or assembly 'System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
System.IO.FileLoadException: Could not load file or assembly 'System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at StructureMap.Graph.TypePool.<>c__DisplayClass2.<.ctor>b__0(Assembly assembly) in c:\BuildAgent\work\767273992e840853\src\StructureMap\Graph\AssemblyScanner.cs:line 24

=== Pre-bind state information ===
LOG: DisplayName = System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35
(Fully-specified)
LOG: Appbase = file:///C:/Work/MIS2UI/BC.MIS.UI/
LOG: Initial PrivatePath = C:\Work\MIS2UI\BC.MIS.UI\bin
Calling assembly : BC.MIS.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Work\MIS2UI\BC.MIS.UI\web.config
LOG: Using host configuration file: \CNBJS1BFP001\HOME$\huanliu\Documents\IISExpress\config\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL file:///C:/Users/huanliu/AppData/Local/Temp/Temporary ASP.NET Files/root/cb79b471/7ecfb83f/System.Web.Mvc.DLL.
LOG: Attempting download of new URL file:///C:/Users/huanliu/AppData/Local/Temp/Temporary ASP.NET Files/root/cb79b471/7ecfb83f/System.Web.Mvc/System.Web.Mvc.DLL.
LOG: Attempting download of new URL file:///C:/Work/MIS2UI/BC.MIS.UI/bin/System.Web.Mvc.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Revision Number
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.


临冰听雪丶的主页 临冰听雪丶 | 初学一级 | 园豆:191
提问于:2018-10-05 15:39
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册