Strange line for an error. By reading it, you will get lost, and finding it is another mad thing to do. Anyways, i sorted this out. I was working on a silverlight project, i accidently or intentionally copied the image files to web project. I forgot to change a property, i compiled and the error was ringing church bells in my ear.

So the solution is, the image i copied has the property Build action set to Application Resource. I set it to content and it worked!! I hope if you get this error in future you will not get stuck.