Answered by:
First Chance Exception - InitializeComponent()

Question
-
In a function InitializePage (Controls.Page) I call InitializeComponent(). When executing that function I get 4x the following exception:
A first chance exception of type 'System.FormatException' occurred in mscorlib.dll
I cannot step into the xaml because "Source file ... does not belong to the project being debugged". I did recompile everything but there is not change. I tried to remove tags on some buttons and labels to see if the error disapears but had no success. Any ideas how I can step into the code or what the cause of this might be?
Wednesday, December 29, 2010 5:39 AM
Answers
-
Hi hfaun,
Welcome to our forum.
I think you could try to TroulbeShooting Exceptions as follow:
http://msdn.microsoft.com/en-us/library/34see4yz.aspx
And if your issue persists, could you kindly share a simple sample with me to reproduce your issue, I think it is hard to find the root cause of your issue without any code.
Best regards,
Sheldon _Xiao [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Marked as answer by Sheldon _Xiao Friday, January 7, 2011 9:33 AM
Friday, December 31, 2010 7:07 AM
All replies
-
Hi,
Please check out this thread.
http://social.msdn.microsoft.com/Forums/fi-FI/winforms/thread/662823fa-beda-42e1-9556-57b750339a9a
Syed Mustehsan IkramWednesday, December 29, 2010 6:36 AM -
I saw this thread before posting. However, as mentioned I can't step into the xaml file and I eliminated many parts where I thougt there could be a wrong conversion. No success. Any input is appreciated.Wednesday, December 29, 2010 5:12 PM
-
Hi hfaun,
Welcome to our forum.
I think you could try to TroulbeShooting Exceptions as follow:
http://msdn.microsoft.com/en-us/library/34see4yz.aspx
And if your issue persists, could you kindly share a simple sample with me to reproduce your issue, I think it is hard to find the root cause of your issue without any code.
Best regards,
Sheldon _Xiao [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Marked as answer by Sheldon _Xiao Friday, January 7, 2011 9:33 AM
Friday, December 31, 2010 7:07 AM -
Hi hfaun,
I am marking your issue as "Answered", if you find the answer is no help for you, please unmark.
Best regards,
Sheldon _Xiao [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Friday, January 7, 2011 9:32 AM