Re: Access to Remote Data Files with ASP VBScript

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

From: Alok Kumar (AlokKumar_at_discussions.microsoft.com)
Date: 01/15/05


Date: Sat, 15 Jan 2005 11:35:01 -0800

I am sorry. I just saw this. I responded to your other posting. look at the
respons in the other posting also.
I beileve the you need to have a domain level iusr account for this to work.
Also it appears that the 2 servers are in different domain.. is this correct?

Alok

"Dr. Know" wrote:

> Bob Barrows [MVP] said:
>
> Bob, Thanks for the guidance, again. But...
>
> >Bob Barrows [MVP] wrote:
> >> Dr. Know wrote:
> >>> And I would love to log on as the IUSR I created, but the computer is
> >>> 800 miles away... No one there has a clue as to what I'm talking
> >>> about... I have to administrate their computers via PCAnywhere.
> >>
> >> No! Log into YOUR machine as IUSR and try to test your UDL on YOUR
> >> machine.
>
> >I mean, log into your web server machine as IUSR ....
>
> I'm not quite certain what you mean by this - as it works fine here.
> But I DID try it here and it does work.
>
> In case there is some misunderstanding, we have 5 computers here. One
> is a Win2k server. The others are development machines - primarily
> for MS Access. We are part of the MS Partners Program.
>
> I have no problem getting the server here to run the script and access
> other local machines when a duplicate anonymous account is created for
> this app. on both computers. I've tried creating three different NEW
> users on the machines - they all work fine here.
>
> The customer is 800 miles away, and has many on-site machines.
> The two machines in question are are the web server, and the machine
> with the data files we are trying to access from IIS(ASP). Going
> through the EXACT same config steps there as here, it fails to work.
> They do NOT run a domain controller.
>
> I created another NEW duplicate anonymous account on both machines,
> works fine here, but not there. It makes no sense.
>
> Here is what I have done since posting this.
> To eliminate the DB drivers as a problem, I created a simple script
> that writes a small test file to a remote share
>
> <%
> Set ScriptObject = Server.CreateObject("Scripting.FileSystemObject")
> Set MyFile = ScriptObject.OpenTextFile("\\DDMS\testfile.txt", 8,true)
> MyFile.WriteLine "*** Write file test ***"
> Myfile.writeline " file was written to at: " & Now
> Myfile.writeline " "
> MyFile.Close
> %>
>
> Works here, not there. I get (as expected) this error:
>
> Microsoft VBScript runtime error '800a0046'
> Permission denied
> /webuser/test.asp, line 3
>
> So, yes - you are right. It is a permissions issue.
>
> But why can I create a totally NEW duplicate account on two machines
> at our location and it works, but I do the EXACT SAME THING there and
> it doesn't?
>
> There is one odd thing...
> I ran the admin script ADSUtil.VBS script on the Web Server with the
> command:
>
> cscript adsutil.vbs get w3svc/anonymoususername and pass
>
> to retrieve the anonymous user account info, and it returns the
> administrator account info... The Admin account is not used as the
> IIS anonymous account anywhere on the system.
>
> I'm beginning to think something is hosed...
> They had this problem with another application, and finally gave up.
> This computer has been upgraded from Win98, to Win2000, to Windows
> Server2003 over the years - or so I'm told... Arrgghh....
>
> I'm so frustrated at this I could stick my head in a plastic bag - for
> about an hour... :-|
>
>
> Thanks again,
>
> Greg
>
>
>
>
>
>
>
>
>
> Dr. Know
>



Relevant Pages

  • Re: Access to Remote Data Files with ASP VBScript
    ... I responded to your other posting. ... I beileve the you need to have a domain level iusr account for this to work. ... > users on the machines - they all work fine here. ... > I created another NEW duplicate anonymous account on both machines, ...
    (microsoft.public.inetserver.iis)
  • Re: Which Vaio to buy?
    ... This is me posting under a different account. ... A lot of the ones I've seen for sale ... The whole BX range looks like that, but then identically specc'd machines ...
    (uk.comp.sys.laptops)
  • Re: Access to Remote Data Files with ASP VBScript
    ... The others are development machines - primarily ... I have no problem getting the server here to run the script and access ... I created another NEW duplicate anonymous account on both machines, ...
    (microsoft.public.inetserver.iis)
  • Re: Access to Remote Data Files with ASP VBScript
    ... The others are development machines - primarily ... I have no problem getting the server here to run the script and access ... I created another NEW duplicate anonymous account on both machines, ...
    (microsoft.public.inetserver.asp.db)
  • Re: Unable to Share Folder
    ... It may look daunting, but if you follow the steps at the links and suggestions below systematically and calmly, you will have no difficulty in setting up your sharing. ... Problems sharing files between computers on a network are generally caused by 1) a misconfigured firewall; or 2) inadvertently running two firewalls such as the built-in Windows Firewall and a third-party firewall; and/or 3) not having identical user accounts and passwords on all Workgroup machines; 4) trying to create shares where the operating system does not permit it. ... You do not need to be logged into the same account on all machines and the passwords assigned to each user account can be different; the accounts/passwords just need to exist and match on all machines. ...
    (microsoft.public.windowsxp.general)