• <bdo id='O7kNH'></bdo><ul id='O7kNH'></ul>

    1. <tfoot id='O7kNH'></tfoot>

        <small id='O7kNH'></small><noframes id='O7kNH'>

      1. <legend id='O7kNH'><style id='O7kNH'><dir id='O7kNH'><q id='O7kNH'></q></dir></style></legend>

      2. <i id='O7kNH'><tr id='O7kNH'><dt id='O7kNH'><q id='O7kNH'><span id='O7kNH'><b id='O7kNH'><form id='O7kNH'><ins id='O7kNH'></ins><ul id='O7kNH'></ul><sub id='O7kNH'></sub></form><legend id='O7kNH'></legend><bdo id='O7kNH'><pre id='O7kNH'><center id='O7kNH'></center></pre></bdo></b><th id='O7kNH'></th></span></q></dt></tr></i><div id='O7kNH'><tfoot id='O7kNH'></tfoot><dl id='O7kNH'><fieldset id='O7kNH'></fieldset></dl></div>

        如何解决“找不到元素/属性&lt;xxx&gt;的模式

        时间:2023-06-04
        <i id='zqiFo'><tr id='zqiFo'><dt id='zqiFo'><q id='zqiFo'><span id='zqiFo'><b id='zqiFo'><form id='zqiFo'><ins id='zqiFo'></ins><ul id='zqiFo'></ul><sub id='zqiFo'></sub></form><legend id='zqiFo'></legend><bdo id='zqiFo'><pre id='zqiFo'><center id='zqiFo'></center></pre></bdo></b><th id='zqiFo'></th></span></q></dt></tr></i><div id='zqiFo'><tfoot id='zqiFo'></tfoot><dl id='zqiFo'><fieldset id='zqiFo'></fieldset></dl></div>

              1. <legend id='zqiFo'><style id='zqiFo'><dir id='zqiFo'><q id='zqiFo'></q></dir></style></legend>
              2. <small id='zqiFo'></small><noframes id='zqiFo'>

                  <tbody id='zqiFo'></tbody>
              3. <tfoot id='zqiFo'></tfoot>
                  <bdo id='zqiFo'></bdo><ul id='zqiFo'></ul>
                  本文介绍了如何解决“找不到元素/属性&lt;xxx&gt;的模式信息"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  在 Visual Studio 中,我有一个使用 MS Enterprise Library 4.0 应用程序块的 asp.net 3.5 项目.

                  In visual studio, I have an asp.net 3.5 project that is using MS Enterprise Library 4.0 application blocks.

                  当我打开我的 web 配置文件时,我的错误列表会填满 99 条消息,其中包含诸如

                  When I have my web config file open, my Error list fills up with 99 messages with things like

                  Could not find schema information for the element 'dataConfiguration'.  
                  Could not find schema information for the attribute 'defaultDatabase'.  
                  Could not find schema information for the element 'loggingConfiguration'.   
                  Could not find schema information for the attribute 'tracingEnabled'.   
                  Could not find schema information for the attribute 'defaultCategory'.  
                  

                  如果我关闭 Web.config 文件,它们就会消失(但一旦我需要再次打开文件,它们就会回来).

                  If I close the Web.config file they go away (but they come back as soon as I need to open the file again).

                  经过一番查看,我发现这是因为缺少 Visual Studio 需要的 XSD 或架构文件,以便正确理解"web.config 文件中的架构并为其提供智能感知.

                  After doing some looking, I found that this is becauase there is an XSD or schema file missing that Visual Studio needs in order to properly 'understand' the schema that is in the web.config file and provide intellisense for it.

                  有谁知道如何为 VS 提供适当的架构信息,或关闭这些消息?

                  Does anyone know how to either supply VS with the appropriate schema information, or to turn off these messages?

                  @Franci - 感谢您提供信息,我已经尝试过该工具以及 MMC 管理单元(它们往往会破坏 Web.config 中的格式),但它们仍然无法解决我收到的恼人警告.感谢您的尝试.

                  @Franci - Thanks for the info, I have tried that tool as well as the MMC snap in (they tend to blow up the formatting in the Web.config) but they still do not resolve the irritating warnings I receive. Thanks for trying.

                  推荐答案

                  我使用 EntLib 配置工具配置了 app.config 并设置了我的 LoggingConfiguration 块.然后我将它复制到 DotNetConfig.xsd 中.当然,它并没有涵盖所有属性,只涵盖我添加的属性,但它不再显示那些烦人的信息消息.

                  I configured the app.config with the tool for EntLib configuration and set up my LoggingConfiguration block. Then I copied this into the DotNetConfig.xsd. Of course, it does not cover all attributes, only the ones I added but it does not display those annoying info messages anymore.

                  <xs:element name="loggingConfiguration">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="listeners">
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element maxOccurs="unbounded" name="add">
                                <xs:complexType>
                                  <xs:attribute name="fileName" type="xs:string" use="required" />
                                  <xs:attribute name="footer" type="xs:string" use="required" />
                                  <xs:attribute name="formatter" type="xs:string" use="required" />
                                  <xs:attribute name="header" type="xs:string" use="required" />
                                  <xs:attribute name="rollFileExistsBehavior" type="xs:string" use="required" />
                                  <xs:attribute name="rollInterval" type="xs:string" use="required" />
                                  <xs:attribute name="rollSizeKB" type="xs:unsignedByte" use="required" />
                                  <xs:attribute name="timeStampPattern" type="xs:string" use="required" />
                                  <xs:attribute name="listenerDataType" type="xs:string" use="required" />
                                  <xs:attribute name="traceOutputOptions" type="xs:string" use="required" />
                                  <xs:attribute name="filter" type="xs:string" use="required" />
                                  <xs:attribute name="type" type="xs:string" use="required" />
                                  <xs:attribute name="name" type="xs:string" use="required" />
                                </xs:complexType>
                              </xs:element>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                        <xs:element name="formatters">
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="add">
                                <xs:complexType>
                                  <xs:attribute name="template" type="xs:string" use="required" />
                                  <xs:attribute name="type" type="xs:string" use="required" />
                                  <xs:attribute name="name" type="xs:string" use="required" />
                                </xs:complexType>
                              </xs:element>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                        <xs:element name="logFilters">
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="add">
                                <xs:complexType>
                                  <xs:attribute name="enabled" type="xs:boolean" use="required" />
                                  <xs:attribute name="type" type="xs:string" use="required" />
                                  <xs:attribute name="name" type="xs:string" use="required" />
                                </xs:complexType>
                              </xs:element>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                        <xs:element name="categorySources">
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element maxOccurs="unbounded" name="add">
                                <xs:complexType>
                                  <xs:sequence>
                                    <xs:element name="listeners">
                                      <xs:complexType>
                                        <xs:sequence>
                                          <xs:element name="add">
                                            <xs:complexType>
                                              <xs:attribute name="name" type="xs:string" use="required" />
                                            </xs:complexType>
                                          </xs:element>
                                        </xs:sequence>
                                      </xs:complexType>
                                    </xs:element>
                                  </xs:sequence>
                                  <xs:attribute name="switchValue" type="xs:string" use="required" />
                                  <xs:attribute name="name" type="xs:string" use="required" />
                                </xs:complexType>
                              </xs:element>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                        <xs:element name="specialSources">
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="allEvents">
                                <xs:complexType>
                                  <xs:attribute name="switchValue" type="xs:string" use="required" />
                                  <xs:attribute name="name" type="xs:string" use="required" />
                                </xs:complexType>
                              </xs:element>
                              <xs:element name="notProcessed">
                                <xs:complexType>
                                  <xs:attribute name="switchValue" type="xs:string" use="required" />
                                  <xs:attribute name="name" type="xs:string" use="required" />
                                </xs:complexType>
                              </xs:element>
                              <xs:element name="errors">
                                <xs:complexType>
                                  <xs:sequence>
                                    <xs:element name="listeners">
                                      <xs:complexType>
                                        <xs:sequence>
                                          <xs:element name="add">
                                            <xs:complexType>
                                              <xs:attribute name="name" type="xs:string" use="required" />
                                            </xs:complexType>
                                          </xs:element>
                                        </xs:sequence>
                                      </xs:complexType>
                                    </xs:element>
                                  </xs:sequence>
                                  <xs:attribute name="switchValue" type="xs:string" use="required" />
                                  <xs:attribute name="name" type="xs:string" use="required" />
                                </xs:complexType>
                              </xs:element>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                      </xs:sequence>
                      <xs:attribute name="name" type="xs:string" use="required" />
                      <xs:attribute name="tracingEnabled" type="xs:boolean" use="required" />
                      <xs:attribute name="defaultCategory" type="xs:string" use="required" />
                      <xs:attribute name="logWarningsWhenNoCategoriesMatch" type="xs:boolean" use="required" />
                    </xs:complexType>
                  </xs:element>
                  

                  这篇关于如何解决“找不到元素/属性&lt;xxx&gt;的模式信息"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:多次导入同一个 XSD 会出错吗? 下一篇:如何将 XML 读入与其 xsd 匹配的类/类

                  相关文章

                  最新文章

                  1. <i id='v872D'><tr id='v872D'><dt id='v872D'><q id='v872D'><span id='v872D'><b id='v872D'><form id='v872D'><ins id='v872D'></ins><ul id='v872D'></ul><sub id='v872D'></sub></form><legend id='v872D'></legend><bdo id='v872D'><pre id='v872D'><center id='v872D'></center></pre></bdo></b><th id='v872D'></th></span></q></dt></tr></i><div id='v872D'><tfoot id='v872D'></tfoot><dl id='v872D'><fieldset id='v872D'></fieldset></dl></div>

                    <small id='v872D'></small><noframes id='v872D'>

                  2. <tfoot id='v872D'></tfoot>
                      <bdo id='v872D'></bdo><ul id='v872D'></ul>

                    1. <legend id='v872D'><style id='v872D'><dir id='v872D'><q id='v872D'></q></dir></style></legend>