简体   繁体   English

常见的输出目录,Web应用程序和IIS Express

[英]Common output directory, Web Applications and IIS Express

I have changed the output path for all my projects to use same location. 我已经更改了所有项目的输出路径以使用相同的位置。 Ie: 即:

Web API输出路径

My ASP.NET Web API projects have now stopped working when running them in debug using IIS Express. 我的ASP.NET Web API项目现在在使用IIS Express在调试中运行时已停止工作。

It seems that IIS Express is pointing to the existing Web Application project directory: 似乎IIS Express指向现有的Web应用程序项目目录:

IIS Express

Should this not be pointing now to the ..\\Build\\bin\\Debug common output directory? 这不应该指向..\\Build\\bin\\Debug公共输出目录吗? How do I configure this? 我该如何配置?

Unfortunately, there is no clean way to do this. 不幸的是,没有干净的方法来做到这一点。 For security reason, IIS requires you use the 'bin' folder right under the web project folder as the output directory. 出于安全原因,IIS要求您使用Web项目文件夹下的“bin”文件夹作为输出目录。

It is still possible to achieve your goal though. 尽管如此,仍有可能实现您的目标。 See here . 看到这里

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

相关问题 在IIS上运行.NET核心和.NET Web应用程序 - Running .NET core and .NET web applications on IIS IIS Express中使用Active Directory进行MVC身份验证/授权 - MVC Authentication/Authorization with Active Directory in IIS Express 如何在使用IIS运行的Web应用程序中动态找到项目的输出目录? - How do I dynamically locate my project's output directory in a web application run with IIS? 无法连接到 web 服务器“IIS Express” - Unable to connect to web server 'IIS Express' 不同Web应用程序的通用web.config连接字符串? - common web.config connectionstrings for different web applications? Web APi无效,IIS表示内容类型,IIS无内容类型 - Web APi Void, IIS express content type, IIS no content Type IIS 请求计数限制与 IIS Express - Web ZDB974238714CA8DE634A7CE1D083A - IIS Request Count Limitation vs IIS Express - Web API Core Web API Getting 401在IIS中未经授权但在IIS Express中有效 - Web API Getting 401 Unauthorized in IIS but works in IIS Express 带有公共输出目录的VS2017解决方案 - VS2017 solution with common output directory Visual Studio中Web应用程序的控制台输出 - Console output from web applications in Visual Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM