Two ASP. NET 2.0 website servers were deployed using Server Load balancer.

Source: Internet
Author: User
When Server Load balancer is used to deploy two site servers, there are several problems and their solutions.

1. when you copy the published site file to the IIS Directory, prepare IIS support for the Framework, and visit the website, the Service unavailable word always appears, depressing .... search and find the solution:
Open the attributes of the IIS websites folder, and go to the service tab. Select Run WWW Service in IIS 5.0 Isolation Mode.
For example:


After this setting, our site can finally be opened on the local machine.

2. When configuring the second web server, complete the deployment and configuration according to the first step. Open the webpage and the following error occurs:This application has failed to start because the application configuration is incorrect. reinstalling the application may fix this problem. (exception from hresult: 0x800736b1)

Fileloadexception: cocould not load file or assembly 'acloud creatorlib. net, version = 3.0.2735.26202, culture = neutral, publickeytoken = 8aedc7a81d17941d 'or one of its dependencies. this application has failed to start because the application configuration is incorrect. reinstalling the application may fix this problem. (exception from hresult: 0x800736b1)]
System. reflection. Assembly. nload (assemblyname filename, string codebase, evi1_assemblysecurity, assembly locationhint, stackcrawlmark & stackmark, Boolean throwonfilenotfound, Boolean forintrospection) + 0
System. reflection. Assembly. internalload (assemblyname assemblyref, evidence assemblysecurity, stackcrawlmark & stackmark, Boolean forintrospection) + 211
System. reflection. Assembly. internalload (string assemblystring, evidence assemblysecurity, stackcrawlmark & stackmark, Boolean forintrospection) + 141
System. reflection. Assembly. Load (string assemblystring) + 25
System. Web. configuration. compilationsection. loadassemblyhelper (string assemblyname, Boolean stardirective) + 32

A third-partyProgramSet to PDF-> XPS conversion. It is strange that the first server has no problems, and the deployment configuration is the same, including files being the same copy, but this error occurs on the second server. Finally, we found that the visual C ++ 2005 redistributable package is missing. After downloading and installing the package, the problem is solved.

3. the two Web servers have been configured and can be run locally. The following shows the domain name (pointing to the Server Load balancer) prepared in advance. The homepage is opened and the account password is entered for login, another problem occurred! Yellow Pages: Validation of viewstate Mac failed. if this application is hosted by a Web farm or cluster, ensure that machinekey > Configuration specifies the same validationkey and validation algorithm. autogenerate cannot be used in a cluster.

After searching and finding the solution, the Web. config was modified as follows:<System. Web>
<PagesEnableviewstatemac= "False" />
</System. Web>

Finally, everything is normal!

Related Article

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.