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
_______________________________________________
Mono-aspnet-list mailing list
Mono-aspnet-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-aspnet-list