[Mono-aspnet-list] HttpSelfHostConfiguration Error
thvenket at gmail.com
thvenket at gmail.com
Mon Jan 4 06:25:04 UTC 2016
Hi,
I am getting the following error when I run my standalone process. I compiled the binaries using Visual studio 2015. Can someone please help? I see on the internet that others have hit this issue as well but no solution ..
Unhandled Exception:
System.TypeInitializationException: An exception was thrown by the type initializer for System.Net.Http.Formatting.MediaTypeConstants ---> System.InvalidProgramException: Invalid IL code in System.Net.Http.Headers.MediaTypeHeaderValue:.ctor (string): method body is empty.
at System.Net.Http.Formatting.MediaTypeConstants..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Net.Http.Formatting.JsonMediaTypeFormatter..ctor () [0x00000] in <filename unknown>:0
at System.Net.Http.Formatting.MediaTypeFormatterCollection.CreateDefaultFormatters () [0x00000] in <filename unknown>:0
at System.Net.Http.Formatting.MediaTypeFormatterCollection..ctor () [0x00000] in <filename unknown>:0
at System.Web.Http.HttpConfiguration.DefaultFormatters () [0x00000] in <filename unknown>:0
at System.Web.Http.HttpConfiguration..ctor (System.Web.Http.HttpRouteCollection routes) [0x00000] in <filename unknown>:0
at System.Web.Http.SelfHost.HttpSelfHostConfiguration..ctor (System.Uri baseAddress) [0x00000] in <filename unknown>:0
at System.Web.Http.SelfHost.HttpSelfHostConfiguration..ctor (System.String baseAddress) [0x00000] in <filename unknown>:0
at ContainerManagement.Discovery.DiscoveryService.StartDiscovery () [0x00000] in <filename unknown>:0
at ContainerManagement.Discovery.DiscoveryService.Start () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) ContainerManagement.Discovery.DiscoveryService:Start ()
at ContainerManagement.Discovery.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for System.Net.Http.Formatting.MediaTypeConstants ---> System.InvalidProgramException: Invalid IL code in System.Net.Http.Headers.MediaTypeHeaderValue:.ctor (string): method body is empty.
at System.Net.Http.Formatting.MediaTypeConstants..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Net.Http.Formatting.JsonMediaTypeFormatter..ctor () [0x00000] in <filename unknown>:0
at System.Net.Http.Formatting.MediaTypeFormatterCollection.CreateDefaultFormatters () [0x00000] in <filename unknown>:0
at System.Net.Http.Formatting.MediaTypeFormatterCollection..ctor () [0x00000] in <filename unknown>:0
at System.Web.Http.HttpConfiguration.DefaultFormatters () [0x00000] in <filename unknown>:0
at System.Web.Http.HttpConfiguration..ctor (System.Web.Http.HttpRouteCollection routes) [0x00000] in <filename unknown>:0
at System.Web.Http.SelfHost.HttpSelfHostConfiguration..ctor (System.Uri baseAddress) [0x00000] in <filename unknown>:0
at System.Web.Http.SelfHost.HttpSelfHostConfiguration..ctor (System.String baseAddress) [0x00000] in <filename unknown>:0
at ContainerManagement.Discovery.DiscoveryService.StartDiscovery () [0x00000] in <filename unknown>:0
at ContainerManagement.Discovery.DiscoveryService.Start () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) ContainerManagement.Discovery.DiscoveryService:Start ()
at ContainerManagement.Discovery.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
Sent from Windows Mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20160104/8e5004fa/attachment.html>
More information about the Mono-aspnet-list
mailing list