Pregunta

Estoy obteniendo la siguiente excepción de System.io.Path.CheckinValidPathchars () en MScorlib:

[argumentoException: personajes ilegales en camino.]
System.io.Path.CheckinValidPathChars (cadena Camino) +142
System.io.path.normalizepath (cadena Camino, Boolean Fullcheck, Int32 maxpathlength) +100
System.io.path.getfullpath (cadena Camino) +187
System.xml.xmlresolver.resolveuri (URI Baseuri, cadena relativeuri) +114
System.xml.xmltextreaderimpl..ctor (cadena URL, XMlNapetable NT) +135
System.xml.xmldocument.load (cadena nombre de archivo) +85
Sitecore.Web.ui.WebControls.weBeditribBon.ConvertToJson (cadena diseño) +210
Sitecore.web.ui.webcontrols.webeditribble.render (HTMLTEXTWRITER Salida, artículo de artículo) +1268
Sitecore.Web.ui.WebControl.Render (HTMLTEXTWRITER Salida) +387
System.Web.UI.Control.RenderChildenInternal (HTMLTEXTWRITER Escritor, Icollection Children) +246
System.web.ui.htmlcontrols.htmlform.renderchildren (HTMLTEXTWRITER Escritor) +315
System.web.ui.htmlcontrols.htmlcontainencontrol.render (HtmlTextWriter Escritor) +48
System.Web.ui.control.RenderControlInternal (HTMLTEXTWRITER escritor, adaptador de control de control) +11279890 System.Web.ui.control.RenderChildrenInternal (HTMLTEXTWRITER Escritor, Icollection Children) +246
System.Web.ui.page.render (HTMLTEXTWRITER escritor) +40
System.Web.ui.page.ProcessRequestMain (Boolean IncludetAstagesBeforeasyncPoint, Boolean incluyendoSafterasyncPoint) +5274

Lo que es, no lo que es el valor de la ruta que está causando este error. Ayudaría si podía depurar el método para poder ver el valor del parámetro de ruta. Habilité un paso en el código Framework .NET en Visual Studio 2010. También he cargado los símbolos de Framework .NET relacionados de los servidores de símbolos de Microsoft. Sin embargo, parece que estos PDB no incluyen la fuente; Así que no puedo entrar en el checkinvalidpathchar y recuperar el valor de la ruta.

¿Es posible depurar mscorlib y pasar a través de su fuente?

Información relevante:

  • .NET Framework 4.0.
  • Visual Studio 2010

    Cualquier entrada constructiva es muy apreciada.

    gracias, Frank

¿Fue útil?

Solución

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.

Otros consejos

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top