简体   繁体   English

如何让 Visual Studio Community Edition 2019 与 Web 应用程序一起使用

[英]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 设置。

Win10系统表格

Microsoft Edge Version微软边缘版本

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.

相关问题 社区版缺少Visual Studio 2017可扩展性项目模板吗? - Visual Studio 2017 Extensibility project templates missing in community edition? Visual Studio mac 2019(社区) - PresentationCore - 未找到 .Net Framework 4 的程序集 - Visual Studio mac 2019 (Community) - PresentationCore - Assembly not found for .Net Framework 4 Visual Studio 社区 2019 不显示设计器视图 - Visual Studio community 2019 does not show designer view .NET Framework 4.8 已安装但未在 Visual Studio 2019 社区中显示 - .NET Framework 4.8 is installed but not showing in Visual Studio 2019 community Visual Studio 2019 Community 工具箱没有 webbrowser 控件 - Visual Studio 2019 Community toolbox has no webbrowser control 不支持此版本的 Visual Studio 无法使用 Microsoft Visual Studio Community 2019 版本 16.8.4 打开以下项目 - Unsupported This version of Visual Studio is unable to open the following project with Microsoft Visual Studio Community 2019 Version 16.8.4 MSTest 不适用于 Visual Studio 2019 16.4.0 - MSTest Not Working on Visual Studio 2019 16.4.0 如何从Magento社区版1.6获取产品信息 - How to get a product information from Magento Community Edition 1.6 无法安装 Visual Studio Community Edition (IDE),总是遇到 dll not found 异常 - Cannot Install Visual Studio Community Edition (IDE) and always run into dll not found exception 断点当前不会被命中。 在dll文件中找到文件的副本(Visual Studio Community 2019) - The breakpoint will not currently be hit. A copy of file was found in dll file (visual studio community 2019)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM