title: register bundle for "jqgrid" in scriptmanager
body: <p>I am new to bundle and optimization and trying to understand. 
  I am creating bundle in site containing <strong>Webform</strong> and <strong>.Net Framework 4.0</strong>. I have created '<em>BundleConfig.cs</em>' in which i am creating bundles. it has following code:</p>
  
  <pre><code> public static void RegisterBundles(BundleCollection bundles)
      {
          /// JavaScript Bundles.
          // removed other standard bundles for readability.
  
          bundles.Add(new ScriptBundle("~/Bundles/jqGird")
                  .Include("~/Scripts/jquery.jqGrid.min.js")
                  .Include("~/Scripts/i18n/grid.locale-en.js")
              );
      }
  </code></pre>
  
  <p>I have also created '<em>Global.asax</em>', which contains:</p>
  
  <pre><code>&lt;script runat="server"&gt;
      void Application_Start(object sender, EventArgs e)
      {
          // Code that runs on application startup
          // Registering Bundles
          Sheridan.DPD.WebApp.BundleConfig.RegisterBundles(BundleTable.Bundles);
  
          // Enabling Bundle Optimization.
          BundleTable.EnableOptimizations = true;
  
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>Now in Master page i am registering the bundle in '<em>ScritpManager</em>'</p>
  
  <pre><code>&lt;asp:ScriptManager runat="server" ID="scriptMgr" EnablePageMethods="true"&gt;
      &lt;Scripts&gt;
          &lt;%--Framework scripts--%&gt;
          &lt;asp:ScriptReference Name="MsAjaxBundle" /&gt;
          &lt;asp:ScriptReference Name="jquery" /&gt;
          &lt;asp:ScriptReference Name="jquery.ui.combined" /&gt;
  
          &lt;asp:ScriptReference Name="jqGird" /&gt;
  
          &lt;asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" /&gt;
          &lt;asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" /&gt;
          &lt;asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" /&gt;
          &lt;asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" /&gt;
          &lt;asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" /&gt;
          &lt;asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" /&gt;
          &lt;asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" /&gt;
          &lt;asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" /&gt;
          &lt;asp:ScriptReference Name="WebFormsBundle" /&gt;
          &lt;%--Site scripts--%&gt;
      &lt;/Scripts&gt;
  &lt;/asp:ScriptManager&gt;
  </code></pre>
  
  <p>It is giving me following error. </p>
  
  <blockquote>
    <p>System.InvalidOperationException: 'jqGird' is not a valid script name. The name must end in '.js'.</p>
  </blockquote>
  
  <p>So what is it that I am doing wrong? as other Bundles are working fine. </p>