title: DNN WebResource.axd not found for custom control
body: <p>I've build a custom control and want to add an embedded js file to it. I think I did everything right and the controls compiles like expected.</p>
  
  <p>I've marked the js file to Build Action "Embedded Resource"</p>
  
  <p>The simplified control:</p>
  
  <pre><code>[assembly: WebResource("GoogleMapsLegend.js", "application/javascript", PerformSubstitution = true)] 
  namespace CustomControls
  {
      public class GoogleMapsLegend : WebControl
      {
          protected override void OnInit(EventArgs e)
          {
              base.OnInit(e);
  
              this.Page.ClientScript.RegisterClientScriptInclude(typeof(CustomControls.GoogleMapsLegend), "GoogleMapsLegend", Page.ClientScript.GetWebResourceUrl(typeof(CustomControls.GoogleMapsLegend), "GoogleMapsLegend.js")); 
          }
      }
  }
  </code></pre>
  
  <p>When I run the control in a DotNetNuke environment I get a 404 </p>
  
  <blockquote>
    <p>Failed to load resource: the server responded with a status of 404 (Not Found) 
    <a href="http://testenvironment.dev.nl/WebResource.axd?d=9ubkUMGTBWycKhgQIG5UHmzbPQjp5hcuPdO" rel="nofollow">http://testenvironment.dev.nl/WebResource.axd?d=9ubkUMGTBWycKhgQIG5UHmzbPQjp5hcuPdO</a>…jQr5YlIXdwqph6fJIVdtyKxWHJnyuIP44D9akltG8kiDFVFdwSND0&amp;t=635122452802549563</p>
  </blockquote>
  
  <p>Are there additional setting I need to put in the web.config?</p>
  
  <p>I've tried adding the following to the web.config, but no luck so far.</p>
  
  <pre><code>&lt;add verb="*" path="WebResource.axd" validate="true" type="System.Web.Handlers.AssemblyResourceLoader" /&gt;
  </code></pre>
  
  <p>Is it possible there's a conflict with the Telerik.Web.UI.WebResource.axd?</p>