Click here to Skip to main content
15,896,154 members
Articles / Web Development / ASP.NET
Article

Deployment problems and their solutions of web application Asp.Net 2.0

Rate me:
Please Sign up or sign in to vote.
2.64/5 (6 votes)
6 Mar 20073 min read 30.4K   13  
In this article I explain the problems which we face while deploying related with Windows 2003 Server.

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.

Screenshot - 1st.jpg


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.

Screenshot - 3rd.jpg

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

Screenshot - 2nd.jpg


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.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Pakistan Pakistan
Kamal Khan works as Software Engineer for about 3 years.In these days i am working on BPM.NET.

BPM.NET 2007 is BPM Workflow software that offers workflow automation and business process modeling capabilities along with full-fledged business activity monitoring (BAM) functions.

Comments and Discussions

 
-- There are no messages in this forum --