-
[RESOLVED] strange error
Hi there,
I am trying to play around with some images - just learning and seeing how it all works. I have this line of code.
Code:
Stream imageStreamSource = new FileStream("images/plane.jpg", FileMode.Open, FileAccess.Read, FileShare.Read);
As far as I can tell that line of code looks OK however I get this frustratingly useless error msg.
Code:
Cannot create instance of 'Window1' defined in assembly 'WpfApplication2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Exception has been thrown by the target of an invocation. Error in markup file 'Window1.xaml' Line 1 Position 9.
I have added plane.jpg to the images folder of the project. Shrug* I am stuck and frustrated. Google didn't get me anything useful either.
Thanks!
-
Re: strange error
Crap!!! Never mind, I finally found the inner exception that was the real cause of the problem
Thanks!