BitmapImage img = new BitmapImage(new Uri("somepath",UriKind.Relative));
 WriteableBitmap wbm = new WriteableBitmap(img);

I get a Runtime error at the line above: "Object reference not set to an instance of an object."

Edit
Report