Question

Je reçois l'exception suivante à partir de System.IO.Path.CheckInvalidPathches () dans MSCORLIB:

[argumentException: caractères illégaux dans le chemin.]
System.io.path.checkinvalidpathchars (chaîne Chemin) +142
System.io.path.normalizepath (chaîne Path, Booléan FullCheck, int32 maxpathlength) +100
System.io.path.get.getfullPath (chaîne Chemin) +187
System.xml.xmlresolver.resveuri (URI BaseUri, String Relativeuri) +114
System.xml.xmltextreaderimpl..ctor (chaîne URL, XMLNAMEABLE NT) +135
System.xml.xmldocument.load (chaîne Nom de fichier) +85
Sitecore.web.ui.webcontrols.webectrols.webectritribbon.converttojson (chaîne mise en page +210
Sitecore.web.ui.webcontrols.webControls.webectritribbon.ruver (HTMLTextWriter Sortie, élément d'objet) +1268
Sitecore.web.ui.webcontrol.render (htmltextwriter Sortie) +387
System.web.ui.control.renderchildreninernernerie (HTMLTextWriter Écrivain, enfants ICollection) +246
System.web.ui.htmlcontrols.htmlform.renderchildren (htmltextwriter écrivain) +315
System.Web.UI.HTMLCONTROLS.HTMLCONTAINECONTROL.RENDRE (HTMLTEXTWRITEUR écrivain) +48
System.web.ui.control.RenderControlinternal (HTMLTextWriter Adaptateur d'écrivain, de contrôle) +11279890 System.Web.UI.Control.RenderChildrenInternal (HTMLTextWriter Écrivain, enfants ICollection) +246
System.web.ui.page.render (htmltextwriter écrivain) +40
System.web.ui.page.processrequestmain (booléen IncluseStagesBeforeAsyncpoint, Boolean IncluseStagesAfTerAsyncpoint) +5274

La chose est, je ne fais pas quelle valeur de chemin est la cause de cette erreur. Cela aiderait si je pouvais déboguer la méthode afin que je puisse voir la valeur du paramètre de chemin. J'ai activé entrer dans le code Framework .NET dans Visual Studio 2010. J'ai également chargé les symboles associés .NET Framework à partir des serveurs de symboles Microsoft. Cependant, il semble que ces PDB n'incluent pas la source; Donc, je ne peux pas entrer dans CheckInvalidPathches et récupérer la valeur du chemin.

est-il possible de déboguer MSCORLIB et de passer à travers sa source?

Info pertinente:

  • .NET Framework 4.0.
  • Visual Studio 2010

    Toute entrée constructive est grandement appréciée.

    merci, Frank

Était-ce utile?

La solution

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.

Autres conseils

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top