简体   繁体   English

运行Asp.NET Core应用程序时,应用程序无法启动,并在本地IIS上出现502.5进程错误

[英]When running Asp.NET Core App the app fails to launch with a 502.5 Process error on local IIS

Thank you for taking the time to answer my question. 感谢您抽出宝贵时间回答我的问题。 I'm having an issue when running my project. 我在运行项目时遇到问题。 This project was running just fine previously. 该项目以前运行良好。 Something has happened to cause the following error to appear in the stdout log. 某种原因导致以下错误出现在stdout日志中。

Error: An assembly specified in the application dependencies manifest (.deps.json) was not found: package: 'AutoMapper', version: '6.2.2' path: 'lib/netstandard1.3/AutoMapper.dll' 错误:未找到在应用程序依赖项清单(.deps.json)中指定的程序集:软件包:'AutoMapper',版本:'6.2.2'路径:'lib / netstandard1.3 / AutoMapper.dll'

Things I have tried: 我尝试过的事情:

  1. Clear the nuget cache 清除nuget缓存
  2. Restore nuget cache 恢复nuget缓存
  3. Restarted Visual Studio 2017 重新启动Visual Studio 2017
  4. Restarted IIS 重新启动IIS
  5. Gave Full Access to the 'Everyone' role to the folder where the files are located 授予对文件所在文件夹的“所有人”角色的完全访问权限

Any help is greatly appreciated. 任何帮助是极大的赞赏。

UPDATE: This is the output from the Output Pane 更新:这是输出窗格的输出

这是“输出”窗格的输出

I had the same issue, add the following to your .csproj file and publish again. 我遇到了同样的问题,请将以下内容添加到您的.csproj文件中,然后再次发布。

<PropertyGroup>
  <PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest>
</PropertyGroup>

After spending sometime on this, none of the fixes suggested worked. 在此上花了一些时间后,建议的任何修复均无用。 After spending a lot of time looking up what the potential issue is, I decided to check for any available visual studio updates. 在花了很多时间查找潜在问题之后,我决定检查是否有可用的Visual Studio更新。

After I updated Visual Studio 2017 everything worked. 在更新Visual Studio 2017之后,一切正常。

I hope this helps someone. 我希望这可以帮助别人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM