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


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

    Error Caught in PageBase_Error event  
    Error in:http://xxxxx.com/Member/MemList.aspx  
    Error Message:对路径“c:windowssystem32inetsrvDotNetZip-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应用程序

  • 相关阅读:
    Python字符编码详解
    Python 编程规范
    希尔排序
    浅析 Python 的 metaclass
    c#通过数据集生成浏览页面
    QQ搜索群参数详解
    扩展名为HTM或HTML的文件图标不能正常显示的解决方案
    利用QQ2009协议,将抓包直接解密出ClientKey(SessionKey)
    用Sql语句还原,分离,删除数据库连接
    asp.net 导出excel 问题 (服务器的部署)
  • 原文地址:https://www.cnblogs.com/LoveQin/p/9371677.html
Copyright © 2020-2023  润新知