gpt4 book ai didi

visual-studio - 无法使用 IIS express 在 VS2017 中加载文件或程序集

转载 作者:行者123 更新时间:2023-12-04 15:07:32 27 4
gpt4 key购买 nike

我们公司有一个 ASP.NET 项目,该项目供 5/6 开发人员使用。所有 Visual Studio 2017 和 IIS Express 上的调试,没有疯狂的设置或任何让它运行的东西。

1 位同事无法让它工作,他总是收到以下异常:

enter image description here

几个月前我们遇到了这个问题,然后出于沮丧重新安装了 PC 并且问题消失了。他几个星期没有发育,今天问题又出现了。

我搜索了很长时间,但这是一个通用错误,我真的无法弄清楚。

当我运行融合日志查看器时,我看到以下结果:

https://pastebin.com/aCVZn3EB

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) ***

最佳答案

您是否正在尝试使用要求不同 CLR 版本的 EXE 加载 .NET 4 程序集?这需要一个强制使用 CLR 4 的 app.exe.config 文件。

另请检查他是否安装了相同版本的 .NET。

关于visual-studio - 无法使用 IIS express 在 VS2017 中加载文件或程序集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44980695/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com