G
Guest
I have asp.net code using C# that will convert tif file into jpg and then it
display them. The program works on my machine and Dev machine with Window XP
professional. When I deploy the program on test machine (window 2003 server)
I get error:
Argument Exception Invalid parameter used"
The code that causes the error is:
byte[] imgbyte;
MemoryStream memStream = new MemoryStream(imgByte.Length);
memStream.Write(imgByte, 0 , imgByte.Length);
System.Drawing.Image.FromStream(memStream);
the error happen at Image.FromStream() method.
I tried different ways and searched google without success. Also, I tried
Image.FromFile() where I got "out of memory exception" error.
Is window 2003 cause of this problem?
How I know if GDI+ is installed on window 2003?
Does the dell generated by visual studio .net include the GDI+ dll?
I would appreciate any help in this matter. Thanks
Any help to resolve the issue
I do not know why it does not work on test machine today. It works on my
machine and it worked on test machine previously. I appreciate any help to
resolve this problem. Thanks
display them. The program works on my machine and Dev machine with Window XP
professional. When I deploy the program on test machine (window 2003 server)
I get error:
Argument Exception Invalid parameter used"
The code that causes the error is:
byte[] imgbyte;
MemoryStream memStream = new MemoryStream(imgByte.Length);
memStream.Write(imgByte, 0 , imgByte.Length);
System.Drawing.Image.FromStream(memStream);
the error happen at Image.FromStream() method.
I tried different ways and searched google without success. Also, I tried
Image.FromFile() where I got "out of memory exception" error.
Is window 2003 cause of this problem?
How I know if GDI+ is installed on window 2003?
Does the dell generated by visual studio .net include the GDI+ dll?
I would appreciate any help in this matter. Thanks
Any help to resolve the issue
I do not know why it does not work on test machine today. It works on my
machine and it worked on test machine previously. I appreciate any help to
resolve this problem. Thanks