Solutions to several common exceptions on the Asp.net server.

Source: Internet
Author: User

As follows:

(1) Configure Asp.net site ISS to report: Server ApplicationProgramUnavailable. The exception information is as follows:

The server application is unavailable.
The Web application you are attempting to access on this web server is currently unavailable. Please click "refresh" in the web browser to try your request again.
Administrator Note: you can find the error details for the specific request failure cause in the system event log of the Web server. Check this log item to find out the cause of this error.

I checked other configurations on ISS. all websites written in ASP are found. attribute to view the running environment is Asp.net Framework 1.1. I changed. net framework2.0. the error message is displayed.

(1) In general,. net2.0 and. net1.1 will appear when the application pool is public"The server application is unavailable. This exception is actually caused by a conflict of process pool calls. If the two applications accessed are 2.0 and 1.1 respectively, and they share a process pool,
If IIS cannot parse two versions at the same time, the above error will occur.

Solution: modify one of the Process pools. For example, change the process pool of the 2.0 application to asp. NET 2.0.

(2) Method 2: re-register IIS, run aspnet_regiis.exe in net \ framework \ v2.0.50727, and re-register. Net aspnet_regiis.exe-u to uninstall aspnet_regiis.exe-I and then reinstall the server.

Sometimes you can configure it according to the above two methods. the same exception is reported. check the system event log. to see the specific error information. this is the system event log on the server at on November 10:

Details:

1: failed to execute the request because the application domain cannot be created. Error: 0x80070005 Access denied.
2: failed to initialize appdomain:/lm/w3svc/1635210705/root exception: system. Io. fileloadexception
Message: failed to Load file or assembly "system. Web, version = 2.0.0.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a" or one of its dependencies. Access denied

Google finds a reasonable solution:

1:After IIS 2.0 is installed, an ASP. NET label is added to the attribute settings of the virtual directory of IIS, where the runtime is adjusted to 2.0. The default Runtime is 1.1.

2:This is a permission issue. First, check the properties of the application pool to see which user identity It is running. Generally, it is a network service and then make sure that this user is correct. the Directory of Net Framework 2.0 has access permission. In fact, it should be. The directory is systemroot: \ windows \ Microsoft. net \ frameworks \ 2.0.xxxx. if both of the above are correct, unfortunately, you have encountered a very strange problem. The last time I changed the user identity of the application pool to a local system for running. Configure according to solution 2: Set the access user of the running pool"Local System", Then run the program. The error is not displayed. The solution is successful,

Of course, some websites currently use Silverlight for integrated development. the. NET environment is version 3.5. after installation. net framework3.5sp1. the Asp.net column in the attribute is still only 1.1 and 2.0. why is there no 3.5?

According to official treatments, 3.5 is based on 2.0, so there is only 2.0 in IIS. compared with 3.5, 2.0 only adds some types of libraries. their JIT is the same, so IIS only needs 2.0, and there is no need to run 3.5.3.5 or based on 2.0.

(2) when inserting Chinese characters using t-SQL in SQL scripts, garbled characters (???) are similar (????) ..

Several version updates will be processed in the afternoon. I need to update the sql2005 database on the server. When I use the visor to generate a database script for execution, I encounter Chinese characters. It is similar (???) Garbled text. The molding solution has not been found on the Internet. As a result, it is compared with the attribute of the original SQL2000 database. It is found that there are some discrepancies in sorting rules. sql2005The default database sorting rule is SQL _latin1_general_cp1_ci_as ,.

This is the cause of Garbled text. Sort the sorting rules from the defaultSQL _latin1_general_cp1_ci_asChangeChinese_prc_ci_as. or execute alter database basicdb collate chinese_prc_90_ci_as when creating with t_ SQL statement.

Note: When you modify the database attributes, you must disable all external connections to the database. Otherwise, the modification will fail and the modification will take effect by restarting the SQL service.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.