网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > ASP.NET技巧
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
网络编程:ASP教程,ASP.NET教程,PHP教程,JSP教程,C#教程,数据库,XML教程,Ajax,Java,Perl,Shell,VB教程,Delphi,C/C++教程,软件工程,J2EE/J2ME,移动开发
本月文章推荐
.从ASP.NET 1.1升级到ASP.NET 2.0.
.ACCESS在Web.config里设置连接字.
.ASP.NET2.0下利用javascript实现.
.投票结果的图片进度条显示.
.asp.net创建文件夹的IO类的问题.
.在Visual Studio 2005和ASP.NET .
.asp.net中读取和更新xml文件.
.利用ASP.NET的内置功能抵御Web攻.
.ASP.NET组件DataGrid的分页实用方.
.自定义ViewState的保存方式.
.Asp.Net2.0中实现多任务异步页的.
.学习一下.net framework 中有关安.
.页面刷新后WebControl的动态添加.
.开发ASP.NET Atlas服务器端Exten.
.存储过程的分析.
.开发ASP.NET Atlas服务器端Exten.
.由于未处理服务器端代码而导致 A.
.简写的通用数据层代码.
.解决ASP.NET的进程帐户没有访问 .
.mscorwks.dll在.Net中的地位以及.

ASP.NET 拒绝访问

发表日期:2006-7-26


使用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.cnblogs.com/sherry/archive/2006/07/25/459248.html

上一篇:在虚拟主机上用asp.net轻松实现urlrewrite 人气:6273
下一篇:ASP.NET 2.0 Web窗体语法指导 人气:6069
浏览全部ASP.NET的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