pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

  • <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="mqyouu6" 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. 無(wú)效的 URI:Uri 字符串太長(zhǎng)

        Invalid URI: The Uri string is too long(無(wú)效的 URI:Uri 字符串太長(zhǎng))
          <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="gyggeso" 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>

                  本文介紹了無(wú)效的 URI:Uri 字符串太長(zhǎng)的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  限時(shí)送ChatGPT賬號(hào)..

                  我正在嘗試獲取架構(gòu)并針對(duì)我的 xml 進(jìn)行驗(yàn)證.

                   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);

                  我明白了

                  無(wú)效的URI:Uri字符串太長(zhǎng)System.UriFormatException 未處理 Message=Invalid URI: Uri 字符串太長(zhǎng).源 = 系統(tǒng)堆棧跟蹤:在 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 設(shè)置,XmlParserContext inputContext)在 System.Xml.XmlReader.Create(字符串 inputUri,XmlReaderSettings 設(shè)置)在 Program.cs:line 42 中的 ConsoleApplication2.Program.Main(String[] args)在 System.AppDomain._nExecuteAssembly(RuntimeAssembly 程序集,字符串 [] 參數(shù))在 System.AppDomain.ExecuteAssembly(字符串 assemblyFile,證據(jù) assemblySecurity,String [] args)在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()在 System.Threading.ThreadHelper.ThreadStart_Context(對(duì)象狀態(tài))在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback 回調(diào),對(duì)象狀態(tài),布爾 ignoreSyncCtx)在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback 回調(diào),對(duì)象狀態(tài))在 System.Threading.ThreadHelper.ThreadStart() 內(nèi)部異常:

                  不告訴我最大長(zhǎng)度是多少或任何東西.以前有人收到過(guò)這個(gè)嗎?

                  解決方案

                  如果參數(shù)是字符串,問(wèn)題是你的 xmlreader.create 函數(shù)中的 xml 應(yīng)該是 uri.

                  例如.

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

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

                  看看這個(gè) msdn 文檔 XmlReader.Create 方法對(duì)于不同的重載方法..

                  我猜你應(yīng)該使用 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.

                  這篇關(guān)于無(wú)效的 URI:Uri 字符串太長(zhǎng)的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  What are good algorithms for vehicle license plate detection?(車(chē)牌檢測(cè)有哪些好的算法?)
                  onClick event for Image in Unity(Unity中圖像的onClick事件)
                  Running Total C#(運(yùn)行總 C#)
                  Deleting a directory when clicked on a hyperlink with JAvascript.ASP.NET C#(單擊帶有 JAvascript.ASP.NET C# 的超鏈接時(shí)刪除目錄)
                  asp.net listview highlight row on click(asp.net listview 在單擊時(shí)突出顯示行)
                  Calling A Button OnClick from a function(從函數(shù)調(diào)用按鈕 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="0guasea" id='yytFb'><tfoot id='yytFb'></tfoot><dl id='yytFb'><fieldset id='yytFb'></fieldset></dl></div>

                            主站蜘蛛池模板: 环氧乙烷灭菌器_压力蒸汽灭菌器_低温等离子过氧化氢灭菌器 _低温蒸汽甲醛灭菌器_清洗工作站_医用干燥柜_灭菌耗材-环氧乙烷灭菌器_脉动真空压力蒸汽灭菌器_低温等离子灭菌设备_河南省三强医疗器械有限责任公司 | 中空玻璃生产线,玻璃加工设备,全自动封胶线,铝条折弯机,双组份打胶机,丁基胶/卧式/立式全自动涂布机,玻璃设备-山东昌盛数控设备有限公司 | 精益专家 - 设备管理软件|HSE管理系统|设备管理系统|EHS安全管理系统 | 除甲醛公司-甲醛检测治理-杭州创绿家环保科技有限公司-室内空气净化十大品牌 | 客服外包专业服务商_客服外包中心_网萌科技 | 广东高华家具-公寓床|学生宿舍双层铁床厂家【质保十年】 | 纳米涂料品牌 防雾抗污纳米陶瓷涂料厂家_虹瓷科技 | 废水处理-废气处理-工业废水处理-工业废气处理工程-深圳丰绿环保废气处理公司 | BOE画框屏-触摸一体机-触控查询一体机-触摸屏一体机价格-厂家直销-触发电子 | PCB厂|线路板厂|深圳线路板厂|软硬结合板厂|电路板生产厂家|线路板|深圳电路板厂家|铝基板厂家|深联电路-专业生产PCB研发制造 | 防渗土工膜|污水处理防渗膜|垃圾填埋场防渗膜-泰安佳路通工程材料有限公司 | 同步带轮_同步带_同步轮_iHF合发齿轮厂家-深圳市合发齿轮机械有限公司 | 橡胶接头|可曲挠橡胶接头|橡胶软接头安装使用教程-上海松夏官方网站 | 老房子翻新装修,旧房墙面翻新,房屋防水补漏,厨房卫生间改造,室内装潢装修公司 - 一修房屋快修官网 | Maneurop/美优乐压缩机,活塞压缩机,型号规格,技术参数,尺寸图片,价格经销商 | 钢制拖链生产厂家-全封闭钢制拖链-能源钢铝拖链-工程塑料拖链-河北汉洋机械制造有限公司 | 全钢实验台,实验室工作台厂家-无锡市辰之航装饰材料有限公司 | 工业CT-无锡璟能智能仪器有限公司 | 电气控制系统集成商-PLC控制柜变频控制柜-非标自动化定制-电气控制柜成套-NIDEC CT变频器-威肯自动化控制 | 天津云仓-天津仓储物流-天津云仓一件代发-顺东云仓 | 电动球阀_不锈钢电动球阀_电动三通球阀_电动调节球阀_上海湖泉阀门有限公司 | 大型工业风扇_工业大风扇_大吊扇_厂房车间降温-合昌大风扇 | 讲师宝经纪-专业培训机构师资供应商_培训机构找讲师、培训师、讲师经纪就上讲师宝经纪 | 喷码机,激光喷码打码机,鸡蛋打码机,手持打码机,自动喷码机,一物一码防伪溯源-恒欣瑞达有限公司 | 复盛空压机配件-空气压缩机-复盛空压机(华北)总代理 | 色谱柱-淋洗液罐-巴罗克试剂槽-巴氏吸管-5ml样品瓶-SBS液氮冻存管-上海希言科学仪器有限公司 | 高精度-恒温冷水机-螺杆式冰水机-蒸发冷冷水机-北京蓝海神骏科技有限公司 | 液压油缸-液压缸厂家价格,液压站系统-山东国立液压制造有限公司 液压油缸生产厂家-山东液压站-济南捷兴液压机电设备有限公司 | 体视显微镜_荧光生物显微镜_显微镜报价-微仪光电生命科学显微镜有限公司 | Eiafans.com_环评爱好者 环评网|环评论坛|环评报告公示网|竣工环保验收公示网|环保验收报告公示网|环保自主验收公示|环评公示网|环保公示网|注册环评工程师|环境影响评价|环评师|规划环评|环评报告|环评考试网|环评论坛 - Powered by Discuz! | IIS7站长之家-站长工具-爱网站请使用IIS7站长综合查询工具,中国站长【WWW.IIS7.COM】 | 谷梁科技 | C形臂_动态平板DR_动态平板胃肠机生产厂家制造商-普爱医疗 | 不锈钢反应釜,不锈钢反应釜厂家-价格-威海鑫泰化工机械有限公司 不干胶标签-不干胶贴纸-不干胶标签定制-不干胶标签印刷厂-弗雷曼纸业(苏州)有限公司 | 济南品牌包装设计公司_济南VI标志设计公司_山东锐尚文化传播 | 临沂招聘网_人才市场_招聘信息_求职招聘找工作请认准【马头商标】 | 房车价格_依维柯/大通/东风御风/福特全顺/江铃图片_云梯搬家车厂家-程力专用汽车股份有限公司 | 空调风机,低噪声离心式通风机,不锈钢防爆风机,前倾皮带传动风机,后倾空调风机-山东捷风风机有限公司 | 定硫仪,量热仪,工业分析仪,马弗炉,煤炭化验设备厂家,煤质化验仪器,焦炭化验设备鹤壁大德煤质工业分析仪,氟氯测定仪 | 西装定制/做厂家/公司_西装订做/制价格/费用-北京圣达信西装 | 论文查重_免费论文查重_知网学术不端论文查重检测系统入口_论文查重软件 |