Results 1 to 2 of 2

Thread: [RESOLVED] strange error

  1. #1

    Thread Starter
    Hyperactive Member r0k3t's Avatar
    Join Date
    Dec 2005
    Location
    Cleveland
    Posts
    361

    Resolved [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!
    Anti DUPLO machine!!!

  2. #2

    Thread Starter
    Hyperactive Member r0k3t's Avatar
    Join Date
    Dec 2005
    Location
    Cleveland
    Posts
    361

    Re: strange error

    Crap!!! Never mind, I finally found the inner exception that was the real cause of the problem

    Thanks!
    Anti DUPLO machine!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width