I maintain a website under Server 2003 but test it on a WinXP Pro SP2 with
IIS5.1.
Everything runs OK.
For backup I transfered the website also to my notebook (also with WinXP Pro
SP2 and IIS5.1)
It did not work.

After some debugging I found the culprit.
I constructed a testing application in a subfolder test (which runs OK on
my desktop),
with essentially this Javascript content:

<%
var fso,tf,cnt, fnm,cnt0,cnt1;
fnm = (String(Server.MapPath("/test/")) +
"\\counter.txt").replace(/\\/g,"\\");
fso = Server.CreateObject("Scripting.FileSystemObject");
tf = fso.OpenTextFile(fnm,1);
cnt = tf.ReadLine().split(",");
tf.Close();
cnt0=Number(cnt[0]);
cnt1=Number(cnt[1]);
%>
with after that a display of the two counters.

The intention is to read two counters from the text file counters.txt
When stepping with the debugger through the source lines, the cursor
disappears at the line that opens the text file (tf =
fso.OpenTextFile(fnm,1); ) and the browser keeps waiting forever.

Typically privilege problem, I thought.
But in the IIS-MMC everything appears OK:
- application "test" in designated directory "\test", integrated Windows
authentication, etc
In NTFS ACL:
- Administrators/SYSTEM: Full Control
- Users: Read&Exec/List/Read plus, for the file counters.txt, Write.

Has anyone any idea what's wrong with my notebook's configuration?


--
Peter J. Veger, Best Netherlands

RE: Scripting Runtime: what rights/permissions required? by AnthonyWJones

AnthonyWJones
Mon Jan 09 07:30:03 CST 2006

Is anonymous access enabled for that page. If so then the account trying to
open the file will be IUSR_<machinename> which may not have rights being a
Guest account.

"Peter J. Veger" wrote:

> I maintain a website under Server 2003 but test it on a WinXP Pro SP2 with
> IIS5.1.
> Everything runs OK.
> For backup I transfered the website also to my notebook (also with WinXP Pro
> SP2 and IIS5.1)
> It did not work.
>
> After some debugging I found the culprit.
> I constructed a testing application in a subfolder test (which runs OK on
> my desktop),
> with essentially this Javascript content:
>
> <%
> var fso,tf,cnt, fnm,cnt0,cnt1;
> fnm = (String(Server.MapPath("/test/")) +
> "\\counter.txt").replace(/\\/g,"\\");
> fso = Server.CreateObject("Scripting.FileSystemObject");
> tf = fso.OpenTextFile(fnm,1);
> cnt = tf.ReadLine().split(",");
> tf.Close();
> cnt0=Number(cnt[0]);
> cnt1=Number(cnt[1]);
> %>
> with after that a display of the two counters.
>
> The intention is to read two counters from the text file counters.txt
> When stepping with the debugger through the source lines, the cursor
> disappears at the line that opens the text file (tf =
> fso.OpenTextFile(fnm,1); ) and the browser keeps waiting forever.
>
> Typically privilege problem, I thought.
> But in the IIS-MMC everything appears OK:
> - application "test" in designated directory "\test", integrated Windows
> authentication, etc
> In NTFS ACL:
> - Administrators/SYSTEM: Full Control
> - Users: Read&Exec/List/Read plus, for the file counters.txt, Write.
>
> Has anyone any idea what's wrong with my notebook's configuration?
>
>
> --
> Peter J. Veger, Best Netherlands
>
>
>
>

Re: Scripting Runtime: what rights/permissions required? by Peter

Peter
Mon Jan 09 08:44:15 CST 2006

I had (and have again) tested that, but it did not help.
(It is, of course, necessary for the website on the Server 2003 that serves
the wide world, not just me.)

I can compare my desktop and notebook settings --- they are now sitting next
to the other on my desk --,
I cannot find any remarkable differences, and, yet, one is OK the other KO

--
Peter J. Veger, Best Netherlands


