Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
VS2010 .net 4.0 with UltraWebGrid
posted

We switched to Visual Studio 2010 Beta2 because we need to use Entity Framework 4.0 (edmx).  However, the ultrawebgrid does not seem to work with this version.  We are getting

Stack Trace: at System.Boolean.Parse(String value) at System.Web.Configuration.HttpCapabilitiesBase.CapsParseBool(String capsKey) at System.Web.Configuration.HttpCapabilitiesBase.get_JavaScript() at Infragistics.WebUI.WebControls.ClientMachine.FillValues(Control control) at Infragistics.WebUI.UltraWebGrid.UltraWebGrid.get_Client() at Infragistics.WebUI.UltraWebGrid.UltraGridLayout.Infragistics.WebUI.UltraWebGrid.IParticipateInAppStyling.InitializeStyles() at Infragistics.WebUI.UltraWebGrid.GridWebAgent.InitializeStyles() at Infragistics.WebUI.UltraWebGrid.UltraWebGrid.Infragistics.WebUI.Shared.IProvideAppStyling.InitializeStyles() at Infragistics.WebUI.Shared.CssBuilder.AppendStyles(Boolean clearStyles) at Infragistics.WebUI.Shared.CssBuilder.AppendStyles() at Infragistics.WebUI.Shared.CssBuilder.OnPreRender(Control control, Boolean preRenderComplete) at Infragistics.WebUI.Shared.CssBuilder.OnPreRenderComplete(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.Page.OnPreRenderComplete(EventArgs e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

We need to make this work badly in VS2010 .net 4.0, any ideas?

Parents
No Data
Reply
  • 515
    Suggested Answer
    posted

    We managed to solve this issue (or so we hope - so far it's working). The error is that IG asks for a Browser capability of "javascript", which is obsolete. ASP.NET 4 Default.browser file seems to be missing this property, and therefor it returns 'null' when asked for. The bool.Parse method fails to parse "null" and that's the cause of the exception (see your stacktrace).

    What we did was simple: add a browser file to App_Browsers folder (e.g. DefaultEx.browser), and add the missing "javascript" property yourself:

    <browsers>
      <browser refID="Default">
        <capabilities>
          <capability name="javascript" value="false" />
        </capabilities>
      </browser>
    </browsers>

Children
No Data