views:

317

answers:

5

Can someone explain how the ASP.NET Web Development Server work? I don't have IIS installed on my development machine. So Visual Studio 2008 is debugging my web app project in the built-in web server. I want to know where do all the files get deployed to for debugging. Is there any folder similar to \inetput\wwwroot? Thanks.

+1  A: 

It uses your /bin dir for the assembly and your aspx files for the aspx files. The files aren't really deployed, they are just assembled/compiled and then the local web server uses them.

Jim W
+1  A: 

The files don't get deployed at all. The Web Development Server (often called Cassini) binds directly to the website or web application folder.

Randolpho
How do you figure? The files have to get precompiled somewhere!
Josh Stodola
+1  A: 

Do a search for a folder called "Temporary ASP.NET Files". This is where files are precompiled and temporarily deployed/stored for the development server (Cassini) to serve them up.

On my machine, the directory is C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files, and it is currently over 260MB.

Josh Stodola
A: 

Multiple projects bind to different ports on your system and aren't externally available, I believe the web developement server only binds to 127.0.0.1

can anyone else verify that?

OldTroll
I believe you are right. The web development server is only available localhost.
weilin8
+2  A: 

The web server is an executable file named WebDev.WebServer.EXE and located in \WINDOWS\Microsoft.NET\Framework\v2.0.50727. When debugging the web site, Visual Studio starts up an instance of the application with the following parameters.

WebDev.WebServer.exe \port \path [\vpath]

This ASP.NET Development Server simply uses the compiled web application in the debug folder, which is provided as /path, to serve the website.

You can read more about this here.

weilin8
Thanks for coming back and setting the record straight :)
Josh Stodola
Thank you for providing the direction for me to dig more information
weilin8