![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
|
Hi folks! I made a simple application in c# 2.0, and I successfully installed it on many computers (windows xp pro). The .net framework v. 2 was previously installed of course. On a SINGLE computer, the application start but it crashes immediatly saying "Unhandled exception..", so i surrounded the Main body with a try{}, and in the catch statement i print on a messagebox the exception message. The message is "the type initializer for gdip threw and exception". What can I do? I suppose that this is a problem of the computer (not of my program), because I tested it on many computers (~10) and it works fine. Do I have to reinstall windows? Or copy a dll? Please help me! Thank you!! Paolo Niccolò |
#2
| |||
| |||
|
|
Thank you for your reply! But tell me... do I have to set the "Specific version" property to "true" in the System.Drawing reference properties in visual studio? Is this the trick? Obviously I'm supposing that a fresh install of the framework doesn't work. Thank you again! "Bob Powell [MVP]" wrote: I woult think that at worst you'd have to reinstall the framework on the target machine. Have you verified that framework 2 is running on the targets? it may be Framework 1.1 so this sort of exception would be normal as the System.Drawing dll changed between versions. -- Bob Powell [MVP] Visual C#, System.Drawing |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |