Hi thunderwolf, I'm glad to see you're still persisting!
...I made it with Visual studio and tested it (it worked). Then I uploaded it to my website here and got this error...
Do you understand that you can't just build an asp.net website on Windows, and then expect it to work on Lynux? This isn't a Windows server, it's Apache. And finally, we can't use the .Net Framework, we have to use
the Mono project as an alternative. So, in order for you to build your site in asp.net, you need to understand what all this means for you. For example, have you read '
using asp.net on Mono'?
If you want the simple approach, you need to find yourself a Windows Hosting company using Microsoft IIS. You have a Next-to-Nothing chance of finding anyone providing this for free however (there is one that I know of, but you have to sell you soul!) Learning about how to get your project to work in an open source environment is an opportunity for you to expand your knowledge and experience, so I hope you don't let this put you off.
I had this problem, too, awhile ago. If I remember right, it had to do with the standard asp.net form validation controls (eg. RequiredFieldValidator)...
Pi606 has had this issue, and has fixed it - so I believe this is where you should start.
Just like he has, you need to understand what function gdiplus.dll is performing in your project. If you are performing drawing operations, your .net project should be referencing System.Drawing.dll, not gdiplus.dll (
which is a C++ redistributable). So; I don't yet understand how are you using it as you've provided nothing for us to work with.
Have you implicitly made a reference to it in your project? I'm assuming you haven't; why would you? So, we could infer that another .dll in your project is referencing it; perhaps System.Drawing.dll is a wrapper for this dll??? :dunno: This means simply copying the .dll to your local folder and adding it to your project, just will not work for you.
Obviously, if you are referencing the .dll directly, then yes, coping it to your local folder, and ensuring you reference that version as garrettroyce said (right-click on the Solution Explorer), should work in theory. Like the man said, I too wonder if this would be allowed by our host... Also, the fact that this is a Windows dll, required by the Windows operating system, would it work on a Linux machine just by copying it? Again, it sounds very messy and shouldn't be necessary. BTW, Searching only the 'Program Files' directory on my PC gives me six different copies of this gdiplus.dll!
No matter how experienced you are in ASP.Net/Windows, you should first build a simple asp.net '
Hello World!' project. Upload that, and see if you can get it to work here, using this Mono/Apache/Linux setup. Once you've got passed that stage, you will have learnt a lot. Of course, come back if you need a hand with that. You could then start to add your required functionally piece by piece, until you hit this error again; Bingo! Now you have something to work with...
Give us some more information so we don't have to guess; What are you doing in your project? Where do you think your project uses gdiplus.dll? etc. We could perhaps provide further guidance and learn stuff from you at the same time. I'm sure there are a few of us just waiting for decent .Net questions!