简体   繁体   中英

How to know the default server of my web site in asp.net?

I made a website in asp.net with .NET 4.5 framework. I was studying about the differences between ASP.NET Development server (named Cassini) and IIS server. From this question I found out that IIS server is better than Cassini (for my purpose) but I don't know how to check the default server of my website. In the property page of the solution, under Start Options there are only two options under server. First is Use default server and second one is grayed out Use custom server .

This question is very close to my doubt but not properly answered. The exact choices between Cassini and IIS server appears under WebApplication project's properties NOT under WebSites .

I opened my IIS manager and when I tried to expand Default Web Site , error came Could not find a part of the path 'C:\\inetpub\\wwwroot'.

How to know my default server and change it?

The default server are the APO.NET Development server (Cassini), but you can change that to either an IIS server or some other custom web server. You make these changes in your web project.

You can also set the option "Use IIS Express for new file-based web sites and projects" in: Tools -> Options -> Projects & Solutions -> Web Projects.

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