Bug 17582 - Trying to run SignalR on Linux, failing with this error:
Summary: Trying to run SignalR on Linux, failing with this error:
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: General ()
Version: 3.2.x
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Martin Baulig
URL:
Depends on:
Blocks:
 
Reported: 2014-02-03 20:16 UTC by Paul
Modified: 2014-03-04 09:44 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Paul 2014-02-03 20:16:24 UTC
01:11:51.4425760 - null - ChangeState(Disconnected, Connecting)
01:11:53.7506470 - null - Disconnected
01:11:53.7694850 - null - Transport.Dispose()
01:11:53.7753800 - null - Closed
04/02/2014 01:11:54 [Error] There was an error opening the connection:System.NotImplementedException: This method must be implemented in derived classes
  at System.Net.WebRequest.set_ImpersonationLevel (TokenImpersonationLevel value) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Net.WebRequest:set_ImpersonationLevel (System.Security.Principal.TokenImpersonationLevel)
  at System.Net.Http.WebRequestHandler.CreateWebRequest (System.Net.Http.HttpRequestMessage request) [0x00000] in <filename unknown>:0
  at System.Net.Http.HttpClientHandler+<SendAsync>c__asyncC.MoveNext () [0x00000] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[System.Net.Http.HttpResponseMessage].GetResult () [0x00000] in <filename unknown>:0
  at System.Net.Http.HttpClient+<SendAsyncWorker>c__async5.MoveNext () [0x00000] in <filename unknown>:0
Comment 1 Paul 2014-02-03 20:17:13 UTC
How can we get the "System.Net.WebRequest.set_ImpersonationLevel" implemented in mono?
Comment 2 Mikayla Hutchinson [MSFT] 2014-02-03 22:58:13 UTC
AFAICT our WebRequestHandler implementation does not take into account the fact that our HttpWebRequest does not implement ImpersonationLevel.
Comment 3 Paul 2014-02-04 09:46:46 UTC
So what would it take to implement the "ImpersonationLevel"? Also, can you point me to the source so I can have a look, and think about other workarounds? Thanks
Comment 4 Paul 2014-02-04 17:24:10 UTC
Looks like the problem can be found here: https://github.com/search?q=ImpersonationLevel+NotImplementedException&type=Code&ref=searchresults
Comment 5 Paul 2014-02-07 20:09:04 UTC
Here is the specific place where the issue is. How can we get this fixed? Can I fix this in GitHub for you guys? I really need this fixed, this is a major blocking issue, which I can't find a workaround to.

http://farm4.staticflickr.com/3701/12374086993_6674a9dae7_o.png
Comment 6 Miguel de Icaza [MSFT] 2014-02-11 21:58:02 UTC
Ok, the method is now in Mono.

How were you trying to run SignalR?   I would like to try myself.
Comment 7 Redth 2014-03-04 09:44:52 UTC
@Miguel there's a code sample here in the SignalR issue

https://github.com/SignalR/SignalR/issues/2550

I too can confirm I'm receiving this error currently with Mono 3.2.6 on Mac...