Domanda

Sto ottenendo la seguente eccezione da System.IO.Path.CheckInVaidPathars () in MSCORLIB:

.

[ArgumentException: caratteri illegali nel percorso.]
System.io.path.checkinvalidatharchars (String. Percorso) +142
System.io.path.NormalizePath (String. Percorso, Boolean FULLCHECK, INT32 MaxPathLength) +100
System.io.path.getfullpath (String. Percorso) +187
System.xml.xmlresolver.resolviuri (URI. Baseuri, stringa relativeri) +114
System.xml.xmltextreaderimpl..ctor (stringa. URL, XMLNAMNETABILE NT) +135
System.xml.xmldrocument.load (String. Nome file) +85
Sitecore.web.ui.webcontrols.webeditribbon.converttojson (String. Layout) +210
Sitecore.web.ui.webcontrols.webdeditribbon.Render (htmltextwriter. Uscita, Articolo) +1268
Sitecore.web.ui.webcontrol.render (htmltextwriter. Uscita) +387
System.web.ui.control.renderchildreninternal (htmltextwriter. Scrittore, Icollection Children) +246
System.web.ui.htmlcontrols.htmlform.renderchildren (htmltextwriter. Scrittore) +315
System.web.ui.htmlcontrols.htmlcontaincontrocontrol.render (htmltextwriter. Scrittore) +48
System.web.ui.control.rendercontrolinternal (htmltextwriter. Scrittore, adattatore controlladapter) +11279890 SYSTEM.Web.ui.control.RenderChildreninternal (htmltextwriter Scrittore, Icollection Children) +246
System.web.ui.page.render (htmltextwriter. Scrittore) +40
System.web.ui.page.processrequestmain (boolean. includstagesbeforeaasyncpoint, boolean. IncludestagesAfterasyncpoint) +5274

La cosa è, non lo faccio ciò che il valore del percorso è causando questo errore. Aiuterà se potessi eseguire il debug del metodo in modo da poter vedere il valore del parametro del percorso. Ho abilitato a entrare nel codice .NET Framework in Visual Studio 2010. Ho anche caricato i relativi simboli .NET Framework dai server Microsoft Symbol. Tuttavia, sembra che questi PDB non includano la fonte; Quindi non posso entrare nel checkinvalidatharchar e recuperare il valore del percorso.

È possibile eseguire il debug dei mscorlib e passare attraverso la sua fonte?

Informazioni rilevanti:

    .
  • .net framework 4.0.
  • Visual Studio 2010

    Qualsiasi ingresso costruttivo è molto apprezzato.

    Grazie, Frank

È stato utile?

Soluzione

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.

Altri suggerimenti

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top