"AnthonyWJones" <AnthonyWJones@discussions.microsoft.com> wrote in message
news:0929B20F-835A-48AC-9151-CF90CA3EE7CB@microsoft.com...
> Is anonymous access enabled for that page. If so then the account trying
> to
> open the file will be IUSR_<machinename> which may not have rights being a
> Guest account.
>
> "Peter J. Veger" wrote:
>
>> I maintain a website under Server 2003 but test it on a WinXP Pro SP2
>> with
>> IIS5.1.
>> Everything runs OK.
>> For backup I transfered the website also to my notebook (also with WinXP
>> Pro
>> SP2 and IIS5.1)
>> It did not work.
>>
>> After some debugging I found the culprit.
>> I constructed a testing application in a subfolder test (which runs OK
>> on
>> my desktop),
>> with essentially this Javascript content:
>>
>> <%
>> var fso,tf,cnt, fnm,cnt0,cnt1;
>> fnm = (String(Server.MapPath("/test/")) +
>> "\\counter.txt").replace(/\\/g,"\\");
>> fso = Server.CreateObject("Scripting.FileSystemObject");
>> tf = fso.OpenTextFile(fnm,1);
>> cnt = tf.ReadLine().split(",");
>> tf.Close();
>> cnt0=Number(cnt[0]);
>> cnt1=Number(cnt[1]);
>> %>
>> with after that a display of the two counters.
>>
>> The intention is to read two counters from the text file counters.txt
>> When stepping with the debugger through the source lines, the cursor
>> disappears at the line that opens the text file (tf =
>> fso.OpenTextFile(fnm,1); ) and the browser keeps waiting forever.
>>
>> Typically privilege problem, I thought.
>> But in the IIS-MMC everything appears OK:
>> - application "test" in designated directory "\test", integrated Windows
>> authentication, etc
>> In NTFS ACL:
>> - Administrators/SYSTEM: Full Control
>> - Users: Read&Exec/List/Read plus, for the file counters.txt, Write.
>>
>> Has anyone any idea what's wrong with my notebook's configuration?
>>
>>
>> --
>> Peter J. Veger, Best Netherlands
>>
>>
>>
>>



Re: Scripting Runtime: what rights/permissions required? by AnthonyWJones

AnthonyWJones
Mon Jan 09 09:06:02 CST 2006

What exactly are you getting when you visit the page?
Have you tried turning off anonymous access?
Is there anything in the event log?

"Peter J. Veger" wrote:

> I had (and have again) tested that, but it did not help.
> (It is, of course, necessary for the website on the Server 2003 that serves
> the wide world, not just me.)
>
> I can compare my desktop and notebook settings --- they are now sitting next
> to the other on my desk --,
> I cannot find any remarkable differences, and, yet, one is OK the other KO
>
> --
> Peter J. Veger, Best Netherlands
>
>
> "AnthonyWJones" <AnthonyWJones@discussions.microsoft.com> wrote in message
> news:0929B20F-835A-48AC-9151-CF90CA3EE7CB@microsoft.com...
> > Is anonymous access enabled for that page. If so then the account trying
> > to
> > open the file will be IUSR_<machinename> which may not have rights being a
> > Guest account.
> >
> > "Peter J. Veger" wrote:
> >
> >> I maintain a website under Server 2003 but test it on a WinXP Pro SP2
> >> with
> >> IIS5.1.
> >> Everything runs OK.
> >> For backup I transfered the website also to my notebook (also with WinXP
> >> Pro
> >> SP2 and IIS5.1)
> >> It did not work.
> >>
> >> After some debugging I found the culprit.
> >> I constructed a testing application in a subfolder test (which runs OK
> >> on
> >> my desktop),
> >> with essentially this Javascript content:
> >>
> >> <%
> >> var fso,tf,cnt, fnm,cnt0,cnt1;
> >> fnm = (String(Server.MapPath("/test/")) +
> >> "\\counter.txt").replace(/\\/g,"\\");
> >> fso = Server.CreateObject("Scripting.FileSystemObject");
> >> tf = fso.OpenTextFile(fnm,1);
> >> cnt = tf.ReadLine().split(",");
> >> tf.Close();
> >> cnt0=Number(cnt[0]);
> >> cnt1=Number(cnt[1]);
> >> %>
> >> with after that a display of the two counters.
> >>
> >> The intention is to read two counters from the text file counters.txt
> >> When stepping with the debugger through the source lines, the cursor
> >> disappears at the line that opens the text file (tf =
> >> fso.OpenTextFile(fnm,1); ) and the browser keeps waiting forever.
> >>
> >> Typically privilege problem, I thought.
> >> But in the IIS-MMC everything appears OK:
> >> - application "test" in designated directory "\test", integrated Windows
> >> authentication, etc
> >> In NTFS ACL:
> >> - Administrators/SYSTEM: Full Control
> >> - Users: Read&Exec/List/Read plus, for the file counters.txt, Write.
> >>
> >> Has anyone any idea what's wrong with my notebook's configuration?
> >>
> >>
> >> --
> >> Peter J. Veger, Best Netherlands
> >>
> >>
> >>
> >>
>
>
>

