顯示具有 iis 標籤的文章。 顯示所有文章
顯示具有 iis 標籤的文章。 顯示所有文章

ASP.NET project broken layout on IE11


How to reproduce the problem:

Web Server installed under .NET 4.0 version possible caused IE11 can not recognize User-Agent request header from your web server.

Solution:

Modify or Add file in your web site.  ~\App_Browsers\w3cvalidator.browser.
(File link backup : https://www.dropbox.com/s/85887zvntlxe3fl/w3cvalidator.browser?dl=0)

Read this to get more detail. http://blogs.telerik.com/aspnet-ajax/posts/13-12-19/how-to-get-your-asp.net-application-working-in-ie11

Enable IIS Failed Request Tracing

Step 1: Enable windows feature :  Internet Information Services >  World Wide Web Services  > Health and Diagnostic > Tracing

Step 2: Open IIS Manage > Go to your site >  click 'Failed Request Tracing...’ on actions pane > Click 'enable'.

Step 3: In the features view, click 'Failed request tracing rules'.  Click add and choose your purpose like below :

a : Selected ‘All Content (*)’ , Status Code(s) : 200 

b:  Selected ‘ASP.NET (*.aspx) , Staus Code(s) : 401-999 , Event severity : Error

c:  Selected ‘Custome : *.js’ , Status Code(s) : 200

Step 4 : Look in c:\inetpub\logs\FailedReqLogFiles\w3svcX\

Windows command – backup & remove all IIS log

  1. Download Source code by package (must) ,  Unzip BackupLog Folder to C:\  (Total 5 files: 7z.dll , 7z.exe , ufind.exe,  BackupLog.bak, BackupLog_Chinese.bak)
  2. Download sample batch (must) based on date and time format.  US or Chinese
    Chinese format , US Format
  3. Check your IIS Log path location was under the “C:\inetpub\logs\LogFiles”  , if not please modify sample batch or modify the parameter whatever you want.
  4. [Option] Setting task scheduler run the batch file
Dropbox share link OR Download Source code by package

A Friendly remind: If choose task scheduler to perform batch job, please ensure the account log-in on the server once and had permission on log folder.