当前位置:编程学习 > C#/ASP.NET >>

江湖救急,高手进!!!

用2003挂aps.net网站,浏览开始正常,过一会就出现以下错误!!



Server Error in '/' 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.Data.OleDb.OleDbException: 未指定的错误


会是什么问题呢?!!!还有怎么解决!!! --------------------编程问答-------------------- OleDbException 数据库访问时候的问题,信息不够,具体是什么说不好 --------------------编程问答-------------------- web.config里
 <system.web>
 <identity impersonate="true"/>
 </system.web>

impersonate改为false --------------------编程问答-------------------- http://www.google.com.hk/search?sourceid=chrome&ie=UTF-8&q=System.Data.OleDb.OleDbException%3A+%E6%9C%AA%E6%8C%87%E5%AE%9A%E7%9A%84%E9%94%99%E8%AF%AF --------------------编程问答-------------------- web.config里
 <system.web>
 <identity impersonate="true"/>
 </system.web>

impersonate改为false


怎么我的web.config里面没有这个东西!!! --------------------编程问答-------------------- --------------------编程问答-------------------- 开始正常,浏览一会出错
是不是你的DATAREADER什么的没有关闭,连接用完要及时关闭。。。 --------------------编程问答-------------------- web.config里
 <system.web>
 <identity impersonate="true"/>
 </system.web>

impersonate改为false


上面这个东西我的web.config里就没有呀`。。。





<?xml version="1.0"?>
<!-- 
    注意: 除了手动编辑此文件以外,您还可以使用 
    Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的
     “网站”->“Asp.Net 配置”选项。
    设置和注释的完整列表在 
    machine.config.comments 中,该文件通常位于 
    \Windows\Microsoft.Net\Framework\v2.x\Config 中
-->
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<!-- 
            设置 compilation debug="true" 可将调试符号插入
            已编译的页面中。但由于这会 
            影响性能,因此只在开发过程中将此值 
            设置为 true。
        -->
<compilation debug="true">
</compilation>
<!--
            通过 <authentication> 节可以配置 ASP.NET 用来 
            识别进入用户的
            安全身份验证模式。 
        -->
<authentication mode="Windows"/>
<!--
            如果在执行请求的过程中出现未处理的错误,
            则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
            开发人员通过该节可以配置
            要显示的 html 错误页
            以代替错误堆栈跟踪。

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
</system.web>
<system.codedom>
</system.codedom>
<system.webServer>
</system.webServer>
</configuration>







我的是这样的!!! --------------------编程问答-------------------- 人呢` 大哥们 帮忙啦!! --------------------编程问答-------------------- 如果本地没有问题,可能是配置asp.net站点没配好 --------------------编程问答--------------------
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,