久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <small id='dQc9I'></small><noframes id='dQc9I'>

    <i id='dQc9I'><tr id='dQc9I'><dt id='dQc9I'><q id='dQc9I'><span id='dQc9I'><b id='dQc9I'><form id='dQc9I'><ins id='dQc9I'></ins><ul id='dQc9I'></ul><sub id='dQc9I'></sub></form><legend id='dQc9I'></legend><bdo id='dQc9I'><pre id='dQc9I'><center id='dQc9I'></center></pre></bdo></b><th id='dQc9I'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='dQc9I'><tfoot id='dQc9I'></tfoot><dl id='dQc9I'><fieldset id='dQc9I'></fieldset></dl></div>

        <legend id='dQc9I'><style id='dQc9I'><dir id='dQc9I'><q id='dQc9I'></q></dir></style></legend>
        • <bdo id='dQc9I'></bdo><ul id='dQc9I'></ul>
        <tfoot id='dQc9I'></tfoot>
      1. 無效的 URI:Uri 字符串太長

        Invalid URI: The Uri string is too long(無效的 URI:Uri 字符串太長)
          <tbody id='NGTVR'></tbody>

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

            <bdo id='NGTVR'></bdo><ul id='NGTVR'></ul>

                  <i id='NGTVR'><tr id='NGTVR'><dt id='NGTVR'><q id='NGTVR'><span id='NGTVR'><b id='NGTVR'><form id='NGTVR'><ins id='NGTVR'></ins><ul id='NGTVR'></ul><sub id='NGTVR'></sub></form><legend id='NGTVR'></legend><bdo id='NGTVR'><pre id='NGTVR'><center id='NGTVR'></center></pre></bdo></b><th id='NGTVR'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='NGTVR'><tfoot id='NGTVR'></tfoot><dl id='NGTVR'><fieldset id='NGTVR'></fieldset></dl></div>

                  <legend id='NGTVR'><style id='NGTVR'><dir id='NGTVR'><q id='NGTVR'></q></dir></style></legend>

                  <tfoot id='NGTVR'></tfoot>

                  本文介紹了無效的 URI:Uri 字符串太長的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我正在嘗試獲取架構并針對我的 xml 進行驗證.

                   XmlReaderSetting settings = new System.Xml.XmlReaderSettings();settings.Schemas.Add(null, "http://example.com/myschema.xsd");settings.ValidationEventHandler += new System.Xml.Schema.ValidationEventHandler(settings_ValidationEventHandler);settings.ValidationType = ValidationType.Schema;settings.IgnoreWhitespace = false;XmlReader 閱讀器 = XmlReader.Create(xml, settings);

                  我明白了

                  無效的URI:Uri字符串太長System.UriFormatException 未處理 Message=Invalid URI: Uri 字符串太長.源 = 系統堆棧跟蹤:在 System.Uri.CreateThis(字符串 uri,布爾值 dontEscape,UriKind uriKind)在 System.Uri..ctor(字符串 uriString,UriKind uriKind)在 System.Xml.XmlResolver.ResolveUri(Uri baseUri,字符串 relativeUri)在 System.Xml.XmlUrlResolver.ResolveUri(Uri baseUri,字符串 relativeUri)在 System.Xml.XmlReaderSettings.CreateReader(字符串 inputUri,XmlParserContext inputContext)在 System.Xml.XmlReader.Create(字符串 inputUri,XmlReaderSettings 設置,XmlParserContext inputContext)在 System.Xml.XmlReader.Create(字符串 inputUri,XmlReaderSettings 設置)在 Program.cs:line 42 中的 ConsoleApplication2.Program.Main(String[] args)在 System.AppDomain._nExecuteAssembly(RuntimeAssembly 程序集,字符串 [] 參數)在 System.AppDomain.ExecuteAssembly(字符串 assemblyFile,證據 assemblySecurity,String [] args)在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()在 System.Threading.ThreadHelper.ThreadStart_Context(對象狀態)在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback 回調,對象狀態,布爾 ignoreSyncCtx)在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback 回調,對象狀態)在 System.Threading.ThreadHelper.ThreadStart() 內部異常:

                  不告訴我最大長度是多少或任何東西.以前有人收到過這個嗎?

                  解決方案

                  如果參數是字符串,問題是你的 xmlreader.create 函數中的 xml 應該是 uri.

                  例如.

                  XmlReader reader = XmlReader.Create("http://ServerName/data/books.xml", settings);

                  在您的情況下,xml 文件被解釋為 url,因此它抱怨限制.

                  看看這個 msdn 文檔 XmlReader.Create 方法對于不同的重載方法..

                  我猜你應該使用 TextReader 之一.p>

                  I am trying to grab a schema and validate against my xml.

                    XmlReaderSetting settings = new System.Xml.XmlReaderSettings();
                              settings.Schemas.Add(null, "http://example.com/myschema.xsd");
                              settings.ValidationEventHandler += new System.Xml.Schema.ValidationEventHandler(settings_ValidationEventHandler); 
                              settings.ValidationType = ValidationType.Schema;
                              settings.IgnoreWhitespace = false;
                              XmlReader reader = XmlReader.Create(xml, settings);
                  

                  I get

                  Invalid URI: The Uri string is too long
                  
                  
                  System.UriFormatException was unhandled   Message=Invalid URI: The Uri string is too long.   Source=System   StackTrace:
                         at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
                         at System.Uri..ctor(String uriString, UriKind uriKind)
                         at System.Xml.XmlResolver.ResolveUri(Uri baseUri, String relativeUri)
                         at System.Xml.XmlUrlResolver.ResolveUri(Uri baseUri, String relativeUri)
                         at System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext)
                         at System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings settings, XmlParserContext inputContext)
                         at System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings settings)
                         at ConsoleApplication2.Program.Main(String[] args) in Program.cs:line 42
                         at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
                         at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
                         at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
                         at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
                         at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
                         at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
                         at System.Threading.ThreadHelper.ThreadStart()   InnerException:
                  

                  Does not tell me what the max length is or anything. Anyone ever get this before?

                  解決方案

                  the problem is that the xml in your xmlreader.create function should be a uri if the argument is a string.

                  eg.

                  XmlReader reader = XmlReader.Create("http://ServerName/data/books.xml", settings);
                  

                  In your case the xml file is being interpreted as the url and hence it is complaining about the limit.

                  look at this msdn doc XmlReader.Create Method for different overloaded methods..

                  I am guessing you should use the TextReader one.

                  這篇關于無效的 URI:Uri 字符串太長的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  What are good algorithms for vehicle license plate detection?(車牌檢測有哪些好的算法?)
                  onClick event for Image in Unity(Unity中圖像的onClick事件)
                  Running Total C#(運行總 C#)
                  Deleting a directory when clicked on a hyperlink with JAvascript.ASP.NET C#(單擊帶有 JAvascript.ASP.NET C# 的超鏈接時刪除目錄)
                  asp.net listview highlight row on click(asp.net listview 在單擊時突出顯示行)
                  Calling A Button OnClick from a function(從函數調用按鈕 OnClick)
                  <tfoot id='yytFb'></tfoot>
                    <bdo id='yytFb'></bdo><ul id='yytFb'></ul>

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

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

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

                            主站蜘蛛池模板: 中文视频在线 | 午夜国产在线 | 亚洲一区二区三区四区五区午夜 | 日韩欧美专区 | 成人在线视频观看 | 美女拍拍拍网站 | 欧美一级艳情片免费观看 | 爱爱爱av| 国产日韩在线观看一区 | 91资源在线 | 综合色在线 | 精品免费国产一区二区三区 | 成人一区av偷拍 | 青青草网站在线观看 | 亚洲激情在线观看 | 99久久夜色精品国产亚洲96 | 黄色一级大片视频 | 国产精品美女久久久久aⅴ国产馆 | 久久综合伊人 | 成人欧美 | 九九热在线免费视频 | 亚洲免费视频在线观看 | 成人国产精品久久 | 国产免费一区 | 欧美一区二区三区 | 日本午夜在线视频 | 成人精品一区二区三区中文字幕 | 欧美一区免费 | 欧美一区视频在线 | 国产精品一区二区视频 | 亚洲一区二区三区免费视频 | 天天操天天射天天 | 亚洲精品视频免费看 | 日日骚av| 羞羞视频在线网站观看 | 一区二区三区回区在观看免费视频 | 精品国产久| 国产精品久久久久久久久污网站 | 四虎精品在线 | 黄色网址在线免费观看 | 色婷婷综合久久久中字幕精品久久 |