in

ASP.NET Weblogs

This Blog

Syndication

Sponsors

News


Follow HosamKamel on Twitter

Hosam Kamel's Blog

Switch web application project to run on IIS web server as Virtual directory

To Switch web application project to run on IIS web server as Virtual directory instead of running in the Visual Studio Development Serer you can easily follow these steps :

1- Right click in your project choose prosperities to get the project prosperities window.

2- Choose 'Web' tab.

3- in the server section choose the radio button 'Use IIS web server'.

4- If you don't have this virtual directory already .. click 'Create Virtual' button.

WebApplication project

Comments

 

mohammed h said:

my problem is when i type the URL of my project

For Example -- localhost/projectname/defult.aspx

it didnot run under Visual Studio Development Server directly

to run it i should open visual basic then run the project

so it generate asp.net development server port 2345

then the project run

can you help me how to run it in my local pc by type the Url

directly without open the visual basic and run the project

thanks

my e-mail :- mohammedhm@hotmail.com

June 9, 2008 6:09 AM
 

Hosam Kamel said:

Ok I got it , if you don’t want to run it using IIS which should serve what you need exactly

Here is a way to run the ASP.NET development server without Visual Studio 2005

1- First configure your website to use fixed port

To specify a port for the ASP.NET Development Server

1. In Solution Explorer, click the name of the application.

2. In the Properties pane, click the down-arrow beside Use dynamic ports and select False from the dropdown list.

This will enable editing of the Port number property.

3. In the Properties pane, click the text box beside Port number and type in a port number.

4. Click outside of the Properties pane. This saves the property settings.

Each time you run a file-system Web site within Visual Web Developer, the ASP.NET Development Server will listen on the specified port.

2- Run the ASP.NET Development Server:  Visual Studio simply uses WebDev.WebServer.exe process as a host and listener of your requests (the executable can be found in C:\Windows\Microsoft.NET\Framework\v2.0.50727 folder).

a. To start it, use the following command:

start /B WebDev.WebServer [/port:<port number>] /path:<physical path> [/vpath:<virtual path>]

For example:

start /B webdev.webserver.exe /port:4955 /path:"c:\Projects\YourWebSite" /vpath:/

3- That’s all.

June 9, 2008 8:51 AM

Leave a Comment

(required)  
(optional)
(required)  
Add