在程序中有一句
bb.Save("c:\\inetpub\\wwwroot\\mymappoint\\s_sub.jpg",ImageFormat.Jpeg);
会抛出异常"GDI+ 中发生一般性错误。"
但是如果把保存的路径改为c盘的根目录就没有问题。而且我把mymappoint这个虚拟目录的权限改为了可写。
谢谢。
make sure you give ASPNET account read/write permissions on
c:\inetpub\wwwroot\mymappoint
in Windows Explorer