Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading files from another computer via ASP FSO

Status
Not open for further replies.

jollyreaper

Technical User
Jul 25, 2005
105
US
There's been a lot of discussion about this on here but none of what's been sugggested has gotten me close to a resolution yet.

Here's the situation. I'm running ASP on one computer, we'll call it webserver. I want to read a directory off another server, we'll call it otherserver.

By default I cannot do this. Why not? Because IIS isn't running under the right permissions. Ah! So if I give it the right permissions, all will be good.

So the different instructions say that I need to create IUSR_webserver on the domain controller. IIS needs to run under this account and then it will have full access.

Well, that's proving to be more problematic. I tried changing the default user login via IIS Manager to the IUSR_webmachine account and that didn't help. Instead of getting the FSO error message, now ASP won't even work, 401 error. "I don't have permissions." But I can view html files in that directory just fine, I can't run asp's though.

Does anyone have a simplistic solution for this, as one would instruct a child? I'm obviously missing something here. Thanks.
 
in your IIS manager...right click on the website root folder and select the tab "Documents"...do you see a default.asp in there...if not go ahead and add it...

and try to run a simple asp page and see it runs...

-DNG
 
It's permissions. Flat out won't run. Here's what I created.

sample.asp

This is my sample. <br>
<%document.write("Goodbye, cruel world."%>

It won't even get as far as executing. My error:
You are not authorized to view this page
You do not have permission to view this directory or page using the credentials that you supplied.
--------------------------------------------------------------------------------

Please try the following:

Contact the Web site administrator if you believe you should be able to view this directory or page.
Click the Refresh button to try again with different credentials.
HTTP Error 401.1 - Unauthorized: Access is denied due to invalid credentials.
Internet Information Services (IIS)


Now if I view an html file in the same directory, works fine. ASP used to work fine, it was just the FSO accessing another computer's dirve problem that was stumping me. Now I've taken a step backwards with this solution. Yay, microsoft! I know this solution has to be semi-obvious.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top