on 09-17-2008 3:18 PM
The test application is ASP.NET 2 WebApplication (C#) with only one control added the page u2013 CrystalDecisions.Web.CrystalReportVierwer (version 12.0.2000.0) u2013 empty report with only one text field.
For deployment - added Web Setup Project:
dotnetfx.exe (2); WindowsInstaller (3.1); and Cassini for ASP.NET (2) (UltiDev)
CRRuntime_12_0.msm, CRRuntime_12_0_maps.msm, CRRuntime_12_0_mlb.exe
The problem is that deployed application (installs without errors) crashes with jscript error u201CBobj is undefinedu201D (test project can be provided).
What does this error mean? What I am missing?
Thank you in advance.
Hi Marina,
It might be possible that the jacascript file get currupted.
To resolve this issue follow the steps given below.
1. Copy the aspnet_client folder from the machine on which the application is running with out error.
- Path of the file is - C:\inetpub\wwwroot\aspnet_client
Note:- Create backup of that file before editing.
Paste the folder on the same location on the machine on which error is occured.
If that doesn't work, look at your IIS logs and see what they indicate the issue is.
hope that works!!
Regards,
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Amit,
on the development machine the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETClientFiles\CrystalReportWebFormViewer4\js
contains different folders and some common than on test machine (?),
but i copied JS to the test machine. Unfortunately it didn't make a difference - same error in the same place. When i open in debug, i see this:
WebForm_InitCallback();bobj.crv.stateManager.setComponentState('CrystalReportViewer1__UI',eval('('document.getElementById('__CRYSTALSTATECrystalReportViewer1').value')'));
where i believe bobj is not available... i wonder why...
download the utility called filemon from [here:|http://www.microsoft.com/technet/sysinternals/utilities/filemon.mspx]
and do the following:
1) Load Filemon
2) Press Ctrl + L. This will bring up the filter window.
3) In the 'include' text box, put the name of the aspnet worker process, without the full path. ie: aspnet_wp.exe (ok)
4) Click <OK>
5) Press Ctrl + X to clear the display.
6) run your application, get it to the point where it errors.
7) Save the filemon log. File -> Save as
😎 Look for files where the 'result' column is not successful.
Amit
I have something more to add from Event Viewer Application (includes Stack trace, see below):
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 9/17/2008 12:26:44 PM
Event time (UTC): 9/17/2008 4:26:44 PM
Event ID: e833a9fe4ca1483b934d5e32efd8c070
Event sequence: 4
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: e92ba0bf-1-128661424020543543
Trust level: Full
Application Virtual Path: /
Application Path: C:\inetpub\wwwroot\WebSetup4\
Machine name: USI-D820L
Process information:
Process ID: 3276
Process name: UltiDevCassinWebServer2a.exe
Account name: NT AUTHORITY\SYSTEM
Exception information:
Exception type: NullReferenceException
Exception message: Object reference not set to an instance of an object.
Request information:
Request URL: http://127.0.0.1:2081/default.aspx
Request path: /default.aspx
User host address: 127.0.0.1
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\SYSTEM
Thread information:
Thread ID: 13
Thread account name: NT AUTHORITY\SYSTEM
Is impersonating: False
Stack trace: at CrystalDecisions.Web.ViewerGlobal.get_IsSafari()
at CrystalDecisions.Web.CrystalReportViewer.Render(HtmlTextWriter output)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:
Thank you in advance.
Regards,
- Marina
I found the problem on my test machine -
the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 directory was MISSING the whole folder - ASP.NETClientFiles!
which also contains folders:
crystalreportviewers12
CrystalReportWebFormViewer3
CrystalReportWebFormViewer4
comparing to the test - my developer machine has correct directory structure... so the deployment package?...
Note: I have the latest updates for Crystal 2008:
CR2008_sp0
cr2008_fp1
cr2008_fp2
for deployment i used
CRRuntime_12_0_mlb.exe (3/5/2008)
CRRuntime_12_0.msm (09/06/2008)
Now it works (SWFs feature on deployment machine works too).
Thanks for help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.