Invalid IL code in System.Drawing.ColorConverter:.ctor(): method body is empty

Asked 2 years ago, Updated 2 years ago, 106 views

Hi, nice to meet you.I was developing a website at Visual Studio 2012 and Linux server, but when I uploaded it to the server, the above error occurred and I couldn't move from the front page to the other page.Up until now, I have been able to move pages. Removing and re-referencing System.Drawing and System.Drawing.Design failed. Please let me know if anyone knows the solution.

Server Error in '/' Application

Invalid IL code in System.Drawing.ColorConverter:.ctor(): method body is empty.

Description:HTTP500.Error processing request.

Stack Trace:

System.InvalidProgramException:Invalid IL code in System.Drawing.ColorConverter:.ctor():method body is empty.

at(wrapper managed-to-native) System.Reflection.MonoCMethod: InternalInvoke(System.Reflection.MonoCMethod, object, object[], System.Exception &) at System.Reflection.MonoCMethod.Invoke(System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder, System.Object[]parameters, System.Globalization.CultureInfoculture) [0x00000] in:0

asp.net

2022-09-30 20:27

2 Answers

There is not much information, so I can imagine it. It appears to be a compatibility issue between the .net framework version used in VS2012, and Mono running on Linux.Why don't you check the compatibility between the two?


2022-09-30 20:27

This answer may help.
InInvalid IL code in () method body is empty <
It seems to have the form of .
Translating this
LInvalid IL code for ( ) method body is empty です
is now
I'm guessing, but
There is only a header file, and I think the error is caused because I can't find the main file or DLL.


2022-09-30 20:27

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.