so I have this solution with 2 projects. I transferred whole solution from my laptop, where it works fine, to my PC where I get this error:
System.InvalidProgramException was unhandled HResult=-2146233030
Message=JIT Compiler encountered an internal limitation.
Source=RestSharp StackTrace: at RestSharp.Deserializers.XmlDeserializer.GetElementByName(XElement root, XName name) at RestSharp.Deserializers.XmlDeserializer.GetValueFromXml(XElement root, XName name, PropertyInfo prop) at RestSharp.Deserializers.XmlAttributeDeserializer.GetValueFromXml(XElement root, XName name, PropertyInfo prop) at RestSharp.Deserializers.XmlDeserializer.Map(Object x, XElement root) at RestSharp.Deserializers.XmlDeserializer.Deserialize[T](IRestResponse response) at WolframAlphaNET.WolframAlpha.GetResponse[T](RestRequest request) in i:\VS_Projects_Shared\CCProject\WolframAlpha.NET\WolframAlpha.cs:line 390 at WolframAlphaNET.WolframAlpha.Query(String query) in i:\VS_Projects_Shared\CCProject\WolframAlpha.NET\WolframAlpha.cs:line 374 at CCProject.Search.button1_Click(Object sender, EventArgs e) in i:\VS_Projects_Shared\CCProject\CCProject\Search.cs:line 54 at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.RunDialog(Form form) at System.Windows.Forms.Form.ShowDialog(IWin32Window owner) at System.Windows.Forms.Form.ShowDialog() at CCProject.Form1.button2_Click(Object sender, EventArgs e) in i:\VS_Projects_Shared\CCProject\CCProject\Form1.cs:line 97 at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at CCProject.Program.Main() in i:\VS_Projects_Shared\CCProject\CCProject\Program.cs:line 19 at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) at System.AppDomain.nExecuteAssembly(RuntimeAssembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException:
At this line of code that is part of WolframAlpha.NET https://github.com/Genbox/WolframAlpha.NET :
private T GetResponse<T>(RestRequest request)
{
RestResponse response = (RestResponse)_client.Execute(request);
XmlAttributeDeserializer deserializer = new XmlAttributeDeserializer();
T results = deserializer.Deserialize<T>(response); //this line
return results;
}
Here are PEVerify.exe results:
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools>PEVerify.exe I:\ VS_Projects_Shared\CalorieCounter\CalorieCounter\bin\Debug\CalorieCounter.exe
Microsoft (R) .NET Framework PE Verifier. Version 4.0.30319.33440 Copyright (c) Microsoft Corporation. All rights reserved.
All Classes and Methods in I:\VS_Projects_Shared\CalorieCounter\CalorieCounter\bin\Debug\C alorieCounter.exe Verified.
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools>PEVerify.exe I:\ VS_Projects_Shared\CalorieCounter\CalorieCounter\bin\Debug\CalorieCounter.exe /md /il
Microsoft (R) .NET Framework PE Verifier. Version 4.0.30319.33440 Copyright (c) Microsoft Corporation. All rights reserved.
All Classes and Methods in I:\VS_Projects_Shared\CalorieCounter\CalorieCounter\bin\Debug\C alorieCounter.exe Verified.
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools>PEVerify.exe I:\ VS_Projects_Shared\CalorieCounter\CalorieCounter\bin\Debug\WolframAlpha.NET.dll
Microsoft (R) .NET Framework PE Verifier. Version 4.0.30319.33440 Copyright (c) Microsoft Corporation. All rights reserved.
All Classes and Methods in I:\VS_Projects_Shared\CalorieCounter\CalorieCounter\bin\Debug\W olframAlpha.NET.dll Verified.
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools>PEVerify.exe I:\ VS_Projects_Shared\CalorieCounter\CalorieCounter\bin\Debug\RestSharp.dll
Microsoft (R) .NET Framework PE Verifier. Version 4.0.30319.33440 Copyright (c) Microsoft Corporation. All rights reserved.
All Classes and Methods in I:\VS_Projects_Shared\CalorieCounter\CalorieCounter\bin\Debug\R estSharp.dll Verified.