Microsoft IIS Web Server
--
Questions
--
Followers
Top Experts
IIS6 on Windows 2003 - Permission Denied Issue on File Access
Hi,
I've built a tracking system that calls an index.htm through an IFrame on each of my web pages. The index.htm contains pure javascript that reads the following:
var params = window.parent.frames[0].pa rent.locat ion.href;
var refs = window.parent.frames[0].pa rent.docum ent.referr er;
Them two variables are passed on to:
window.open("track.aspx/?r ef="+build URL(refs)+ "&par="+pa rams, target="_self");
Where buildURL is a javascript function that encodes the URI into UTF-8 (a key function for me as I have a lot of visitors using i.e. Greek, Russian, Japanese or other cryptic kewords which I must track!).
The track.aspx writes the tracked information into a simple text file looking like:
1121634975|mydomain.com|19 2.100.100. 4|anydomai n.com/?p=& #949;χ ;ε	 53;+ε ν^ 5;+σ& #964;ο ;χ	 59;+π ο` 5;+φ& #945;ι ;ν	 49;τ& #945;ι ;&sm=Yahoo ! Search&fr=FP-tab-web-t&tog gle=1&cop= &ei=UTF-8
In my home network this works perfect ... as soon as I run the tracker on my "outside" Server on the www ... I get a script error, telling me "Permission Denied" ... I've already tried to set all permissions to the tracker's root (for the ASPNET user as well as for the NETWORKSERVICE) ... but nothing has changed yet!
So, I'm really helpless in this situation ... any help would be very much appreciated!!!
Best regards,
Raisor
I've built a tracking system that calls an index.htm through an IFrame on each of my web pages. The index.htm contains pure javascript that reads the following:
var params = window.parent.frames[0].pa
var refs = window.parent.frames[0].pa
Them two variables are passed on to:
window.open("track.aspx/?r
Where buildURL is a javascript function that encodes the URI into UTF-8 (a key function for me as I have a lot of visitors using i.e. Greek, Russian, Japanese or other cryptic kewords which I must track!).
The track.aspx writes the tracked information into a simple text file looking like:
1121634975|mydomain.com|19
In my home network this works perfect ... as soon as I run the tracker on my "outside" Server on the www ... I get a script error, telling me "Permission Denied" ... I've already tried to set all permissions to the tracker's root (for the ASPNET user as well as for the NETWORKSERVICE) ... but nothing has changed yet!
So, I'm really helpless in this situation ... any help would be very much appreciated!!!
Best regards,
Raisor
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
ASKER CERTIFIED SOLUTION
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Hi Meverest,
You're right!
It has something to do with the "frame" I was using ... what I do instead now is the following:
- The content of "index.htm" is removed to "tracking.js"
- The IFrame on each web page is replaced with: <script language="JavaScript" src="tracking.js"></script >
- And the variables and the open.window(...) part in "tracking.js" are replaced by:
var params = document.location.href
var refs = document.referrer
var imgsrc = 'http://tracker.mydomain.com/track.aspx?ref='+buildURL(refs)+'&par='+params
document.write('<img src='+imgsrc+' width=1 height=1 border=5>')
Instead of accessing the needed information using an IFrame, I'm doing it streight now,
using an image source (track.aspx generates an image as outcome!) ...
With your feedback I was able to work arround the IFrame issue -> thanks a lot, Meverest!!!
Best regards,
Raisor
You're right!
It has something to do with the "frame" I was using ... what I do instead now is the following:
- The content of "index.htm" is removed to "tracking.js"
- The IFrame on each web page is replaced with: <script language="JavaScript" src="tracking.js"></script
- And the variables and the open.window(...) part in "tracking.js" are replaced by:
var params = document.location.href
var refs = document.referrer
var imgsrc = 'http://tracker.mydomain.com/track.aspx?ref='+buildURL(refs)+'&par='+params
document.write('<img src='+imgsrc+' width=1 height=1 border=5>')
Instead of accessing the needed information using an IFrame, I'm doing it streight now,
using an image source (track.aspx generates an image as outcome!) ...
With your feedback I was able to work arround the IFrame issue -> thanks a lot, Meverest!!!
Best regards,
Raisor
You are most welcome.
Than you for adding further detail - it's all god info.
Cheers.
Than you for adding further detail - it's all god info.
Cheers.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Microsoft IIS Web Server
--
Questions
--
Followers
Top Experts
IIS is Internet Information Services, the web server included with Windows Server operating systems. All current versions are built on a modular architecture; modules can be added or removed individually so that those required for specific functionality are installed. The full installation of IIS includes HTTP, security, content, compression, caching, logging and diagnostics.