Re: .Net 2.0 website is running on a different port?
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Tue, 07 Nov 2006 04:55:29 GMT
Hello TS,
As for the ASP.NET 2.0 web projects, you can create it through both IIS
hosted mode or TestServer(WebDev.WebServer.exe) mode. When using the
TestServer, it can only be accessed locally and VS IDE will assign the test
server instance a random local port by default, you can change this port.
If you want to develop the ASP.NET application in IIS directly, just simply
choose "http" when you create the web project and select the proper virtual
directory in IIS.
From your description, after you use "http"/IIS to create the web projectin VS 2005, you can not debug or even run(without debug) the application,
correct? If so, I think there may has some problem with the IIS server's
configuration. Have you checked the server to see whether the Application's
virtual directory has been configured to ASPNET 2.0 version and whether the
application pool(if use IIS6) is configured to the current service account(
BY default it is network service for IIS6, you can also change it to local
system for test). If you want to use F5 debugging in VS 2005, you need
make sure the website is configured as "Integrated windows" authentication.
In addition, as for the problem you met when running the web project in
IIS without debugging, would you provide us the detailed error message or
screenshot of the problem?
BTW, if you think use testserver ok, and just want to change it to listen
on 80 port, you can change the TEstServer's port in VS IDE by the following
steps:
*open website project(filesystem based) in VS 2005
*In solution explorer, select the web site project node
*In the property view/window, you will find there is a "Port number"
property and a "Use dynamic ports" property under "Develper Web Server"
category.
*Set "use dynamic ports" to false
*change the "Port number" to 80 as you want
Before start running, make sure you need to stop the IIS default site or
any other application or service which is already listening on the 80 TCP
port.
Hope this helps.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- References:
- .Net 2.0 website is running on a different port?
- From: TS
- Re: .Net 2.0 website is running on a different port?
- From: Juan T. Llibre
- Re: .Net 2.0 website is running on a different port?
- From: TS
- Re: .Net 2.0 website is running on a different port?
- From: Juan T. Llibre
- .Net 2.0 website is running on a different port?
- Prev by Date: Q about anonymous access
- Next by Date: number format
- Previous by thread: Re: .Net 2.0 website is running on a different port?
- Next by thread: Re: .Net 2.0 website is running on a different port?
- Index(es):
Relevant Pages
|
Loading