tecman
  •  tecman
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
2013-11-11T08:43:37Z
I tried to admin a user in my IE 11 on a laptop with Win 8.1 I recently upgraded to, but I detected that I cannot open the user's profile. I can't open it using the user link near the post (the Edit or User Profile command from the popup menu), or doing search and then clicking the user link in the search result. Nothing happens when I do that. It seems, the rest forum functionality is ok.

FYI: All is ok with the user admin functionality in IE 10 on Win 7.
Sponsor
broekies
2013-11-11T11:53:22Z
Even worse, people reported that they cannot post a message when in IE 11 (on Windows 8.1).
Now I am very afraid for the release of IE 11 on Windows 7.
tha_watcha
2013-11-11T12:47:09Z
Did the java script console shows any errors?

I guess the errors are related to jQuery in 1.9.6.1 an older version is used which might have problems with IE 10/11.

With yaf 2.0 there is a newer version included. On my tests with IE 10/11 everything works fine with YAF 2.0
UserPostedImage
squirrel
2013-11-26T15:07:58Z
I know exactly what this is and how to fix it. This is not a jQuery issue - it's a server issue with ASP.NET and not being able to recognize IE 11 or IE 10's user agent properly. IE 10 will still default with enough features to work, but some things (like some modals) fail.

This is a server issue with the server hosting that site. I just had to resolve this on several of my servers. The browser capabilities files for your server are not up to date. I'm willing to bet you are getting _doPostBack is undefined errors. This will appear on IE v11 only. IE v10 suffered a couple issues with this, but not show stoppers like IE 11. I went round and round with this issue for about 9 hours before a resolution.

WARNING:: While I am a 20 year seasoned server technician, with experience ranging from MS-DOS to Windows Server 2008R2 and anything in between, I must advise and warn you of the following: ANY CHANGES YOU ATTEMPT TO YOUR SERVER ARE DONE AT YOUR OWN RISK. If you don't make a backup of files you change before you change them (especially if you don't know what you're doing) then you are fair game for whatever problems you have. That said, I have tested this fix across 2 dozen servers of varying configurations and it solved the issue with each one. Additionally, these resolutions are the culmination of hours of research and testing from various entities including Microsoft and other private developers through StackOverflow. Additionally, the hotfixes from Microsoft had NO effect on my servers, but that doesn't mean they won't have proper results on yours. That said, you should try the Microsoft hotfix first, restart your server, then try browsing. If the issue persists, move on to the manual fixes.

Possible Solutions:
For servers running Windows 2003/ASP.NET 4.0:


For servers running Windows 2008/2008R2 with ASP.NET 4.0:
  • Microsoft recommends you upgrade your ASP.NET on your server to v4.5 - the 4.5 update will repair the v4.0 browser capabilities files for you and properly register them.
  • If you are running Plesk on your server, and you are at version 10.x DO NOT UPGRADE your ASP.NET to v4.5 - this will break your plesk installation. You have been warned. The only way to get ASP.NET 4.5 on your Plesk server is to upgrade Plesk to v11.x or higher.
  • If you cannot upgrade your server to ASP.NET v4.5, you can try the following hotfix from Microsoft (select the version for your server): http://support.microsoft.com/kb/2836939/en-us 


Now - if you do not have access to RDP on your server, OR the Microsoft packages FAIL to solve your issues, there is still hope. You can manually override the browser capabilities files directly in the YAF application.

