1 错误信息: 请求因 HTTP 状态 401 失败:Access Denied
解决: 在iis信息服务器上把匿名访问和允许iis控制密码给勾上
2 以下代码段出错的提示是:
异常详细信息: System.ArgumentException: DataTable 已属于另一个 数据集
DataTable dtSubReqInfo = new DataTable();
dtSubReqInfo = (DataTable)Session[this.strSubReqSessionName];
DataSet dsSubReqInfo = new DataSet();
dsSubReqInfo.Tables.Add(dtSubReqInfo);
改为:
DataTable dtSubReqInfo = new DataTable();
dtSubReqInfo = (DataTable)Session[this.strSubReqSessionName];
DataSet dsSubReqInfo = new DataSet();
dsSubReqInfo.Tables.Add(dtSubReqInfo.Copy());
3.分析器错误信息: 未能加载类型:(摘自:59c201\activereports.viewer.dll”
解决方法:
执行 aspnet_regiis -i
8 错误信息:Server Error in '/lqsh' Application.
--------------------------------------------------------------------------------
Debugging is not supported under current trust level settings.
解决方法:“Debugging is not supported under current trust level settings“ is what you will get when you have installed Windows Sharepoint Services using all the defaults and want to debug your web application or service.
To solve this you must first exclude the Virtual Directory hosting the application from WSS management by using the WSS administration tool. Then insert <trust level="Full" originUrl="" /> in your web.config.
We can also go to IIS and change the Application Pool from MSSharePointAppPool to DefaultAppPool.
9 错误信息:OCI-22053: overflow error
些错误信息是由于进行除法运算时无法除尽,出现数据溢出。
解决方法: 使用oracle trunc()函数截去多余的小数位。
10System.UnauthorizedAccessException: 拒绝访问。
实现将数据导到EXCEL时,要在服务器端调用微软的EXCEL组件,
必须要求服务器端安装Excel,并且要求一定的访问权限给予WEB目录可写的权限。
解决方法: 可以尝试在web.config里面添加以下一行以解决这个问题
<identity impersonate="true" userName="YourAdminUsr" password="YourAdminPwd"/>
11 使用oleDB读取Excel时如果出现:System.Data.OleDb.OleDbException: 未指定的错误
很有可能是在web.config里多了一句:<identity impersonate="true"/>。
注意:当读取的Excel文件存放在NTFS分区里,读取时会报错“无权限访问”。可将Excel存放在fat32分区中。
12 错误信息:System.Data.OleDb.OleDbException: Microsoft Jet 数据库引擎打不开文件''。 它已经被别的用户以独占方式打开,或没有查看数据的权限。