Problem I started writing an ASP.NET Custom Server Control, where I wanted an Image to be Embedded Resource of the Assembly itself, so that, I do not need to ship the images separately, but surprisingly it did not work straightway for me. The following line was not working for me: writer.AddAttribute(HtmlTex... Page.ClientScript.GetWebRes... "ferrari.jpg")); Ok, lets elaborate what I did and what I missed, Step 1, I created my ClassLibrary ......