質問

MSCORLIBのSystem.IO.Path.CheckInvalidPathChars()から次の例外を取得しています。

[ArgumentException:違法文字 パス内の
System.IO.Path.CheckInvalidPathChars(文字列 パス)+ 142
System.IO.Path.NormalizePath(文字列) Path、Boolean FullCheck、Int32 MaxPathLength)+ 100
System.IO.Path.GetFullPath(文字列 パス)+ 187
system.xml.xmlResolver.Resolveuri(Uri. Baseuri、String Rearesture)+ 114
system.xml.xmltextreaderImpl..ctor(文字列 URL、XMLNAMETABLE NT)+ 135
system.xml.xmldocument.load(文字列 filename)+ 85
sitecore.web.ui.webcontrols.Webeditribbon.convertTojson(文字列 レイアウト)+ 210
sitecore.web.ui.webcontrols.webeditribbon.render(HTMLTextWriter 出力、アイテム項目)+ 1268
sitecore.web.ui.webcontrol.render(HTMLTextWriter 出力)+ 387
System.Web.UI.Control.RenderChildreninternal(HTMLTextWriter 作家、Icollection Children)+ 246
system.web.ui.htmontrols.htmlForm.RenderChildren(HTMLTextWriter. 作家)+315
system.web.ui.htmontrols.htmlContainerControl.render(HTMLTextWriter. 作家)+ 48
System.Web.UI.Control.RenderControlInternal(HTMLTextWriter 作家、コントロールアダプタアダプタ) + 11279890 System.Web.UI.Control.RenderChildreninternal(HTMLTextWriter 作家、Icollection Children)+ 246
System.Web.UI.Page.Render(HTMLTextWriter 作家)+ 40
System.Web.UI.Page.ProcessRequestMain(ブール値 IncludeStageBeeSyncPoint、Boolean. + 5274 を含みます

これは、パス値がこのエラーを引き起こすものではありません。メソッドをデバッグできるようにすると、パスパラメータの値が表示される可能性がある場合は役に立ちます。 Visual Studio 2010の.NET Frameworkコードへのステップを有効にしました.Microsoftシンボルサーバーから関連する.NETフレームワークシンボルもロードしました。ただし、これらの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