Hi all,
Recently i have upgraded my system from XP to windows7.The application was working fine in XP but when i tried to run the same application in windows7 following mentioned exception has occured

System.TypeInitializationException was unhandled
  Message="The type initializer for 'RimageClient.MainForm' threw an exception."
       at RimageClient.MainForm.Main(String[] args)
       at System.AppDomain._nExecuteAssembly(Assembly 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.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()

Any help is appreciated.


Please use code tags when posting code/stack traces to daniweb:


...code here...


[code=text] ...exception here...


Upload your application. Its hard to tell whats going wrong without seeing code. Hit "Go Advanced" then "Manage Attachments" and it will let you upload a zip.