Null reference after webdeploymentproject is used

Source: Internet
Author: User
The problem of the last blank reference has not been stopped for too long. Currently, we need to deploy the release version generated by the webdeploymentproject. If it passes the test on the local machine but passes the test to the server, it will survive and survive, when I opened the page, I reported a blank reference. I thought it was a directory permission problem. Then I did not have full control permissions for the Directory everyone. It seems that Code But the local test is good.

Next, let's take a closer look at the stack trace information when an error occurs. This is a method call related to Microsoft atlas.

 
System. Web. Script. Services. webservicedata. getwebservicedata (HTTP

Context context, string virtualpath, Boolean failifnodata,

Boolean pagemethods () + 378

Will it be related to the use of a lot of Atlas Ajax-based applications on our website? It turns out that this problem was caused by a bug in Atlas RC1 on the Internet. Here is the original article. I suddenly remembered one thing. When Atlas RC1 was just launched, I installed it and added and deleted it.ProgramThe version number shown in does not contain the RC identifier. In other words, the RC version or the official version cannot be distinguished from the name here !, Once you see the size of 1.25 MB, you will immediately understand that the official version should be 1.78 MB, the server is installed with the RC version of Atlas, and a formal version will be downloaded from Asp.net, after the reinstallation, it will be normal to restart the website.

There are three conditions for this problem:

1. The website uses webdeploymentproject for release.
2. the Atlas component of RC version is installed.
3. Remove the check box in the release project and select "allowed web pages to be updated"

in general, the webdeploymentproject is quite good. After the option that does not allow updating the page generation page is used, the pre-Compilation of the foreground page is much faster, HTML Source Code is invisible to the page, which protects the program. at this time, opening any page file will only display "this is the mark file generated by the Pre-compilation tool and should not be deleted! ",

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.