SAP Knowledge Base Article - Public

1711114 - Error: AllInOne.js error while refreshing .aspx page

Symptom

  • Reports work fine when the browser displays the page for the the first time.
  • When the page is refreshed error is thrown for the AllInOne.js file.
  • Error:Microsoft JScript runtime error: style: is null or not an object error.

Environment

  • Crystal Reports for Visual Studio 2010
  • Visual Studio 2010
  • Internet Explorer 9
  • Web Application using .NET Framework 4.0

Cause

Code written for Crystal Reports in Page_Load event creates a post back of the page which causes the error in AllInOne.js file.

Resolution

Code written for Crystal Reports in Page_Load event should be moved to the Page_Init event.

Keywords

CR4VS2010, AllInOne.js error net crvs2010 crvs 2010 , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio