设为首页  
联系我们  
加入收藏  
网页制作 冲浪宝典 图形图像 操作系统 软件教学 编程开发 认证考试 安全技术 站长专区 文学驿站 娱乐天地 游戏天地 办公软件
文章搜索
您的位置: 首页 >> 文章首页 >> 编程开发 >> 网络编程 >> ASP教程 >> ASP.NET 拒绝访问
精品推荐
ASP教程点击TOP10
·用ASP查看数据库记录的代码
·ASP讲座之六:ASP与数据库(一)
·ASP教程:UrlRewrite 使用参考文档
·ASP去掉字符串头尾连续回车和空格的Function
·ASP讲座之一:网页开发利器:高效易学的ASP
·ASP六大对象介绍
·十天学会ASP之第一天
·ASP使用的去掉字符串头尾连续回车和空格的函数
·十天学会ASP之第二天
·简单熟悉掌握ASP的语法和变量
网络编程点击TOP10
·ASP.NET 程序中常用的三十三种代码
·CHK文件恢复工具
·.NET 初 级 读 本
·c#操作word表格
·我的.NET书架 (入门篇)
·『原创』C#中TreeView类操作全攻略:建立树,新增节点,删除节点,修改节点,拖动节点,与Oracle数据库交互操作(一)
·从零开始学ASP.NET(基础篇)
·用C#实现木马程序
·十天学会ASP.net之第一天
·官方水晶报表 .NET 应用程序实例下载 (C#、Visual C++.NET)
精选专题

ASP.NET 拒绝访问

作者: 来源:http://www.xgdown.com/ 时间:2006-9-12 13:39:44

ASP.NET 拒绝访问(1)

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

共2页 9 7 [1] [28 :>

ASP.NET 拒绝访问 相关文章:
ASP.NET 拒绝访问 相关软件:
特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
转载请注明来源:http://www.xgdown.com