cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Internet Explorer Script Error

Former Member
0 Likes
2,081

I seem to get a weird IE Script error for any report I try to run on Crystal Developer XI. This is only specific to a Date/Time parameter. When I click the calendar button to select a date, it gives me the following IE Error:

An error has occurred in the script on this page.

Line: 159

Char: 1

Error: Object expected

Code: 0

URL: file:///C:\an html file somewhere in my Documents and Settings directory.

I am then prompted if I want to continue running scripts on this page. If I click Yes, it will not do anything. Same result if I click No.

This is happening to all my reports that have a Date/Time parameter.

Any ideas?

View Entire Topic
Former Member
0 Likes

Was having this same erro and tried all possible answers. The issue comes down to the system using Internet Explorer to display the prompts and then a Windows Update somehow now blocks scripts from running. Below is the solution that workd for me using IE8, Windows 7, and Crystal XI R2 and R3.

I found this: ht[http://social.msdn.microsoft.com/Forums/en-US/ieextensiondevelopment/thread/54544ec6-c2a5-40e5-934c-525e11df0053/ |http://social.msdn.microsoft.com/Forums/en-US/ieextensiondevelopment/thread/54544ec6-c2a5-40e5-934c-525e11df0053/ ]

There are some new information disclosure fixes in IE 7 that disallow arbitrary usage of the file system for loading of scripts. There are several fixes available to get you up and running. First, don't use an internet zone page for the content, instead load a dummy HTML page from disk to put the browser control into the local machine zone. Then you can load from the local machine zone just fine.

The second is to show intent that you don't mind allowing web-sites arbitrary access to scripts on your local machine by setting a feature control key. Some applications don't load internet content and so aren't vulnerable and so the usage of the key is a valid fix:

HKLM\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BLOCK_LMZ_SCRIPT (registry key)

MyAppName.exe:DWORD(0x0) (registry value)

Hopefully one of these options is suitable for your scenario. We warn against setting the feature control key for your application unless you are sure that internet content is not going to be loaded by your application.