Hi,
I've got a code library building into a DLL for my web project, .NET2, which has a stylesheet file as an embedded resource. I am referencing the stylesheet via:
Page.ClientScript.GetWebResourceUrl(this.GetType(), "MyControls.Stylesheet.css"))
It is registered in the AssemblyInfo.cs as:
[assembly: System.Web.UI.WebResource("MyControls.Stylesheet.css", "text/css")]
And resides in:
/MySolution/MyControls/Stylesheet.css
I have added:
To the section of the web.config file.
But when placing the code on the page I simply get:
And following the path in the href produces:
Server Error in '/Web' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /Web/WebRe ...
Go to the complete details ...