Getting javascript error as Access is Denied on GetResource.ashx.

Shailesh Kumar asked on May 4, 2015 10:05

Hi,

I have setup my site on a new server. On those servers the site is working fine. But on the new servers, I have set all the permissions right on parent directory. When I run the site every thing else is working properly except that the stylesheet is not getting rendered, stating a javascript error message "Access is Denied".

Detailed error message as below:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SV1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; MS-RTC LM 8) Timestamp: Mon, 4 May 2015 08:03:54 UTC

Message: Access is denied.

Line: 1 Char: 199 Code: 0 URI: https://xxx.com/CMSPages/GetResource.ashx?scriptfile=%7e%2fCMSScripts%2fWebServiceCall.js

Thanks

Recent Answers


Brenden Kehren answered on May 4, 2015 13:29

Based on the Export Folder structure, you might want to modify your script location. Secondly, you may need to set read/write permissions to the /CMSScripts/Custom directory to allow for read and/or write (as you can create files in that location from the UI). This permission would need to be granted for the user running the app pool for the website.

0 votesVote for this answer Mark as a Correct answer

Shailesh Kumar answered on May 4, 2015 13:52 (last edited on May 4, 2015 14:16)

I have already granted the permission for the user running the app pool, but still I am getting this issue, that the style is not getting applied on page rendered. I am working on Kentico CMS version 7.099

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on May 4, 2015 14:36

have you tried recycling the app pool and website? How about clearing the cache on your browser?

Also are you sure the user you have granted permissions to is the correct user running the app pool?

0 votesVote for this answer Mark as a Correct answer

Shailesh Kumar answered on May 4, 2015 15:04

I have tried that too. Recycled the Application Pool. The user is the same for which I have granted the permission on App Pool. Any other thoughts.

Thanks

0 votesVote for this answer Mark as a Correct answer

kuntesh thakker answered on September 29, 2018 04:54

I have got the same issue . I have given full permission but still issue persist . Please help

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.