使我的网站与App Services(ASP.NET Core 2.1)一起运行时出现问题 [英] Problem getting my website running with App Services (ASP.NET core 2.1)

查看:52
本文介绍了使我的网站与App Services(ASP.NET Core 2.1)一起运行时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用App Services来运行网站,但我所能得到的只是一个一般性的500错误.

该代码可在本地完美运行,目前正在使用Azure DevOps工具进行构建/部署.

应用程序日志什么都没告诉我,我只能找到以下内容:

解决方案

很抱歉听到您的Web应用程序遇到问题.

如果使用Visual Studio,则可以 将调试器附加到应用程序服务.

使用 Kudu ,您还可以检查.NET创建的其他一些日志位置.从错误中得知,似乎最有可能引用了在远程环境中无法访问的文件夹/位置. 


I'm trying to run a website using App Services but all I can get is a generic 500 error.

The code works perfectly locally and is currently being built/deployed using Azure DevOps tool.

The App log tells me nothing, all I could find is the following:

<ul> <li>IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred.</li> <li>IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.</li> <li>IIS was not able to process configuration for the Web site or application.</li> <li>The authenticated user does not have permission to use this DLL.</li> <li>The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.</li> </ul>

Also, I have aspnet core extensions enabled in the App Services configuration page and my appsettings.json file is being correctly deployed (I've checked it in the wwwroot dir) 

解决方案

Sorry to hear that you're encountering issues with your web application. 

If you use Visual Studio, you can attach a debugger to the app service

Using Kudu, you can also check some other log locations that .NET creates. From the error, it sounds like there is most likely a folder/location being referenced that isn't accessible on the remote environment. 


这篇关于使我的网站与App Services(ASP.NET Core 2.1)一起运行时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