IIS,.netframework ,虚拟目录站点什么的看看

解决方案 »

  1.   

    如果是2005移一定要把IIS安正确。不然很容易出错。建议你使用2.0版本的了!
      

  2.   

    第1种.给asp.net帐号分配好访问com的权限,配置好com+
    第2种.在web.config的system.web节加入
    <identity impersonate="true" userName="具有管理员权限的帐号名" password="相应的密码"/>
      

  3.   

    Could not load file or assembly .....要在服务器上装相应组件,或者把这些dll放到bin下面
      

  4.   

    BatchParser 这玩意没引用或配置?
      

  5.   

    换一个应用程序池看看!!必要的IIS设置都正确?匿名,window验证,Framework注册的版本
      

  6.   

    用的Access数据库,数据库在App_Data目录下,然后发布到了Windows2003服务器上就包这种错误了。希望这些信息能帮助大家定位错误在哪
      

  7.   

    <?xml version="1.0"?>
    <configuration>
      <appSettings/>
      <connectionStrings>
        <add name="wwgspConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=true;Data Source={0};Jet OLEDB:Database Password=xyjadmin"/>
      </connectionStrings>
      <system.web>
        <customErrors mode="Off"/>
        <!-- 
                设置 compilation debug="true" 可将调试符号插入
                已编译的页面中。但由于这会 
                影响性能,因此只在开发过程中将此值 
                设置为 true。
            -->
        <compilation debug="true">
        </compilation>
        <!--
                通过 <authentication> 节可以配置 ASP.NET 用来 
                识别进入用户的
                安全身份验证模式。 
            -->
        <authentication mode="Windows"/>
        
                <!--如果在执行请求的过程中出现未处理的错误,
                则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
                开发人员通过该节可以配置
                要显示的 html 错误页
                以代替错误堆栈跟踪。-->
          <!--<customErrors mode="Off" mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
              <error statusCode="403" redirect="NoAccess.htm" />
              <error statusCode="404" redirect="FileNotFound.htm" />
          </customErrors>-->
        <httpHandlers>
          <add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory,AjaxPro.2"/>
        </httpHandlers>
      </system.web></configuration>
    //这里获取数据库配置能在本地跑,应该没问题
    string _connectionString = String.Format(ConfigurationManager.ConnectionStrings["wwgspConnectionString"].ToString(), AppDomain.CurrentDomain.BaseDirectory + "App_Data/xyjdb.mdb");
      

  8.   

    在C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG 里面的config文件里面有没有error里面的东西,
    如果有的话,在web,config里面把它remove掉
      

  9.   

    事件类型: 警告
    事件来源: ASP.NET 2.0.50727.0
    事件种类: Web Event 
    事件 ID: 1310
    日期: 2009-6-1
    事件: 12:34:14
    用户: N/A
    计算机: 82354E5B9C074E8
    描述:
    Event code: 3008 
    Event message: 发生了配置错误。 
    Event time: 2009-6-1 12:34:12 
    Event time (UTC): 2009-6-1 4:34:12 
    Event ID: 109a6686b33145ddb962d611db326f3b 
    Event sequence: 1 
    Event occurrence: 1 
    Event detail code: 0 
     
    Application information: 
        Application domain: /LM/W3SVC/1/Root/xyz-1-128883044192498432 
        Trust level: Full 
        Application Virtual Path: /xyz 
        Application Path: C:\xyj\ 
        Machine name: 82354E5B9C074E8 
     
    Process information: 
        Process ID: 2124 
        Process name: w3wp.exe 
        Account name: NT AUTHORITY\NETWORK SERVICE 
     
    Exception information: 
        Exception type: HttpException 
        Exception message: 未能加载文件或程序集“Microsoft.SqlServer.BatchParser, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91”或它的某一个依赖项。由于应用程序配置不正确,应用程序未能启动。重新安装应用程序可能会纠正这个问题。 (异常来自 HRESULT:0x800736B1) 
     
    Request information: 
        Request URL: http://localhost/xyz/Index.aspx 
        Request path: /xyz/Index.aspx 
        User host address: 127.0.0.1 
        User:  
        Is authenticated: False 
        Authentication Type:  
        Thread account name: NT AUTHORITY\NETWORK SERVICE 
     
    Thread information: 
        Thread ID: 1 
        Thread account name: NT AUTHORITY\NETWORK SERVICE 
        Is impersonating: False 
        Stack trace:    在 System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()
       在 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
       在 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
      

  10.   

    用ACCESS,怎么又SQL 错误
    应该是服务器问题
    服务类里是否有sql server2005,是否为正版
      

  11.   

    我也出现这个问题,搜索半天也没解决
    后来发现是项目Bin目录下多了一个:Microsoft.SqlServer.BatchParser.dll
    文件,删除这个文件后正常再检查,发现是项目里不知道什么时候添加了:Microsoft.VisualStudio.TeamSystem.Data.UnitTesting
    和Microsoft.VisualStudio.QualityTools.UnitTestFramework
    2个引用
    经咨询,有个同事添加新项,选择了添加数据库单元测试……解决方法:把刚才2个引用删除,就OK了