سؤال

أحصل على الاستثناء التالي من system.io.path.checkinvalidpathashars () في Mscorlib:

[ArgumentException: أحرف غير قانونية في المسار.]
system.io.path.checkinvalidpathashars (سلسلة المسار) +142
system.io.path.normalizepath (سلسلة المسار، بوليين لاولتشيك، Int32 MaxPathlengn الطول) +100
system.io.path.getfullpath (سلسلة. المسار) +187
system.xml.xmlresolver.resolvei (URI. Baseuri، سلسلة Relativeuri) +114
system.xml.xmltextreaderimpl..c (سلسلة URL، XMLNametable NT) +135
system.xml.xmldocument.load (سلسلة اسم الملف) +85
sitecore.web.ui.webcontrols.weberibbon.converttojson (سلسلة. تخطيط) +210
sitecore.web.ui.webcontrols.weberibbon.render (htmltextwriter. إخراج، عنصر البند) +1268
sitecore.web.ui.webcontrol.Render (HTMLTextWriter. الإخراج) +387
system.web.ui.control.renderchildreniternal (htmltextwriter. الكاتب، الأطفال icollection) +246
system.web.ui.htmlcontrols.htmlform.renderchildren (htmltextwriter. كاتب) +315
system.web.ui.htmlcontrols.htmlcontainercontrol.Render (HTMLTextWriter. كاتب) +48
system.web.ui.control.rendercontrolInternal (htmltextwriter. كاتب، محول Controladapter) +11279890 system.web.ui.control.renderchildreniternal (htmltextwriter الكاتب، الأطفال icollection) +246
system.web.ui.page.Render (HTMLTextWriter. كاتب) +40
system.web.ui.page.processrequestmain (منطقية IncudeStiveBeForeAsyNCPoint، منطقية IncludestagesAfterAserasyNCPoint) +5274

الشيء هو، أنا لا أعرف ما هي قيمة المسار التي تسبب هذا الخطأ. سيساعد ذلك إذا تمكنت من تصحيح الطريقة حتى أتمكن من رؤية قيمة معلمة المسار. لقد قمت بتمكين Inventping إلى رمز .NET Framework في Visual Studio 2010. لقد قمت أيضا بتحميل رموز .NET Framework ذات الصلة من خوادم Microsoft Symbol. ومع ذلك، يبدو أن هذه PDBs لا تشمل المصدر؛ لذلك لا يمكنني التدخل في CheckinValidPathChars واسترجاع قيمة المسار.

هل من الممكن تصحيح mscorlib والخطوة من خلال مصدرها؟

المعلومات ذات الصلة:

  • framework 4.0.
  • Visual Studio 2010

    أي إدخال بناء موضع تقدير كبير.

    شكرا، فرانك

هل كانت مفيدة؟

المحلول

You can get the reference source for the .NET libraries.
http://referencesource.microsoft.com/

Looking at your stacktrace, the problem appears to be originating in Sitecore.Web.UI.WebControls.WebEditRibbon.ConvertToJson. That thing is trying to load an XML file.

نصائح أخرى

Using reflector would allow you to do that.
Is it possible that you enabled to break on all exceptions? Doing that would certainly account for internal exceptions showing up in the debugger. If this is the case, you can safely ignore the exception.

Well mscorlib.dll on your machine is of release build so even though you can very well debug into it, you won't be able to see values local variables/objects etc. The code in this binary is optimized. If you want perfect debugging experience of Microsoft .NET code then you will need to install debug version of .NET on your machine.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top