Share via


mscorlib.pdb not loaded

Question

Tuesday, November 29, 2016 7:17 PM

I'm trying to debug a Silverlight app and am getting the following error in the output window:

System.Windows.Data Error: ConvertBack cannot convert value '' (type 'System.String'). BindingExpression: Path='Wl_Section' DataItem='d54050d6-2ffb-4e37-9006-d1d3b7f2d1e8; False; True; ; ; ; ; ; HP; ; ; ; ; ; ; SESE; 33; 156; ; 94; ; ; ; ; ; GTR;  ' (HashCode=51821710); target element is 'Infragistics.Controls.Grids.Cell+CellValueObject' (Name=''); target property is 'Value' (type 'System.Object').. System.FormatException: Input string was not in a correct format.

but the code execution doesn't break where I can find the problem.  Instead I get the following screen that pops up

I often get this screen when I want to debug something.  I've done lots of searches on this with no success.  I checked the Microsoft Symbol Server but that didn't help either.  Any idea how I can find where my code is passing in a bad value?

Thanks.

All replies (3)

Wednesday, November 30, 2016 9:48 AM

Hi moondaddy,

Could you find the pdb file in your local machine?

I just met this issue with was related to the Internal .NET Framework Assembly.

Reference:

https://social.msdn.microsoft.com/Forums/en-US/0af48bab-5258-44da-93e8-35803d80a0aa/mscorlibpdb-not-availablefound?forum=refsourceserver

1) Under Tools-> Options->Debugging->General Disable Just My Code and Enable Source Server Support.

2) Under Tools->Options->Debugging->Symbols, add http://msdl.microsoft.com/download/symbols add http://referencesource.microsoft.com/symbols, check it again.

Best Regards,

Jack

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


Wednesday, November 30, 2016 8:24 PM

Thanks Jack. I followed steps 1 and 2 and still get the same problem. Please see the screenshot below.

I'm still not able get the code to break where this conversion exception is occurring, I cant see where in my code that an improper assignment is being make or any other helpful information.  Its puzzling why the windows.pdb cant load.


Thursday, December 1, 2016 7:30 AM

Hi moondaddy,

If you still enabled the Microsoft symbols Server, how about the result?

I found the error messages like:

>>System.FormatException: Input string was not in a correct format.

No project sample is hard for us to find the real reason, but this exception will be thrown when you convert a null value to a meaningful value or others, so it seems that it is related to the code.

Like this sample here:

https://social.msdn.microsoft.com/Forums/en-US/28615f4c-4908-4b14-ab3e-a2f03b805099/input-string-was-not-in-a-correct-format?forum=csharpgeneral

>>System.Windows.pdb not loaded.

It seems that it steps into the Microsoft code, if possible, you could disable the options under TOOLS->Options->Debugging:

Before you really resolve the source code debugging issue, I think you would check the Exception messages in your code line like my above sample.

Thanks,

Jack

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.