Thursday, January 3, 2008

While Deploying Asp.Net Application

After developing a site either in Asp.net(ver.1.1) or Asp.net(ver.2.0), you are going to deploy it on the live server or deploy it on test server. During the deployement process some time you may face different types of error. Different types of error have different types of solutions.
These are the list of error and their respective solutions.

Case 1: Error "Server application is unavailable "
Solution : This Type of error occured because on your system two or more dot net framework is installed and your application that is deployed on the server is pointing to wrong framework .
Steps to resolve this issue:1)Open your IIS setting and go the property tag of your application and choose the ASP.NET tag as shown in the Pic.


















2) Choose the Asp.Net version(Using which your application is developed).

3)Click on apply button.
Case 2: Error. "Server Error in 'virtual directory name' Application Server cannot access application directory 'C:\virtual directory name \' the directory does not exist or is not accessible because of security settings."
Or
Access denied to c:\''Virtual directoryname\'' Failed to start monitoring file changes
Solution: This error is due to the security settings on your application folder. Follow these steps:
1).Right click the folder and go to the properties of the folder. You will see the new window like this.
Add to user give them full rights
everyone
aspnet
case 3: "The project 'project name' is on an untrusted web server. Opening this project may cause code to be executed with full trust. Do you want to continue opening this project ? If you donot trust source of this project , If you do not trust the source of this project , you should choose 'No'"


Click to see full image.

Solution :Follow this step.
1) Restart your IIS.


No comments:

Post a Comment