简体   繁体   中英

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. 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. 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?

(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.

The problem with that specific application might have been a bug on the web hosting service of some sort.

So, again, the answer is: Visual Studio tells IIS to mark it as a web application. There is nothing (apparently) on the project's properties nor in web.config.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM