[英]How to get Visual Studio Community Edition 2019 working with Web Apps
I have downloaded Visual Studio 2019 Community Edition on my Win10 Build 18362 Lenovo 550S System running Microsoft Edge 44.18362.449.0 HTML 18.18362 and I can compile and run the example Console App but not any Web Apps which I want to develop.我已经在运行 Microsoft Edge 44.18362.449.0 HTML 18.18362 的 Win10 Build 18362 Lenovo 550S 系统上下载了 Visual Studio 2019 社区版,我可以编译和运行示例控制台应用程序,但不能编译和运行我想要开发的任何 Web 应用程序。 I have tried all sorts over the last few days (Creating web Config, amending appsettings.json etc and nothing seems to work. I thought it might be the version of Win10 but the VS 2019 Prerequisites say that it is supported in Win10 Home. They all report the same issue: HTTP Error 500.24 - Internal Server Error An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.
在过去的几天里,我尝试了各种方法(创建 web 配置、修改 appsettings.json 等,但似乎没有任何效果。我认为这可能是 Win10 的版本,但 VS 2019 先决条件说它在 Win10 Home 中受支持。他们所有人都报告相同的问题:HTTP 错误 500.24 - 内部服务器错误 检测到不适用于集成托管管道模式的 ASP.NET 设置。
Any idea how to resolve it?知道如何解决吗?
Background: I developed several applications (Web and Console) on the previous laptop on Win 7 in VS 2013 without any major problems running IE and now I want to upgrade my laptop and development system.背景:我在 VS 2013 的 Win 7 上的以前的笔记本电脑上开发了几个应用程序(Web 和控制台),运行 IE 没有任何重大问题,现在我想升级我的笔记本电脑和开发系统。 I did install VS 2017 previously on my new laptop but the notes say that VS2019 will run in parallel successfully with it.
我之前确实在我的新笔记本电脑上安装了 VS 2017,但注释说 VS2019 将成功与它并行运行。 I feel that I am missing something obvious.
我觉得我错过了一些明显的东西。
This was an IIS issue which was resolved by editing C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\Config\\Web.Config Changed Permissions to allow Web.Config to be changed, then edited it:这是一个 IIS 问题,通过编辑 C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\Config\\Web.Config Changed Permissions 以允许更改 Web.Config 来解决,然后对其进行编辑:
<system.web>
<identity impersonate="false"/>
</system.web>
The impersonate tag was changed from true to false. impersonate 标记从 true 更改为 false。 When Visual Studio was started a new Application was created and Authentication changed to Windows Authentication and it worked!
当 Visual Studio 启动时,一个新的应用程序被创建,身份验证更改为 Windows 身份验证并且它工作了!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.