Pergunta

Estou recebendo a seguinte exceção do System.io.path.checkinvalidpathchars () em MSCORLIB:

.

[ArgumentException: personagens ilegais no caminho.] System.io.path.checkinvalidpathchars (string. Caminho) +142
System.io.path.normalizepath (string Caminho, Boolean FullCheck, Int32 MaxPathlength) +100 System.io.path.getfullpath (string. Caminho) +187
System.xml.xmlresolver.resolveuri (URI. Baseuri, string relativeRi) +114 System.xml.xmltextreaderimpl..ctor (string. URL, xmlnametable nt) +135
System.xml.xmldocument.load (string. Nome do arquivo) +85
Sitecore.web.ui.webcontrols.webeditribbon.converttojson (string. Layout) +210
Sitecore.web.ui.webcontrols.webeditribbon.render (HTMLTextWriter. saída, item item) +1268 Sitecore.web.ui.webcontrol.render (HTMLTextWriter. Saída) +387
System.Web.UI.Control.RenderChildrenInternal (HTMLTextWriter. Escritor, crianças ICollection) +246
System.Web.UI.htmlcontrols.htmlform.RenderChildren (HTMLTextWriter. Escritor) +315
System.Web.ui.htmlcontrols.htmlcontainertrol.render (HTMLTextWriter. Escritor) +48
System.web.ui.control.rendercontrolinternal (HTMLTextWriter. Escritor, adaptador de controladadapter) +11279890 System.web.ui.control.renderchildreninternal (HTMLTextWriter Escritor, crianças ICollection) +246
System.Web.UI.Page.Render (HTMLTextWriter. Escritor) +40
System.Web.UI.Page.ProcessRequestmain (Boolean. IncludeStagesBefreasyncpoint, Boolean. IncludeStagesAfterasyncpoint) +5274

A coisa é, eu não sei qual é o valor do caminho que está causando esse erro. Ajudaria se eu pudesse depurar o método para que eu possa ver o valor do parâmetro PATH. Eu permiti entrar no código do .NET Framework no Visual Studio 2010. Eu também carreguei os símbolos relacionados do .NET Framework dos servidores do Microsoft Symbol. No entanto, parece que esses PDBs não incluem a fonte; então eu não posso entrar em checkinvalidpathhars e recuperar o valor do caminho.

É possível debug mscorlib e passo através de sua fonte?

informações relevantes:

  • .net framework 4.0.
  • Visual Studio 2010

    Qualquer entrada construtiva é muito apreciada.

    Obrigado, Frank

Foi útil?

Solução

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.

Outras dicas

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 em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top