asp.net - IE10 gets Http 401 error while trying to access asmx service jsdebug file -
we have asp.net application works without problem in previous version of internet explorer 10.
but same application not work in internet explorer 10.
when investigated issue, found out references of .asmx web services gets 401-unauthorized error.
the difference between problematic request of ie10 , working request of ie9 : user-agent string.
let me show difference:
below request problematic request of ie10.
get http://abc.com/services/resourceservice.asmx/jsdebug http/1.1 accept: application/javascript, */*;q=0.8 referer: http://abc.com/def/ghi.aspx accept-language: tr-tr accept-encoding: gzip, deflate user-agent: mozilla/5.0 (compatible; msie 10.0; windows nt 6.1; wow64; trident/6.0) connection: keep-alive dnt: 1 host: sgmiis2:8090 cookie: .aspxanonymous=xxxasp.net_sessionid=yyy;aspxauth=zzz; it getting
401 - unauthorized: access denied due invalid credentials.
here same application's request via before ie10 .
get http://abc.com/services/resourceservice.asmx/jsdebug http/1.1 accept: application/javascript, */*;q=0.8 referer: http://abc.com/def/ghi.aspx accept-language: tr-tr accept-encoding: gzip, deflate user-agent: mozilla/4.0 (compatible; msie 9.0; windows nt 6.1; wow64; trident/6.0;) connection: keep-alive dnt: 1 host: sgmiis2:8090 cookie: .aspxanonymous=xxxasp.net_sessionid=yyy;aspxauth=zzz; but request working , getting
http/1.1 200 ok
as can see difference "msie 10.0" , "msie 7.0/msie 8.0/msie 9.0" sections of user-agent header.
i creating request via fiddler's composer section. there no risk of getting 401 error. (with faulty cookies mean) because when changed user-agent string only, can response of http 200.
any idea how can figure out issue?
thanks,
fatih.
there many issues ie 10.
a hotfix available asp.net browser definition files in microsoft .net
please refer http://support.microsoft.com/kb/2600088 .net 4.0 refer http://support.microsoft.com/kb/2608565 .net 3.5
please check :-http://connect.microsoft.com/visualstudio/feedback/details/662275/asp-net-user-agent-sniffing-and-ie10-internet-explorer-10
i hope you.
Comments
Post a Comment