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."
  Source="RimageClient"
  TypeName="RimageClient.MainForm"
  StackTrace:
       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.


Regards
Naykodi

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

[code]

...code here...

[/code]

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

[/code]

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.