Introduction
Deploying ASP.NET 2 web site is the first issue facing the developer after finishing to create a web site is how to deploy the web site to a remote/Production server.
In this article I explain the problems which we face while deploying related with Windows 2003 Server.
Following are the key points to avoid any error.
Asp.Net 2.0 needs framework 2.0 on server, make sure that you already installed it.
Make sure that you have selected asp.net version for your web application from IIS like in below figure.
If you can't see the 2.0.50727 in above figure and you have already installed framework 2.0, do the following things.
Select Web Service Extension from IIS, in right pane right click and select Add a new web service extension like in below figure.
Click on Add button browse the required framework path and select aspnet_isapi.dll file. In my computer path is like "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727"
- And do register it as well. For registration do the following steps
- Click Start, and then click Run.
- Type regsvr32.
- Drag aspnet_isapi.dll.
- And then click OK.
- Regsvr32 returns the results of the registration. "
And set its status allowed like in below figure
If you got this error saying: ASP.NET Application Service is unavailable. First thing check the event log on the IIS box which had a really informative error message:
It is not possible to run two different versions of ASP.NET in the same IIS process. Please use the IIS Administration Tool to reconfigure your server to run the application in a separate process.
To create a seperate application pool for .NET 2.0 applications. My existing v1.1 apps continue to run in the defaultAppPool while my .NET 2.0 app now uses my AspNet2AppPool. The steps involved were:
A. To create a new Application Pool in IIS 6.0
Open the IIS management console and expand the local computer by clicking the plus sign.
Right-click the Application Pools folder, point to New, and then click Application Pool. The Add New Application Pool dialog box appears.
Enter the new pool name in the Application pool text box, and then click OK.
B. To assign my ASP.NET application to the new Application Pool
Open the IIS management console, expand the local computer by clicking the plus sign, and navigate to the folder that contains the ASP.NET application.
Right-click the application and then click Properties. The application's properties dialog box appears.
On the Directory tab, select the desired pool designation from the Application Pool list.
If you are using crystal report in your web application you need the latest merge modules required for deploying .NET applications using Crystal Reports for Visual Studio .NET 2005. These merge modules may be incorporated into MSI-based setup packages to include the appropriate runtime files.
You can download here
If you got this error saying Could not load file or assembly 'vjslib, Version=2.0.0.0
After installing the the Microsoft .NET Framework, you must install the corresponding version of the Visual J# .NET Redistributable Package.
You can download here
Find answers to common questions about ASP.NET and Web development here
I hope my little effort will helpful for you.