[英]How do I mark an application as a web application? (As opposed to a virtual directory.)
I have a web application project that I published and it turns out it's not marked at the web hosts as a web application. 我有一个发布的Web应用程序项目,事实证明它没有在Web主机上标记为Web应用程序。 I have other applications and they are all marked as web applications, and I can't find a difference between them and this one neither in web.config
nor in the properties of the project. 我还有其他应用程序,它们都标记为Web应用程序,并且在web.config
和项目属性中都找不到它们与该应用程序之间的区别。 But I assume I am missing some difference because of the different result. 但我相信我的思念,因为不同的结果存在差异。
So, where in a Visual Studio Asp.net web application project do I mark the application as an actual web application? 因此,在Visual Studio Asp.net Web应用程序项目中的哪个位置,我将该应用程序标记为实际的Web应用程序?
(I searched for a solution, but most information on the internet seems to be directed at how to mark as a virtual directory, what's the difference between them at all, etc.) (我在寻找解决方案,但是互联网上的大多数信息似乎都是针对如何标记为虚拟目录,它们之间有什么区别等等)。
It seems like publishing from Visual Studio is enough. 从Visual Studio发布似乎就足够了。
The problem with that specific application might have been a bug on the web hosting service of some sort. 该特定应用程序的问题可能是某种类型的Web托管服务上的错误。
So, again, the answer is: Visual Studio tells IIS to mark it as a web application. 因此,答案是:Visual Studio告诉IIS将其标记为Web应用程序。 There is nothing (apparently) on the project's properties nor in web.config. (显然)项目的属性或web.config中都没有任何内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.