Re: Win2003 server IIS 6.0 ASP 3.0 weird reading text files

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jeff Cochran (jeff.nospam_at_zina.com)
Date: 01/11/05


Date: Tue, 11 Jan 2005 19:16:48 GMT

On Tue, 11 Jan 2005 09:01:02 -0800, "pruebas_100"
<pruebas100@discussions.microsoft.com> wrote:

>
>
>"Jeff Cochran" wrote:
>
>> On Mon, 10 Jan 2005 13:15:04 -0800, "pruebas_100"
>> <pruebas_100@discussions.microsoft.com> wrote:
>>
>> >I have a problem with iis and Firefox, Netscape and mozilla. I have a txt
>> >file to read and populate and array, this process is done at the server when
>> >using IE I don't have this error it only shows under Firefox,Netscape see
>> >code below
>> >
>> > Set fso = CreateObject("Scripting.FileSystemObject")
>> > Set objFile = fso.GetFile(strFilePath)
>> > Set objFileTextStream = objFile.OpenAsTextStream(ForReading, _
>> > TristateUseDefault)
>> >Do While objFileTextStream.AtEndOfStream <> True
>> > strFileLine = objFileTextStream.ReadLine
>> >do stuff here
>> >I don't get any error from these call I check the txt file and everything
>> >looks ok, I notice that txt
>> >file get reset to zero bytes and my array gets no data any help.
>>
>> Possibly permissions related, IE will pass credentials and the others
>> may not.
>>
>> Jeff
>>
>
>
>What credentials? permission is not and issue, all this process take place
>at the server not at the browser this error is very confusing.

Permission is a big issue. The code runs in the context of the user
account accessing it. In the case of anonymous access, it's the
anonymous user account. But if you use Windows authentication, IE
will pass the Windows user credentials to IIS where the others will
not. That means it could be running as the anonymous user under one
browser and an authenticated, and different, user under another.

Filemon from systernals.com would help track that one though.
Otherwise, you start debugging and see what differences you're getting
from the browsers.

Jeff



Relevant Pages

  • Re: Access denied. You do not have permission to perform this action or access this resource.
    ... message when you try to connect to a Windows SharePoint Services Web ... I have brand new credentials on the server, not the "same" name as the ... Please let me know if other users with administrator permission can ... If you change the site owner to another user with administrator ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: comet morters
    ... In article, Jeff says... ... I was not approached for permission to reprint it, ... Tom seems fairly well ...
    (rec.pyrotechnics)
  • Re: Authentication/Impersonation Inconsistency
    ... Each of the files having only 1 different user given> permission. ... > 1) Sometimes things happen as expected where, when moving from apsx to aspx,> I get promted for the username/password/domain and with the proper> credentials get permission. ... But all of a sudden it stops working and am not> given access when retrying with the same credentials on the same aspx page> when nothing has changed. ... > 2) When provided access via the username/login/domain credentials all other> pages that are accessed use that last set of credentials instead of the> original, that being what the user is logged into the machine as. ...
    (microsoft.public.dotnet.security)
  • Re: [PATCH 3/4] integrity: Linux Integrity Module(LIM)
    ... Lot of different things need ways of recording integrity status's. ... Peter, please read up what the credentials patches do, or how struct ... credentials patch is in. ... Even better operate on filesystems lacking all the need permission ...
    (Linux-Kernel)
  • Re: preventing run-as option
    ... For example employee A is given the permission and B does not have ... Prevent any user from having any other user's credentials. ... EARN A MASTER OF SCIENCE IN INFORMATION ASSURANCE - ONLINE ... The NSA has designated Norwich University a center of Academic Excellence ...
    (Security-Basics)