The type initializer for 'X64' threw an exception. #874
Replies: 3 comments 20 replies
-
Is it possible to get the complete stack trace of the exception? |
Beta Was this translation helpful? Give feedback.
-
Have in mind that the error i faced was the "The specified module could not be found", not the "The specified procedure could not be found" one you mentioned. This is a different issue which i don't think i can be of much help. One wild guess i can think off would be something like "the version of the native dll is different than the expected one". In any case, i'm guessing that when the module in the message turned into procedure, your program managed to find the native dll but failed for another reason. I hope this will somehow help. |
Beta Was this translation helpful? Give feedback.
-
Another thing i have stumbled upon several times is that the user running a .NET program must have write access to folder "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files" (or the respective \Framework\ one for 32-bit apps. Perhaps you should try that? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
hello,
I am using magick.net to convert psd to png images for my web application project with .net framework 4.0 and works perfectly on my local machine but when I deploy on server, it started giving error "The type initializer for 'X64' threw an exception." I have tried all the solutions I found but none of them worked for me. The application is running on x64. I have tried adding 64 and anycpu dlls for magick.net.
can anyone please help me? I am stuck from a week.
Beta Was this translation helpful? Give feedback.
All reactions