Deploying to Webroot

To deploy to the webroot folder:

Step 1:  Copy your application folders and files into the webroot folder.

Step 2:  Change these settings in your application’s Web.config file from:

<add key="WebServer" value="http://localhost" />

<add key="DefaultPageUrl" value="/MyApp/Pages/ViewPage.aspx" />

To:

<add key="WebServer" value="http://www.yourhost.com" />

<add key="DefaultPageUrl" value="/Pages/ViewPage.aspx" />

Note the two changes are as follows:

Step 3:  Change the localhost to the name of your web server.

Step 4:  Remove the folder name from the DefaultPageUrl.  In the example above, the /MyApp folder name was removed from the URL.

Redirecting to another application from your webroot

Create a default.aspx file in you website's root folder with a single line:

[% Response.Redirect("http://www.MyWebAddress.com/MyApp") %]

Replace square brackets at beginning and end with angle brackets.  You can put any URL in the quotes.

See Also

Creating a Virtual Directory for Your Application

Deploying Applications with the Deployment Wizard

Manually Deploying an Application to a Production Server