我在mscorlib中获取以下exection.io.pach.checkinvalidpathchars():

[ArgumentException:非法字符 在路径。
system.io.path.CheckinValidPathchars(String. 路径)+142
system.io.path.normalizepath(字符串 Path,Boolean FullCheck,Int32 maxpathlength)+100
system.io.path.getfullpath(String. 路径)+187
system.xml.xmlresolver.resolveuri(Uri. BaseUri,String Contgureuri)+114
system.xml.xmltextreaderimpl..ctor(字符串 URL,xmlnametable nt)+135
system.xml.xmldocument.load(String. filename)+85
Sitecore.Web.UI.WebControls.WebEditribbon.ConvertTojson(String. 布局)+210
sitecore.web.ui.webontrols.webeditrbbon.render(htmltextwriter. 输出,项目项目)+1268
Sitecore.Web.UI.WebControl.Render(HTMLTextWriter. 输出)+387
system.web.ui.control.RenderChildreninternal(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.RenderChildren因素(HTMLTextWriter 作家,icollection儿童)+246
system.web.ui.page.render(htmltextwriter. 作家)+40
system.web.ui.page.processrequestmain(布尔值 IncludeStagesBeforeAsyncPoint,Boolean. IncludeStagesAfterasyncPoint)+5274

是的,我不认为路径值是导致此错误的。如果我可以调试方法,它会有所帮助,所以我可以看到路径参数的值。我启用了Visual Studio 2010中的.NET Framework代码。我还从Microsoft符号服务器加载了相关的.NET Framework符号。但是,似乎这些PDB不包括来源;因此,我无法进入CheckInvalidPathchars并检索路径值。

可以调试Mscorlib和步骤源吗?

相关信息:

  • .NET 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