gpt4 book ai didi

c# - 500.19 - 内部服务器错误 - 无法访问请求的页面,因为该页面的相关配置数据无效

转载 作者:IT王子 更新时间:2023-10-29 03:43:56 25 4
gpt4 key购买 nike

在大家看这篇文章之前,我只想说,我知道那里有相关的线程,但我要么尝试过,要么不明白。话虽如此,这里什么都没有...

我正在尝试让 MVC Web 应用程序在我的 IIS 中运行。不幸的是,我完全陷入了这个错误:

HTTP Error 500.19 - Internal Server Error

The Request page cannot be accessed becasue the related configuration data for
the page is invalid.

Module: IIS Web Core
Notification: BeginRequest
Handler: Not yet determined
Error Code: 0x80070005
Config Error: Cannot read configuration file due to insufficient permissions
Config File: \foo\web.config
Request URL: http://localhost/WEBAPP
Logon Method: Not yet determined
Logon User: Not yet determined

Config Source
-1:
0:

我不太确定还能做什么。我也尝试过授予对 web.config 文件的读取权限,但似乎没有用。

如果有人有任何信息或能够帮助我解决这个问题,我将不胜感激。谢谢!

最佳答案

在我的例子中,我需要安装 IIS URL 重写模块 2.0,因为它正在 web.config 中使用,这是第一次在新机器上运行网站。

关于c# - 500.19 - 内部服务器错误 - 无法访问请求的页面,因为该页面的相关配置数据无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18620654/

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