简体   繁体   English

如何将应用程序标记为Web应用程序? (与虚拟目录相对。)

[英]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.

相关问题 向 web 应用程序添加通用内容虚拟目录时如何做安全权限? - How do you do security permissions when adding a common content virtual directory to a web application? 如何在Application_Start期间获取Web目录? - How do I get the Web Directory during Application_Start? 如何在没有虚拟目录的情况下部署.NET Web应用程序 - How to deploy .NET web application without virtual directory 如何在共享点Web应用程序的虚拟目录中获取子目录? - How to get the subdirectory in virtual directory of a sharepoint web application? 如何在应用程序中提供虚拟目录路径 - How to give virtual directory path in application 如何在使用IIS运行的Web应用程序中动态找到项目的输出目录? - How do I dynamically locate my project's output directory in a web application run with IIS? 如何指向wpf Web应用程序的数据文件(一旦发布)? 获取执行目录不起作用 - How do I point to the data files for a wpf web application (once published)? Getting the executing directory does not work 如何在C#Web应用程序中找到用户的Active Directory显示名称? - How do I find a user's Active Directory display name in a C# web application? 以编程方式为网站创建虚拟目录-Web应用程序 - create a virtual directory for a website programmatically- web application 如何正确链接已安装的Web应用程序名称及其虚拟目录名称? - How to correctly link the installed web application name and its virtual directory name?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM