c# - Randomly seeing System.NotSupportedException: http in WebRequest.GetCreator(string prefix) -


on our asp mvc application running on mono, notsupportedexception: http when creating webrequests. here stacktrace:

979: message: system.notsupportedexception: http 980:  @ system.net.webrequest.getcreator (system.string prefix) [0x00000] in <filename unknown>:0  981:  @ system.net.webrequest.createdefault (system.uri requesturi) [0x00000] in <filename unknown>:0    version information: 3.0.12 (master/b39c829 tue jun 18 11:23:32 cest 2013); asp.net version: 4.0.30319.17020 

https://github.com/mono/mono/blob/master/mcs/class/system/system.net/webrequest.cs#l479

sometimes works , doesnt. couldnt figure out why. did solve issue?

i saw in of earlier versions of mono 2.10 (a couple of years ago actually), , helped tracking down (but haven't seen time now).

if memory doesn't fail me race condition in either asp.net's startup path or bug in synchronization primitives asp.net using.

it tricky track down, happened on production server (of course) , sporadically.

in case happened after asp.net restart. had bots connecting periodically server, , if server had been down time there many bots anxiously pounding server once got back, apparently making race condition easier trigger.

in order narrow down built mono source , added console.writeline statements. after while (weeks in fact, since more console.writelines added harder became reproduce), culprit found. unfortunately don't remember problem nor fix was.

hopefully track down.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

node.js - Node - Passport Auth - Authed Post Route hangs on form submission -

Does Firefox offer AppleScript support to get URL of windows? -