把系统生成了二维码图片,在打包下载时提示错误(本地可以,服务器上就报错)...

把捕获的到异常复制出来看了下

Error Caught in PageBase_Error event  
Error in:http://xxxxx.com/Member/MemList.aspx  
Error Message:对路径“c:\windows\system32\inetsrv\DotNetZip-sldfb51v.tmp”的访问被拒绝。  
Stack Trace:   
在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)     
在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)     
在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)     
在 System.IO.FileStream..ctor(String path, FileMode mode)     
在 Ionic.Zip.SharedUtilities.CreateAndOpenUniqueTempFile(String dir, Stream& fs, String& filename)     
在 Ionic.Zip.ZipFile.get_WriteStream()     
在 Ionic.Zip.ZipFile.Save()     
在 ChainStock.Member.MemList.Zip(String Directory, String SaveFileName)     
在 ChainStock.Member.MemList.CreateQRCode()     
在 System.Web.UI.WebControls.Button.OnClick(EventArgs e)     
在 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

后来查阅资料发现是应用池的问题,修改如下:

1.找到系统使用的应用池

将这里的值修改为:localSytem

2.  64位服务器记着改启用32应用程序

 

转载于:https://www.cnblogs.com/LoveQin/p/9371677.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值