Re: Scripting Runtime: what rights/permissions required? by Peter

Peter
Mon Jan 09 09:30:02 CST 2006

First a reaction:
- in IE I see "Done" in the status bar but a spinning window at the top,
- in Firefox I see "Waiting for <servername>...."

But: I have detected the culprit...

I transfered the problem to WSH and then, lo behold, McAfee Virusscan
reported unsavoury scripting activity; after replying: "continue with
script", everything worked as expected.

And, of course, on my desktop I had unselected the option "Enable
Scriptstopper" a long time ago.

Sorry for bothering you with this small problem --- that has cost me at
least a day.
--
Peter J. Veger, Best Netherlands

"AnthonyWJones" <AnthonyWJones@discussions.microsoft.com> wrote in message
news:D07A0664-41F6-4D3B-A762-D8E1A4ED356B@microsoft.com...
> What exactly are you getting when you visit the page?
> Have you tried turning off anonymous access?
> Is there anything in the event log?
>
> "Peter J. Veger" wrote:
>
>> I had (and have again) tested that, but it did not help.
>> (It is, of course, necessary for the website on the Server 2003 that
>> serves
>> the wide world, not just me.)
>>
>> I can compare my desktop and notebook settings --- they are now sitting
>> next
>> to the other on my desk --,
>> I cannot find any remarkable differences, and, yet, one is OK the other
>> KO
>>
>> --
>> Peter J. Veger, Best Netherlands
>>
>>
>> "AnthonyWJones" <AnthonyWJones@discussions.microsoft.com> wrote in
>> message
>> news:0929B20F-835A-48AC-9151-CF90CA3EE7CB@microsoft.com...
>> > Is anonymous access enabled for that page. If so then the account
>> > trying
>> > to
>> > open the file will be IUSR_<machinename> which may not have rights
>> > being a
>> > Guest account.
>> >
>> > "Peter J. Veger" wrote:
>> >
>> >> I maintain a website under Server 2003 but test it on a WinXP Pro SP2
>> >> with
>> >> IIS5.1.
>> >> Everything runs OK.
>> >> For backup I transfered the website also to my notebook (also with
>> >> WinXP
>> >> Pro
>> >> SP2 and IIS5.1)
>> >> It did not work.
>> >>
>> >> After some debugging I found the culprit.
>> >> I constructed a testing application in a subfolder test (which runs
>> >> OK
>> >> on
>> >> my desktop),
>> >> with essentially this Javascript content:
>> >>
>> >> <%
>> >> var fso,tf,cnt, fnm,cnt0,cnt1;
>> >> fnm = (String(Server.MapPath("/test/")) +
>> >> "\\counter.txt").replace(/\\/g,"\\");
>> >> fso = Server.CreateObject("Scripting.FileSystemObject");
>> >> tf = fso.OpenTextFile(fnm,1);
>> >> cnt = tf.ReadLine().split(",");
>> >> tf.Close();
>> >> cnt0=Number(cnt[0]);
>> >> cnt1=Number(cnt[1]);
>> >> %>
>> >> with after that a display of the two counters.
>> >>
>> >> The intention is to read two counters from the text file counters.txt
>> >> When stepping with the debugger through the source lines, the cursor
>> >> disappears at the line that opens the text file (tf =
>> >> fso.OpenTextFile(fnm,1); ) and the browser keeps waiting forever.
>> >>
>> >> Typically privilege problem, I thought.
>> >> But in the IIS-MMC everything appears OK:
>> >> - application "test" in designated directory "\test", integrated
>> >> Windows
>> >> authentication, etc
>> >> In NTFS ACL:
>> >> - Administrators/SYSTEM: Full Control
>> >> - Users: Read&Exec/List/Read plus, for the file counters.txt, Write.
>> >>
>> >> Has anyone any idea what's wrong with my notebook's configuration?
>> >>
>> >>
>> >> --
>> >> Peter J. Veger, Best Netherlands
>> >>
>> >>
>> >>
>> >>
>>
>>
>>