国产探花免费观看_亚洲丰满少妇自慰呻吟_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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 锡林郭勒盟| 岫岩| 肇源县| 龙江县| 东平县| 通山县| 乌海市| 古蔺县| 手游| 连云港市| 阿坝县| 吴江市| 峡江县| 永济市| 崇明县| 土默特右旗| 临高县| 沙洋县| 海盐县| 顺平县| 马尔康县| 峨眉山市| 太谷县| 阳春市| 景东| 皋兰县| 文登市| 遂平县| 文安县| 吉木乃县| 阿拉善盟| 长子县| 闻喜县| 南开区| 延长县| 儋州市| 兴安县| 万山特区| 宁波市| 沛县| 通榆县|