I have an AJAX management project that has a .js file that is configured as an embedded resource.
My main web application is referencing this project, and when I try to load the control, I get this error:
Assembly does not contain a Web resource with name 'MyFile.js'.
Here is my implementation of getScriptReferences:
public IEnumerable GetScriptReferences ()
{
// create reference to the JS
ScriptReference jsReference = new ScriptReference ();
jsReference.Assembly = "MyNamespace";
jsReference.Name = "MyNamespace.MyFile.js";
return new ScriptReference [] {jsReference};
}
I'm not quite sure what I am missing. I tried changing the Name parameter to just be the file name, namespace and file name, namespace, assembly and file name ... and I was out of luck. Any suggestions are welcome.
Ironicmuffin
source share