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

首頁 > 編程 > .NET > 正文

ASP.NET 拒絕訪問

2024-07-10 13:10:04
字體:
來源:轉載
供稿:網友

最大的網站源碼資源下載站,

使用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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 庆安县| 北京市| 林州市| 长乐市| 开平市| 宽城| 宣化县| 琼海市| 宁蒗| 玉门市| 阳高县| 泽库县| 陆良县| 泉州市| 建昌县| 德令哈市| 邵阳市| 太康县| 铁岭县| 铜鼓县| 富平县| 辽宁省| 台东市| 明溪县| 上饶县| 宁陵县| 衡南县| 泸州市| 乐亭县| 抚顺县| 卢龙县| 德保县| 洛宁县| 嘉善县| 错那县| 资溪县| 连云港市| 罗定市| 湛江市| 庐江县| 民权县|