A strange problem in a hundred years: When ie met. NET Framework 4.5, it finally solved the strange problem of "One hundred years ".

Source: Internet
Author: User

Note: The problem has been solved. For details, refer to the solution to the "one time in a hundred years" strange problem.

One is Microsoft's IE, and the other is Microsoft's. NET Framework 4.5. This is a strange problem that reminds people of a verse: "This is the same root, it is too urgent to get started ".

Let's take a look at this strange problem that has been encountered for a hundred years.

Problem background

Recently, I upgraded Entity Framework in the job.cnblogs.com project to 5.0. It is said that EF 5.0 has significantly improved its performance under. NET Framework 4.5 (related blog posts), So I installed. NET Framework 4.5 on the server.

After installation ,. net Framework 4.5 Is not in C: \ WINDOWS \ Microsoft. the folder created in. NET is installed in.. NET Framework 4.0 folder, and updated. net Framework 4.0, such as system. web. DLL, system. web. routing. DLL...

Old Rules: restart the server after installation. After restart, all sites (IIS 7 + ASP. net mvc 3 + webforms) are tested. No exceptions are found.

Symptom

Then, some park friends reported that the access to the flash memory (home.cnblogs.com/ing/) was very slow and began to think it was a network line problem. Later, I found that the users who encountered the problem used IE 8, and thought it was Js.CodeThe browser compatibility problem occurs, so the JS Code is checked. This problem is accidentally reproduced in this process, and IE 9 is used.

What kind of situation does the user say "very difficult"? Please refer:

"Card" means that the small icon in the browser tag window is always in the rotating state (waiting for the server to respond ).

Press F12 to open IE's developer tool. After the browser sends a request, the server never responds. It indicates that this problem has nothing to do with JS and is a server-side request processing problem.

(At this time, you may have questions. Why didn't we find this problem? It's just a few seconds to click IE. But the problem is not that simple. It is normal to use IE for the first visit. The problem lies in the subsequent request, usually the third request. We mainly use chrome and Firefox browsers, So we open it with IE during the test and close it if there is no problem .)

After a "card" problem occurs, even if the browser tag is re-opened, the only solution is to exit the entire IE and re-open it.

Strange Problem

One of the strange problems:The server is Microsoft's ASP. NET environment. The problem is not other browsers, but Microsoft's own IE browser. (Cannot figure it out)

Strange problem 2:The first request of IE will not be faulty, but the problem will only occur in subsequent requests. (Is it related to the last-modified of the browser)

Strange problem 3:There are multiple sites on the same server. This problem occurs only on this site. For the same site (home.cnblogs.com), this problem only occurs on the homepage and flash-related pages. (It may be caused by an operation)

Strange Problem 4:Webforms and MVC both have this problem. This site is a hybrid environment of webforms and ASP. net mvc, And the problematic pages are webforms pages. However, Ajax requests for these pages are handled by MVC, and the same problem occurs. (This operation may be used in both webforms and MVC)

Strange Problem 5:In Cancel all MVC route registration (routes. maproute) in global. asax, and the problem disappears. (This problem may be related to the mixed environment of webforms and ASP. net mvc)

Problem cause confirmation

To confirm whether this problem is caused by. NET Framework 4.5? We Uninstall. NET Framework 4.5 in the test environment. At this time, I encountered another depressing problem. After I uninstalled. NET Framework 4.5,. NET Framework 4.0 was gone. What's even more depressing is all applications using. NET Framework 4.0 in IIS.ProgramThe pool is changed to. NET Framework 2.0. the uninstallation is "clean ". After installing. NET Framework 4.0, the problem disappears immediately; reinstall. NET Framework 4.5, and the problem occurs immediately. Regardless of the operation,. NET Framework 4.5 is the culprit.

Troubleshooting

I did not find out which operation was triggered by yesterday's hard work. I will continue to work hard today!

If not, uninstall. NET Framework 4.5 and reinstall. NET Framework 4.0.

Problem code

ASP. net mvc route registration code:

 Public   Static   Void  Registerroutes (routecollection routes) {routes. ignoreroute (  "  {Resource}. axd/{* pathinfo}  "  ); Routes. mappageroute (  "  Default " , "" , "  ~ /Default. aspx  "  ); Routes. maproute (  "  Defaultmvcajax  "  ,  "  Ajax/{controller}/{action}/{ID}  "  ,  New {Controller ="" , Action = "" , Id = ""  }); Routes. maproute (  "  Ingmovilemvc  "  ,  "  Ing/mobile/{action}/{inglisttype}/{pageindex}  "  ,  New {Controller = "  Ingmobile " , Action = "  Home  "  , Inglisttype = Cnblogs. uchome. Entities. inglisttype. All, pageindex = 1  }); Routes. maproute (  "  Defamvc MVC  "  ,  "  {Controller}/{action}/{ID}  "  , New {Controller = "  MSG  " , Action = "  List  " , Id = ""  });} 

Problematic access path: root path and ing/default. aspx. Both paths access the actual. aspx file.

Question supplement

Use ie9 Developer Tools to view request information. request headers, request body, response headers, and response body are all empty. Only the content in timings can be found in:

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.