Thanks for your response Mark,
As for the VS buildin test server, it is actually provided by the .NET
framework 2.0 in the framework dir
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
named "WebDev.WebServer.EXE". And as you mentioned, vs 2005 ide do by
default treat each ASP.NET website project as a sub virtual dir under the
root site when running them in test server. Like:
http://localhost:xxxx/ApplicationName/xxx
However, the VS 2005 ide also allow us to use the customized external test
server. You can right click your website's node in solution explorer and
choose properties menu. In the "Start options" setting, it is "use default
web server" by default, we can change it to "use custom server". For the
"Base Url", we can input the custom server's configured url we want to use,
such as
"http://localhost:7001/"
For the custom server, we can just use the WebDev.WebServer.EXE which can
be launched externally from command line. For example, the following
command just start the Test Server which point to my vs 2005 ASP.NET
website project's project folder and configure it as Root applcation(rather
than a sub virtual directly under root):
webdev.webserver /port:8088
/path:"D:\users\stcheng\workspace\whidbey\websites\ TestWebSite" /vpath:"/"
this will match the custom server's "Base Url" we configured in the ASP.NET
project above.
In addition, here is a blog article from ScottGu which have more detailed
description on this:
http://weblogs.asp.net/scottgu/archi...21/431138.aspx
Hope this helps.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)