“/”应用程序中的服务器错误。

对路径“D:\web\mobile.ebseek.com\WeiXinCache\WeiXinAccessToken.xml”的访问被拒绝。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.UnauthorizedAccessException: 对路径“D:\web\mobile.ebseek.com\WeiXinCache\WeiXinAccessToken.xml”的访问被拒绝。

ASP.NET 无权访问所请求的资源。请考虑对 ASP.NET 请求标识授予访问此资源的权限。ASP.NET 有一个在应用程序没有模拟时使用的基进程标识(通常,在 IIS 5 上为 {MACHINE}\ASPNET,在 IIS 6 和 IIS 7 上为网络服务,在 IIS 7.5 上为配置的应用程序池标识)。如果应用程序正在通过 <identity impersonate="true"/> 模拟,则标识将为匿名用户(通常为 IUSR_MACHINENAME)或经过身份验证的请求用户。

要将 ASP.NET 访问权限授予某个文件,请在文件资源管理器中右击该文件,选择“属性”,然后选择“安全”选项卡。单击“添加”添加适当的用户或组。突出显示 ASP.NET 帐户,选中所需访问权限对应的框。

源错误:


行 5:      _Description =_Description?? "概要内容描述";
行 6:      _imgUrl = _imgUrl ?? "http://mobile.ebseek.com/Images/logo.png";
行 7:      Solution.BLL.CommonMod.WeixinBLL.GetShareSignatrue(Page_Url,out Page_AppID,out Page_TimeStamp,out Page_RandStr,out Page_Signature);
行 8:       %>
行 9:  <script src="/Scripts/WeiXin/WeiXinUtils.js" type="text/javascript"></script>

源文件: d:\web\mobile.ebseek.com\Modules\Site\CommonFootJS.ascx    行: 7

堆栈跟踪:


[UnauthorizedAccessException: 对路径“D:\web\mobile.ebseek.com\WeiXinCache\WeiXinAccessToken.xml”的访问被拒绝。]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +12702637
   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) +829
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +65
   System.Xml.XmlDocument.Save(String filename) +129
   WeiXinManage.BLL.BaseConn.GetAccessTokenCache(String appID, String appSecret, String cacheFolderPath) +1346
   WeiXinManage.BLL.BaseConn.GetWeiXinApiTiketData(String appID, String appSecret, String cacheFolderPath) +119
   WeiXinManage.BLL.BaseConn.GetWeiXinApiTiketCache(String appID, String appSecret, String cacheFolderPath) +1150
   WeiXinManage.BLL.WeChatBLL.GetShareSignatrue(String appID, String appSecret, String cacheFolderPath, String url, String& timestamp, String& nonceStr, String& signature) +235
   Solution.BLL.CommonMod.WeixinBLL.GetShareSignatrue(String url, String& appID, String& timeStamp, String& randStr, String& signature) +131
   ASP.modules_site_commonfootjs_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\web\mobile.ebseek.com\Modules\Site\CommonFootJS.ascx:7
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +268
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +13
   System.Web.UI.Control.Render(HtmlTextWriter writer) +12
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +66
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   ASP.sitetheme_001_base_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\web\mobile.ebseek.com\SiteTheme\001\Base.Master:35
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +268
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +13
   System.Web.UI.Control.Render(HtmlTextWriter writer) +12
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +66
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +13
   System.Web.UI.Control.Render(HtmlTextWriter writer) +12
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +66
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +13
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +66
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1303


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.2623.0