cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal 2008 deployment question

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Amit, my development machine does not have

C:\inetpub\wwwroot\aspnet_client folder

everything runs on webdev asp.net server...

Would it be ok to copy from Program Files C:\Program Files\Business Objects\Common\4.0\crystalreportviewers12 ?

Thank you.

Former Member
0 Kudos

Yes you can give it a try!!

but make sure that before making any changes take backup

Amit

Former Member
0 Kudos

I tried it, but no luck. Same error. So jscript files are correct...

Former Member
0 Kudos

Try with this file - C:\WINDOWS:\Microsoft.NET\Framework\v2.0.50727\ASP.NET ClientFiles\CrystalReportWebformViewer3\JS

Amit

Former Member
0 Kudos

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...

Former Member
0 Kudos

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

Former Member
0 Kudos

The File Monitor does not show any activity when i specify filter (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_wp.exe)

and Capture Events.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Answers (1)

Answers (1)

former_member183750
Active Contributor
0 Kudos

See if this thread will help:

Look for a post from Jul 28, 2008.

Ludek