Error 500 gdiplus.dll ASP.NET

wiigee

New Member
Messages
3
Reaction score
0
Points
0
well, Im trying to get my website to work at x10hosting, but I cant fix this Error 500

Server Error in '/' Applicationgdiplus.dll

Description: HTTP 500. Error processing request.
Stack Trace:
System.DllNotFoundException: gdiplus.dll
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x00000] in <filename unknown>:0 Version information: Mono Runtime Version: 2.6.1 (tarball Thu Jan 28 00:15:36 EST 2010); ASP.NET Version: 2.0.50727.1433
so, first some facts:
-Im developing this site in Microsoft Visual Studio 2008 SP1 under Windows 7
-I know this hosting works under Linux using Mono, and some things will not work as well as with a windows platform.
-I know this is a problem with the System.Drawing reference in my project. So just to make sure I deleted all the System.Drawing references. But maybe the System.Web references System.Drawing which references gdiplus.dll, but I don't think I can remove System.Web from my WebSite and expect it to work.
-I know that the <asp:menu> control might not work well with Mono, so I removed the control, but the problem still exists.
-I'm using MasterPages
-I have the gdiplus.dll in my "bin" folder and in my "public_html" folder.
-I have tried to reference the gdiplus.dll to my project with "Add a reference", but that only gives the error "Couldn't find component type libraries in dll"
-I have added <dllmap dll="gdiplus.dll" target="libgdiplus.so"/> to my web.config file.
-I have read all the topics in this forum which involves "gdiplus.dll", and I cant find anything really helpful in those topics.
-By the way, my native language is Spanish, not English, so I might have missed something.

so, if someone can help me (and others with the problem) with a "human understandable" solution (not things like "go read the 20XX pages of mono documentation"), it will be much appreciated.
 

vishal

-::-X10 Guru-::-
Community Support
Messages
5,255
Reaction score
192
Points
63
ASP.net is not fully online on the servers.
 

jetzdax

New Member
Messages
1
Reaction score
0
Points
0
I was struggling a bit with this and there were so many threads on this forum suggesting all sorts of workaround which do not work because ultimately X10 is running mono on top of a linux box instead of running a real Microsoft Windows box, so not all GUI components are properly implemented by mono.

My solution for this is to find out which controls and even attributes are responsible for causing the problem and start replacing them.

In my case, it was the ForeColor="Red" attribute in my <asp:Label> control. So I removed that and the GDIplus lib problem went away.

Of course alternatively you can find yourself another server that deploys a real Windows OS but chances are it is going to cost you some $$$ ;)
 
Last edited:
Top