HighTechTalks DotNet Forums  

Re: gdip exception

Dotnet Framework (Drawing) microsoft.public.dotnet.framework.drawing


Discuss Re: gdip exception in the Dotnet Framework (Drawing) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Bob Powell [MVP]
 
Posts: n/a

Default Re: gdip exception - 11-22-2006 , 02:28 PM






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

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.



"Paolo Niccolò Giubelli [Axettone]" <axettone|at|hotmail|com> wrote in
message news:C58FA854-A4FF-4056-9DA9-4BE65EBD8772 (AT) microsoft (DOT) com...
Quote:
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ò



Reply With Quote
  #2  
Old   
Bob Powell [MVP]
 
Posts: n/a

Default Re: gdip exception - 11-23-2006 , 01:15 PM






It can't hurt but what's the problem with insisting on a Framework 2
install???

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.



"Paolo Niccolò Giubelli [Axettone]" <axettone|at|hotmail|com> wrote in
message news:942DA723-FA47-40A1-8137-265C87952CCF (AT) microsoft (DOT) com...
Quote:
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




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.