久久久久久久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>

                            主站蜘蛛池模板: 久久国产精品一区二区三区 | 久久不卡| 91麻豆精品一区二区三区 | 欧美在线| 久久精品播放 | 国产一区影院 | 99在线免费观看视频 | 在线观看黄色电影 | 国产 亚洲 网红 主播 | 欧美高清一级片 | 毛片综合 | 国产精品污www一区二区三区 | 日韩一级 | 国产精品乱码一区二区三区 | 99tv| 中文字幕国产日韩 | 欧美视频免费在线 | 看片wwwwwwwwwww | 精品一区二区三区在线观看 | 91视视频在线观看入口直接观看 | 蜜桃av人人夜夜澡人人爽 | 国产精品欧美一区喷水 | 日韩精品 电影一区 亚洲 | 欧美中文字幕一区二区 | 日韩欧美一级精品久久 | 国产精品亚洲成在人线 | 在线观看av网站 | 欧美综合一区 | 欧美1区2区 | 天天草天天爱 | 精品一级 | 色99视频 | 欧美激情综合五月色丁香小说 | 中文字幕日韩一区 | 亚洲精品久久久久久久久久久久久 | 午夜精品久久 | av天天操| 欧美亚洲成人网 | 亚洲美女网站 | 国产精品久久久久久影院8一贰佰 | 亚洲视频欧美视频 |