我们在运行5/6开发人员的公司中有一个ASP.NET项目。所有Visual Studio 2017和IIS Express上的调试,没有疯狂的设置或任何使它运行。无法通过IIS express在VS2017中加载文件或程序集
1的同事无法得到它的工作,他总是得到以下异常:
我们有这个问题,几个月前,则是出于无奈才重新安装PC和问题失去了。他几周没有发展,今天又出现了问题。
我搜索了很久,但它是这样一个通用的错误,我不能真正弄清楚这一个。
当我运行融合日志查看器我看到下面的结果:
The operation failed.
Bind result: hr = 0x80131018. No description available.
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable C:\Program Files\IIS Express\iisexpress.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: DisplayName = System.ServiceModel.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
(Fully-specified)
LOG: Appbase = file:///C:/Users/User/Projects/project/project.UserSite/
LOG: Initial PrivatePath = C:\Users\User\Projects\project\project.UserSite\bin
LOG: Dynamic Base = C:\Users\User\AppData\Local\Temp\Temporary ASP.NET Files\vs\e0254dae
LOG: Cache Base = C:\Users\User\AppData\Local\Temp\Temporary ASP.NET Files\vs\e0254dae
LOG: AppName = 38c6ff11
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Users\User\Projects\project\project.UserSite\web.config
LOG: Using host configuration file: C:\Users\User\Documents\IISExpress\config\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Binding succeeds. Returns assembly from C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll.
LOG: Assembly is loaded in default load context.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80131018).
*** Assembly Binder Log Entry (7/18/2017 @ 8:55:15 AM) ***
只是为了好玩,你可以进入解决方案>参考> System.ServiceModel.Activities>属性,并验证属性“特定版本”设置为false。 –
@TravisActon是它被设置为false。 – YesMan85
堆栈跟踪有什么更进一步?也许在事件日志中的东西? –