Copy these following contents into a blank text file, rename it to ie.browser and upload it to your App_Browsers folder:
<browsers>
    <browser id="IE" parentID="Mozilla">
        <identification>
            <userAgent match="MSIE (?'version'(?'major'\d+)(\.(?'minor'\d+)?)(?'letters'\w*))(?'extra'[^)]*)" />
            <userAgent nonMatch="IEMobile" />
        </identification>

        <capture>
            <userAgent match="Trident/(?'layoutVersion'\d+)" />
        </capture>

        <capabilities>
            <capability name="browser"              value="IE" />
            <capability name="layoutEngine"         value="Trident" />
            <capability name="layoutEngineVersion"  value="${layoutVersion}" />
            <capability name="extra"                value="${extra}" />
            <capability name="isColor"              value="true" />
            <capability name="letters"              value="${letters}" />
            <capability name="majorversion"         value="${major}" />
            <capability name="minorversion"         value="${minor}" />
            <capability name="screenBitDepth"       value="8" />
            <capability name="type"                 value="IE${major}" />
            <capability name="version"              value="${version}" />
        </capabilities>
    </browser>

    <!-- Mozilla/5.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4325) -->
    <browser id="IE6Plus" parentID="IE">
        <identification>
            <capability name="majorversion" match="^[6-9]|\d{2,}$" />
        </identification>

        <capabilities>
            <capability name="ecmascriptversion"    value="3.0" />
            <capability name="jscriptversion"       value="5.6" />
            <capability name="javascript"           value="true" />
            <capability name="javascriptversion"    value="1.5" />
            <capability name="msdomversion"         value="${majorversion}.${minorversion}" />
            <capability name="w3cdomversion"        value="1.0" />
            <capability name="ExchangeOmaSupported" value="true" />
            <capability name="activexcontrols"      value="true" />
            <capability name="backgroundsounds"     value="true" />
            <capability name="cookies"              value="true" />
            <capability name="frames"               value="true" />
            <capability name="javaapplets"          value="true" />
            <capability name="supportsCallback"     value="true" />
            <capability name="supportsFileUpload"   value="true" />
            <capability name="supportsMultilineTextBoxDisplay" value="true" />
            <capability name="supportsMaintainScrollPositionOnPostback" value="true" />
            <capability name="supportsVCard"        value="true" />
            <capability name="supportsXmlHttp"      value="true" />
            <capability name="tables"               value="true" />
            <capability name="supportsAccessKeyAttribute"    value="true" />
            <capability name="tagwriter"            value="System.Web.UI.HtmlTextWriter" />
            <capability name="vbscript"             value="true" />
        </capabilities>
    </browser>

    <!-- Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0;) -->
    <browser id="IE6to9" parentID="IE6Plus">
      <identification>
        <capability name="majorversion" match="^[6-9]$" />
      </identification>
    </browser>

    <!-- Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0;) -->
    <browser id="IE7" parentID="IE6to9">
        <identification>
            <capability name="majorversion" match="^7$" />
        </identification>
        <capabilities>
            <capability name="jscriptversion" value="5.7" />
        </capabilities>
    </browser>

    <!-- Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729) -->
    <browser id="IE8" parentID="IE6to9">
        <identification>
            <capability name="majorversion" match="^8$" />
        </identification>
        <capabilities>
            <capability name="jscriptversion" value="6.0" />
        </capabilities>
    </browser>

  <!-- Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729) -->
  <browser id="IE9" parentID="IE6to9">
    <identification>
      <capability name="majorversion" match="^9$" />
    </identification>
    <capabilities>
      <capability name="jscriptversion" value="6.0" />
    </capabilities>
  </browser>

  <!-- Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0) -->
  <browser id="IE10" parentID="IE6Plus">
    <identification>
      <capability name="majorversion" match="\d{2,}" />
    </identification>
    <capabilities>
      <capability name="jscriptversion" value="6.0" />
    </capabilities>
  </browser>

  <browser id="IE11" parentID="Mozilla">
    <identification>
      <userAgent match="Trident\/7.0; rv:(?'version'(?'major'\d+)(\.(?'minor'\d+)?)(?'letters'\w*))(?'extra'[^)]*)" />
      <userAgent nonMatch="IEMobile" />
    </identification>
    <capture>
      <userAgent match="Trident/(?'layoutVersion'\d+)" />
    </capture>
    <capabilities>
      <capability name="browser"              value="IE" />
      <capability name="layoutEngine"         value="Trident" />
      <capability name="layoutEngineVersion"  value="${layoutVersion}" />
      <capability name="extra"                value="${extra}" />
      <capability name="isColor"              value="true" />
      <capability name="letters"              value="${letters}" />
      <capability name="majorversion"         value="${major}" />
      <capability name="minorversion"         value="${minor}" />
      <capability name="screenBitDepth"       value="8" />
      <capability name="type"                 value="IE${major}" />
      <capability name="version"              value="${version}" />
    </capabilities>
  </browser>

  <!-- Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11,0) like Gecko -->
  <browser id="IE110" parentID="IE11">
    <identification>
      <capability name="majorversion" match="11" />
    </identification>

    <capabilities>
      <capability name="ecmascriptversion"    value="3.0" />
      <capability name="jscriptversion"       value="5.6" />
      <capability name="javascript"           value="true" />
      <capability name="javascriptversion"    value="1.5" />
      <capability name="msdomversion"         value="${majorversion}.${minorversion}" />
      <capability name="w3cdomversion"        value="1.0" />
      <capability name="ExchangeOmaSupported" value="true" />
      <capability name="activexcontrols"      value="true" />
      <capability name="backgroundsounds"     value="true" />
      <capability name="cookies"              value="true" />
      <capability name="frames"               value="true" />
      <capability name="javaapplets"          value="true" />
      <capability name="supportsCallback"     value="true" />
      <capability name="supportsFileUpload"   value="true" />
      <capability name="supportsMultilineTextBoxDisplay" value="true" />
      <capability name="supportsMaintainScrollPositionOnPostback" value="true" />
      <capability name="supportsVCard"        value="true" />
      <capability name="supportsXmlHttp"      value="true" />
      <capability name="tables"               value="true" />
      <capability name="supportsAccessKeyAttribute"    value="true" />
      <capability name="tagwriter"            value="System.Web.UI.HtmlTextWriter" />
      <capability name="vbscript"             value="true" />
    </capabilities>
  </browser>


  <gateway id="IEbeta" parentID="IE">
        <identification>
            <capability name="letters" match="^([bB]|ab)" />
        </identification>

        <capture>
        </capture>

        <capabilities>
            <capability name="beta"    value="true" />
        </capabilities>
    </gateway>
