简体   繁体   English

HTTP 错误 500.19 - 访问网站时出现内部服务器错误

[英]HTTP Error 500.19 - Internal Server Error when accessing website

I have just uploaded an ASP.NET Core 2.1 app.我刚刚上传了一个 ASP.NET Core 2.1 应用程序。 I get this error when I try to run my website on IIS 8.0当我尝试在 IIS 8.0 上运行我的网站时出现此错误

Detailed Error Information:详细错误信息:

Module IIS Web Core模块 IIS Web 核心

Notification BeginRequest通知开始请求

Handler Not yet determined处理程序尚未确定

Error Code 0x8007052e错误代码 0x8007052e

Config Error Can not log on locally to C:\Inetpub\vhosts\website-domain.my\dev.website-domain.my\MSS as user username with virtual directory password配置错误无法使用虚拟目录密码作为用户名本地登录到 C:\Inetpub\vhosts\website-domain.my\dev.website-domain.my\MSS

Config File配置文件

\?\C:\inetpub\temp\apppools\dev.website-domain.my(domain)(4.0)(pool)\dev.website-domain.my(domain)(4.0)(pool).config \?\C:\inetpub\temp\apppools\dev.website-domain.my(domain)(4.0)(pool)\dev.website-domain.my(domain)(4.0)(pool).config

Requested URL http://dev.website-domain.my:80/MSS/请求的 URL http://dev.website-domain.my:80/MSS/

Physical Path物理路径

C:\Inetpub\vhosts\website-domain.my\dev.website-domain.my\MSS\ C:\Inetpub\vhosts\website-domain.my\dev.website-domain.my\MSS\

Logon Method Not yet determined登录方式尚未确定
Logon User Not yet determined登录用户尚未确定

Config Source:配置来源:

<application path="/MSS" applicationPool="dev.website-domain.my(domain)(4.0)(pool)">  
      <virtualDirectory path="/" physicalPath="C:\Inetpub\vhosts\website-domain.my\dev.website-domain.my\MSS" userName="username" password="[enc:AesProvider:4+kg/83a+hodVa/zMgLvRNQjrQjQp82oK77jfYDH0ak=:enc]" />           
</application>

I have given full access control to my username user on the MSS folder but i still get this error.我已经在 MSS 文件夹上对我的用户名用户进行了完全访问控制,但我仍然收到此错误。 My application pool is showing the username user in the Identity column as well.我的应用程序池也在 Identity 列中显示用户名用户。 What else am I missing?我还缺少什么? Could this be a .net core issue also?这也可能是.net核心问题吗?

I got I similar error when was deploying my ASP.NET Core app to IIS.在将我的 ASP.NET Core 应用程序部署到 IIS 时,我遇到了类似的错误。 The error was caused by missing IIS module AspNetCoreModuleV2.该错误是由缺少 IIS 模块 AspNetCoreModuleV2 引起的。

It was fixed by installing ASP.NET Core 6.0 Runtime - https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-aspnetcore-6.0.5-windows-hosting-bundle-installer它已通过安装 ASP.NET Core 6.0 运行时修复 - https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-aspnetcore-6.0.5-windows-hosting-bundle-installer

My web.config file我的web.config文件

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <location path="." inheritInChildApplications="false">
    <system.webServer>
      <handlers>
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
      </handlers>
      <aspNetCore processPath="dotnet" arguments=".\DevOpsTestService2.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
    </system.webServer>
  </location>
</configuration>

The error I got我得到的错误

在此处输入图像描述

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

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