PDA

View Full Version : error saving graphic, permissions?


petro426
01-14-2004, 10:44 AM
Hello.

The following command:

b.Save("testimage.gif", ImageFormat.gif)

works on my PC, but does't work when I try to run it on my website at Discount ASP.net. It generates the following error:
---------------------------------------
A generic error occurred in GDI+.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
---------------------------------------

I'm assuming this is a permissions thing? The 'anonymous' user has read & write access allowed in the directory this file should be save to. Has anybody else run into this issue & found a solution?

Thanks,
Rich

petro426
01-14-2004, 11:25 AM
Using the img src="*.aspx".

All set.

Thanks for looking,
R

KPayne
01-18-2004, 02:32 AM
Try b.Save(Path.Combine(Server.MapPath("MyWebApplicationDirectory"), "testimage.gif"), ImageFormat.gif)

Keith Payne
Technical Marketing Solutions