国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

ASP.NET 拒絕訪問

2019-11-18 17:05:22
字體:
來源:轉載
供稿:網友

使用MICROSOFT的com組件編寫插入數據到Excel然后再下載到客戶機本機程序,在開發時測試通過,上傳到WIN2000服務器上后出現如下錯誤:
  Server Error in '/Webqr' application.
--------------------------------------------------------------------------------
拒絕訪問。
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.UnauthorizedaccessException: 拒絕訪問。

asp.net is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base PRocess identity (typically {MACHINE}/ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

由于本機測試的時候就出現這種情況,在網上查找解決方法,嘗試解決的方法如下:
1。提高IIS_USER的權限,將IIS_USER加入ADMINISTRATOR,個人覺得這樣做有安全風險,故不采用
2。在開始-》運行 輸入dcomcnfg配置,EXCELcom文件的安全性權限,編輯啟動權限,配置權限
修改完成后出現錯誤
  Server Error in '/Webqr' Application.
--------------------------------------------------------------------------------
Object reference not set to an instance of an object

http://www.survivalescaperooms.com/sherry/archive/2006/07/25/459248.html


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 丰城市| 台安县| 临邑县| 阜新市| 盐源县| 万载县| 昭平县| 泗水县| 乐山市| 绵阳市| 崇仁县| 方正县| 洪洞县| 黎城县| 丰宁| 千阳县| 色达县| 闽侯县| 大安市| 资阳市| 黄浦区| 武功县| 榆社县| 松桃| 固原市| 宁夏| 三门峡市| 义马市| 五河县| 分宜县| 阿坝县| 舟山市| 卢氏县| 兴安盟| 大连市| 耒阳市| 库尔勒市| 南部县| 汉沽区| 陆良县| 应城市|