</browsers>


If you are seeing issues with Firefox version detection, you can also copy the following and place it in firefox.browser into the same folder:

<browsers>
    <browser id="Firefox" parentID="Mozilla">
        <identification>
            <userAgent match="Firefox\/(?'version'(?'major'\d+)(\.(?'minor'\d+)?)\w*)" />
        </identification>

        <capture>
            <userAgent match="Gecko/(?'layoutVersion'\d+)" />
        </capture>

        <capabilities>
            <capability name="browser"                         value="Firefox" />
            <capability name="majorversion"                    value="${major}" />
            <capability name="minorversion"                    value="${minor}" />
            <capability name="version"                         value="${version}" />
            <capability name="type"                            value="Firefox${major}" />
            <capability name="layoutEngine"                    value="Gecko" />
            <capability name="layoutEngineVersion"             value="${layoutVersion}" />
            <capability name="ecmascriptversion"               value="3.0" />
            <capability name="javascript"                      value="true" />
            <capability name="javascriptversion"               value="1.5" />
            <capability name="w3cdomversion"                   value="1.0" />
            <capability name="supportsAccesskeyAttribute"      value="true" />
            <capability name="tagwriter"                       value="System.Web.UI.HtmlTextWriter" />
            <capability name="cookies"                         value="true" />
            <capability name="frames"                          value="true" />
            <capability name="javaapplets"                     value="true" />
            <capability name="supportsCallback"                value="true" />
            <capability name="supportsDivNoWrap"               value="false" />
            <capability name="supportsFileUpload"              value="true" />
            <capability name="supportsMultilineTextBoxDisplay" value="true" />
            <capability name="supportsXmlHttp"                 value="true" />
            <capability name="tables"                          value="true" />
        </capabilities>
    </browser>

    <!-- Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729) -->
    <browser id="Firefox3" parentID="Firefox">
        <identification>
            <capability name="majorversion" match="^[3-9]|[1-9]\d+" />
        </identification>

        <capabilities>
            <capability name="javascriptversion"               value="1.8" />
            <capability name="supportsMaintainScrollPositionOnPostback" value="true" />
        </capabilities>
    </browser>

    <!-- Mozilla/5.0 (Windows; U; Windows NT 5.1; sv-SE; rv:1.9.1) Gecko/20090624 Firefox/3.5 -->
    <browser id="Firefox35" parentID="Firefox3">
        <identification>
            <capability name="minorversion" match="^[5-9]" />
        </identification>

        <capabilities>
        </capabilities>
    </browser>
</browsers>


Alternatively (only if you have RDP access to your server), you can also backup and replace the same files with the above contents that are located in %windir%/Microsoft.NET/Framework/4.0.30319/Config/Browsers -- but you will then need to run 'aspnet_regbrowsers.exe -i' to commit the changes and compile them into the GAC. This resolution will work for both Windows 2003 and 2008 servers (both Standard and R2 editions). More information on this utility and what it does can be found here: http://msdn.microsoft.co...29858%28v=vs.100%29.aspx 

PLEASE THANK if this solution solved your issues, and comment with problems - I will work with you to resolve as possible. AND REMEMBER - NO MATTER WHAT YOU DO - BACKUP, BACKUP, BACKUP anytime you are upgrading/replacing/repairing anything with your production server. The worst you have to do later is delete the backup you didn't need.



[SIDENOTE]: tha_watcha: Code Highlighting in the Syntax Highlighter is working in Post Preview, but is broken in Post Render (this appears on this site). I will verify testing on my other 2.1 beta sites to see if the issue persists in the current builds.
If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
squirrel
2013-11-26T15:15:17Z
Originally Posted by: tha_watcha 

Did the java script console shows any errors?

I guess the errors are related to jQuery in 1.9.6.1 an older version is used which might have problems with IE 10/11.

With yaf 2.0 there is a newer version included. On my tests with IE 10/11 everything works fine with YAF 2.0



In regards to my other post, the reason it works and is hard to reproduce is that Jaben's servers are most likely running ASP.NET 4.5 (or have at least been upgraded to that)... That resolves the browser definitions for IE 10 and 11 on Win 2008 servers...

If the server in question does not have ASP.NET 4.5 installed, then the issue can be reproduced. Servers that are on .NET 4 only will need to be patched or manually patched with the ie.browser file to get IE 11 to work properly. Even setting the Meta Tags does not solve the issue.
If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved