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

268 Views Asked by At

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?

1

There are 1 best solutions below

1
Dietz On

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.