JS 3.15 Access is Denied Error in IE

3565
9
02-18-2016 04:02 PM
MeleKoneya
Regular Contributor

I created a simple JavaScript sample in a text editor as an HTML file saved to a local drive that I try to open with IE.

When I do open it,  I get this error:


SCRIPT5: Access is denied.

File: 3.15, Line: 153, Column: 375

I can open it in Chrome but not IE.

How can I resolve this?

Thanks,

Mele

Tags (1)
0 Kudos
9 Replies
YueWu1
by
Regular Contributor

Hi Mele,

Are you running from your local file system or a local web server?

0 Kudos
MeleKoneya
Regular Contributor

I am accessing an .html file from my local file system.     I just created some sample scripts to test out some functionality in a file before trying to deploy it.

Thanks,

Mele

0 Kudos
YueWu1
by
Regular Contributor

Could you put the file in a local web server and run it again?

0 Kudos
omega_cancer
Occasional Contributor II

Try fetching it from CDN. Let us know what IE says.

MeleKoneya
Regular Contributor

I am accessing it from the CDN.

<script src="https://js.arcgis.com/3.15/"></script>

When I try to open the .html file from my local file system.   I get this message:

After clicking "Allow Blocked Content"   nothing shows in IE but if I look into the debugger I see this:

Thanks,

Mele

0 Kudos
MeleKoneya
Regular Contributor

That worked and resolved the error message I was seeing.  

Mele

0 Kudos
roshnibasu
New Contributor III

Hi Mele,

I'm getting similar issue on IE. How did you resolve it?

0 Kudos
MeleKoneya
Regular Contributor

Roshni,

What I was able to do was add my HTML file to an IIS web server running locally on my machine and then I was able to use IE to view it.    I was never able to view the file in IE directly if the HTML was on a local file system.

If you have Chrome installed,   Chrome will allow you to view the HTML file on a local file system without error.

Mele

0 Kudos
roshnibasu
New Contributor III

Hi Mele,

I put the file in jetty server and when I run it , I see the following error:

SCRIPT5007: Unable to get property '_getInfo' of undefined or null reference
File: 3.19, Line: 569, Column: 467

Did you notice any such issue?

I'm unable to run the application in IE.  

0 Kudos