title: How do I fix EmbeddedRessources in a ASP.NET web site?
body: <p>I am trying to reference a js file in a class in an ASP.NET and I receive this error:</p>
  
  <p>Assembly 'XXX' contains a Web resource with name  'XXX' but does not contain an embedded resource with name 'XXX'</p>
  
  <p>Searching the web tell me I must have a Path referencing problem, but I can't figure what is it.</p>
  
  <p>Here is the hierarchy</p>
  
  <pre><code>&lt;Root&gt;
     &lt;App_Code&gt;
        &lt;Application&gt;
            &lt;MyClass.cs NameSpace="None" /&gt;
        &lt;/Application&gt;
     &lt;/App_Code&gt;
     &lt;JS&gt;
        &lt;MyJSFile.js NameSpace="MyControls" Name="MyJSFile"&gt;
     &lt;/JS&gt;
  &lt;/Root&gt;
  </code></pre>
  
  <p>So in MyClass.cs I have :</p>
  
  <pre><code>[assembly: WebResource("MyControls.JS.MyJSFile.js", "text/javascript")]
  
  [ClientScriptResource("MyControls.JS.MyJSFile", "MyControls.JS.MyJSFile.js")]
  public class MyClass : ExtenderControlBase
  {}
  </code></pre>
  
  <p>So I guess there is something I didn't get with the referencing : (RootNampeSpace).(Path).(FileName).(Extension)</p>
  
  <p>My project is a ASP.NET WEB Site so I don't have properties for Build Action to set at Embedded Resources.</p>
  
  <p>Also in the folder App_Code I get an error if I put my JS file saying that the language is not the same as other file in App_Code.</p>