Server Error in '/' Application.未指定的错误

helong34605 2010-07-01 07:23:57
未指定的错误
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.Data.OleDb.OleDbException: 未指定的错误

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[OleDbException (0x80004005): 未指定的错误]
System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +1054801
System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +53
System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +27
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +47
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.OleDb.OleDbConnection.Open() +37
MenJinCCDAL.DBHelper.GetReader(String sql, OleDbParameter[] param) in E:\menjincc\menjincc\MenJinCCDAL\DBHelper.cs:38
MenJinCCDAL.ShowTitleDAL.GetTitle(String url) in E:\menjincc\menjincc\MenJinCCDAL\ShowTitleDAL.cs:29
MenJinCCBLL.ShowTitleBLL.GetTitle(String url) in E:\menjincc\menjincc\MenJinCCBLL\ShowTitleBLL.cs:13
Common.GetTitleName(String path, Page pg) +11
Index.Page_Load(Object sender, EventArgs e) +36
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


...全文
71 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
辰爸 2010-07-01
  • 打赏
  • 举报
回复
这是因为没有权限在临时目录里写文件而产生的。这种问题的原因:系统temp文件夹访问权限不够修改方法如下:进工具-文件夹选项-查看-把使用简单文件共享(推荐),关掉。然后进windows/temp,单击右键选择-属性,你就会看到一个叫做“安全”的选项,添加一个everyone,权限设置为完全控制,再将你正在使用windows的用户也设置为完全控制,就OK了。

用ASP.NET的写的WEB程序,当访问量过多后,在登录时就会报错Unspecified error 0x80004005,是连不上数据库了,查找了相关原因,是服务器上IIS向临时文件夹写文件写满了,写不进去了,要重新启动一下服务器,或者要清理临时文件或者调整磁盘空间(用磁盘配额。给IIS帐号:Internet Guest Account在C盘足够大空间的写权限) 或者 把临时文件夹定义到别的足够大的磁盘
wuyq11 2010-07-01
  • 打赏
  • 举报
回复
添加文件操作权限
对于Acess数据库文件要有everyone或者asp.net用户的写入权限

62,041

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