“/qminoa”应用程序中的服务器错误。
--------------------------------------------------------------------------------配置错误 
说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。 分析器错误信息: 在应用程序级别以外使用注册为 allowDefinition='MachineToApplication' 的节是错误的。导致该错误的原因可能是在 IIS 中没有将虚拟目录作为应用程序进行配置。源错误: 
行 6:      </appSettings>
行 7:    <system.web>   
行 8:   <authentication mode="Forms">              
行 9:       <forms name="qminoa" loginUrl="Login.aspx"> 
行 10:  </forms>
 源文件: D:\asp.net办公OA\源代码(解决方案)\qminoa\Webs\web.config    行: 8 
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573

解决方案 »

  1.   

    我已经设置虚拟目录为qminoa:
    Web.Config文件内容如下:
    <?xml version="1.0" encoding="gb2312"?>
    <configuration>
        <appSettings>
    <!--此处设置数据库连接字符串-->
    <add key="ConnectionString" value="server=localhost;database=hotop100;User ID=sa;password="/>
        </appSettings>
      <system.web>   
    <authentication mode="Forms">              
        <forms name="qminoa" loginUrl="Login.aspx"> 
    </forms>
    </authentication>
      <!--
    <customErrors defaultRedirect="errorpage.htm" mode="On">
    <error statusCode="404" redirect="error404.aspx"/>   
    </customErrors>
    -->
        <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=" cookieless="false" timeout="120"/>    <globalization requestEncoding="gb2312" responseEncoding="gb2312"/>
         
     </system.web>
    </configuration>
      

  2.   

    IIS 中没有将虚拟目录作为应用程序进行配置
    建个虚拟目录了
      

  3.   

    qminoa 要指向 D:\asp.net办公OA\源代码(解决方案)\qminoa\Webs
      

  4.   

    “/qminoa”应用程序中的服务器错误。
    --------------------------------------------------------------------------------找不到文件或程序集名称“Microsoft.Web.UI.WebControls.resources”,或找不到它的一个依赖项。 
    说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.IO.FileNotFoundException: 找不到文件或程序集名称“Microsoft.Web.UI.WebControls.resources”,或找不到它的一个依赖项。源错误: 执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。  程序集加载跟踪: 下列信息有助于确定程序集“Microsoft.Web.UI.WebControls.resources”无法加载的原因。
    === Pre-bind state information ===
    LOG: DisplayName = Microsoft.Web.UI.WebControls.resources, Version=1.0.2.116, Culture=zh-CHS, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///D:/asp.net办公OA/源代码(解决方案)/qminoa/Webs
    LOG: Initial PrivatePath = bin
    Calling assembly : (Unknown).
    ===LOG: Attempting download of new URL file:///D:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/qminoa/665fb9f6/4d76db62/zh-CHS/Microsoft.Web.UI.WebControls.resources.DLL.
    LOG: Attempting download of new URL file:///D:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/qminoa/665fb9f6/4d76db62/zh-CHS/Microsoft.Web.UI.WebControls.resources/Microsoft.Web.UI.WebControls.resources.DLL.
    LOG: Attempting download of new URL file:///D:/asp.net办公OA/源代码(解决方案)/qminoa/Webs/bin/zh-CHS/Microsoft.Web.UI.WebControls.resources.DLL.
    LOG: Attempting download of new URL file:///D:/asp.net办公OA/源代码(解决方案)/qminoa/Webs/bin/zh-CHS/Microsoft.Web.UI.WebControls.resources/Microsoft.Web.UI.WebControls.resources.DLL.
    LOG: Attempting download of new URL file:///D:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/qminoa/665fb9f6/4d76db62/zh-CHS/Microsoft.Web.UI.WebControls.resources.EXE.
    LOG: Attempting download of new URL file:///D:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/qminoa/665fb9f6/4d76db62/zh-CHS/Microsoft.Web.UI.WebControls.resources/Microsoft.Web.UI.WebControls.resources.EXE.
    LOG: Attempting download of new URL file:///D:/asp.net办公OA/源代码(解决方案)/qminoa/Webs/bin/zh-CHS/Microsoft.Web.UI.WebControls.resources.EXE.
    LOG: Attempting download of new URL file:///D:/asp.net办公OA/源代码(解决方案)/qminoa/Webs/bin/zh-CHS/Microsoft.Web.UI.WebControls.resources/Microsoft.Web.UI.WebControls.resources.EXE. 堆栈跟踪: 
    [FileNotFoundException: 找不到文件或程序集名称“Microsoft.Web.UI.WebControls.resources”,或找不到它的一个依赖项。]
       System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) +0
       System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) +307
       System.Reflection.Assembly.Load(AssemblyName assemblyRef) +22
       System.Web.UI.Util.GetReferencedAssembliesHashtable(Assembly a) +70
       System.Web.Compilation.BaseCompiler.GetCompiledType() +381
       System.Web.UI.ApplicationFileParser.CompileIntoType() +52
       System.Web.UI.TemplateParser.GetParserCacheItemThroughCompilation() +126[HttpException (0x80004005): 找不到文件或程序集名称“Microsoft.Web.UI.WebControls.resources”,或找不到它的一个依赖项。]
       System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotFound) +692
       System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() +125
       System.Web.UI.TemplateParser.GetParserCacheItem() +88
       System.Web.UI.ApplicationFileParser.GetCompiledApplicationType(String inputFile, HttpContext context, ApplicationFileParser& parser) +168
       System.Web.HttpApplicationFactory.CompileApplication(HttpContext context) +43
       System.Web.HttpApplicationFactory.Init(HttpContext context) +485
       System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +170
       System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +414 
    --------------------------------------------------------------------------------
      

  5.   

    我在bin目录下有microsoft.web.ui.webcontrols.resources.dll文件
      

  6.   

    <authentication mode="Forms">              
        <forms name="qminoa" loginUrl="Login.aspx"> 
    </forms>
    </authentication>
    什么意思?怎么使用?
      

  7.   

    虚拟目录改到webs就可以了,但是出现新的问题:“/qminoa”应用程序中的服务器错误。
    --------------------------------------------------------------------------------找不到文件或程序集名称“Microsoft.Web.UI.WebControls.resources”,或找不到它的一个依赖项。 
    说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.IO.FileNotFoundException: 找不到文件或程序集名称“Microsoft.Web.UI.WebControls.resources”,或找不到它的一个依赖项。源错误: 执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。  程序集加载跟踪: 下列信息有助于确定程序集“Microsoft.Web.UI.WebControls.resources”无法加载的原因。
    === Pre-bind state information ===
    LOG: DisplayName = Microsoft.Web.UI.WebControls.resources, Version=1.0.2.116, Culture=zh-CHS, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///D:/asp.net办公OA/源代码(解决方案)/qminoa/Webs
    LOG: Initial PrivatePath = bin
    Calling assembly : (Unknown).
    ===LOG: Attempting download of new URL file:///D:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/qminoa/665fb9f6/4d76db62/zh-CHS/Microsoft.Web.UI.WebControls.resources.DLL.
    LOG: Attempting download of new URL file:///D:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/qminoa/665fb9f6/4d76db62/zh-CHS/Microsoft.Web.UI.WebControls.resources/Microsoft.Web.UI.WebControls.resources.DLL.
    LOG: Attempting download of new URL file:///D:/asp.net办公OA/源代码(解决方案)/qminoa/Webs/bin/zh-CHS/Microsoft.Web.UI.WebControls.resources.DLL.
    LOG: Attempting download of new URL file:///D:/asp.net办公OA/源代码(解决方案)/qminoa/Webs/bin/zh-CHS/Microsoft.Web.UI.WebControls.resources/Microsoft.Web.UI.WebControls.resources.DLL.
    LOG: Attempting download of new URL file:///D:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/qminoa/665fb9f6/4d76db62/zh-CHS/Microsoft.Web.UI.WebControls.resources.EXE.
    LOG: Attempting download of new URL file:///D:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/qminoa/665fb9f6/4d76db62/zh-CHS/Microsoft.Web.UI.WebControls.resources/Microsoft.Web.UI.WebControls.resources.EXE.
    LOG: Attempting download of new URL file:///D:/asp.net办公OA/源代码(解决方案)/qminoa/Webs/bin/zh-CHS/Microsoft.Web.UI.WebControls.resources.EXE.
    LOG: Attempting download of new URL file:///D:/asp.net办公OA/源代码(解决方案)/qminoa/Webs/bin/zh-CHS/Microsoft.Web.UI.WebControls.resources/Microsoft.Web.UI.WebControls.resources.EXE. 堆栈跟踪: 
    [FileNotFoundException: 找不到文件或程序集名称“Microsoft.Web.UI.WebControls.resources”,或找不到它的一个依赖项。]
       System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) +0
       System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) +307
       System.Reflection.Assembly.Load(AssemblyName assemblyRef) +22
       System.Web.UI.Util.GetReferencedAssembliesHashtable(Assembly a) +70
       System.Web.Compilation.BaseCompiler.GetCompiledType() +381
       System.Web.UI.ApplicationFileParser.CompileIntoType() +52
       System.Web.UI.TemplateParser.GetParserCacheItemThroughCompilation() +126[HttpException (0x80004005): 找不到文件或程序集名称“Microsoft.Web.UI.WebControls.resources”,或找不到它的一个依赖项。]
       System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotFound) +692
       System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() +125
       System.Web.UI.TemplateParser.GetParserCacheItem() +88
       System.Web.UI.ApplicationFileParser.GetCompiledApplicationType(String inputFile, HttpContext context, ApplicationFileParser& parser) +168
       System.Web.HttpApplicationFactory.CompileApplication(HttpContext context) +43
       System.Web.HttpApplicationFactory.Init(HttpContext context) +485
       System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +170
       System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +414 
    --------------------------------------------------------------------------------
      

  8.   

    我用了IE WEB Controls 是不是这个配置不正确 
    =====================================
    Internet Explorer Web Controls README
    =====================================
    Last updated: 1/14/2002Thank you for downloading the IE Web Controls source code release!  The Src 
    folder contains the source code for the IE MultiPage, ToolBar, TreeView, and 
    TabStrip controls, along with related base classes and design-time support.To build the IE Web Controls:1.  Make sure you have installed the .NET Framework SDK v1.0 or v1.1
    2.  Run Build.bat, which will create a build folder in this directory.  
        The build folder contains Microsoft.Web.UI.WebControls.dll and a 
        Runtime directory of supporting files.To run the IE Web Controls:1.  Copy the contents of the Runtime directory to the webctrl_client\1_0
        directory under your top-level site directory.  For example, if your 
        site root is c:\Inetpub\wwwroot, type this at the command prompt:    xcopy /s /i .\build\Runtime c:\Inetpub\wwwroot\webctrl_client\1_0 /y    This will create the following directory structure under the site:      /webctrl_client/1_0
            MultiPage.htc
            TabStrip.htc
            toolbar.htc
            treeview.htc
            webservice.htc
            webserviced.htc
            [images]
            [treeimages]2.  Create a new web application in IIS and copy the contents of the
        samples directory to this application directory.  For example:    xcopy /s /i .\samples c:\Inetpub\wwwroot\sampleapp /y3.  Create a /bin subdirectory for the application and copy the file
        Microsoft.Web.UI.WebControls.dll to this directory.    The contents of the application will be as follows:      /sampleapp
            multipage.aspx
            state_city.xml
            tabstrip.aspx
            toolbar.aspx
            treeview.aspx
            treeview_bound.aspx
            /bin
              Microsoft.Web.UI.WebControls.dll4.  Request the sample pages from your Internet Explorer web browser, for
        example: http://localhost/sampleapp/multipage.aspx
        
    For additional documentation and samples visit:
    http://msdn.microsoft.com/library/default.asp?url=/workshop/webcontrols/webcontrols_entry.asp
      

  9.   

    web.config要在虚拟目录或者站点的根目录下