Last post Jun 23, 2010 09:08 PM by Mobius5150
Jun 21, 2010 09:58 PM|Mobius5150|LINK
I just made a quick little program that resizes, watermarks, and converts images to grayscale on demand. The program is in the form of an HttpHandler.
It works perfectly from the development environment, but when I uploaded it to my IIS 7 Windows 2008 Server, the image manipulation is no longer working correctly.
It is not resizing the images properly - they are way smaller then they should be. It is also not applying the watermark correctly, as it used to resize the watermark so that it wasent too big for the picture, then put it in the middle. It no longer resizes
Does anyone know of any settings that could be causing this to behave differently on the server vs. the development environment?
Jun 22, 2010 03:16 AM|Steelymar|LINK
Perhaps your problem is in different versions of .NET Framework...
Instal to your server identical framework like your development environment and set IIS to use them for this site.
Jun 23, 2010 02:10 AM|Mobius5150|LINK
As far as I can tell, they are using the same framework. When I click help-->About in Visual Studio 2010 It tells me its using version 4.0.30319 and the IIS 7 application pool is also set to use asp.net 4.0.30319.
Would the VS development server use a different framework then VS?
Jun 23, 2010 09:08 PM|Mobius5150|LINK
Okay, So i played with a bit of code, and found this:
The first line produces very different results than the second line. This was one change, among many.
Basically, this line watermarks the logo onto an image. The first line draws the full sized logo (3577x787px) at full size, even though it was supposed to have been resized to an appropriate size by another function (not shown).
Does anyone know why these would produce such different results?