473,401 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Problems accessing files on another server

Development environment: Windows 2003 Server running IIS6 and the same
server running as a domain controller, DNS and DHCP servers.

Production environment: Windows 2000 Server SP4 running IIS5 and not used
to provide domain control or name services.

The two environments are on different networks with no trust relationship
between them. In both environments the web server is set up to disallow
anonymous access and to use integrated Windows authentication. The
application is vanilla ASP (i.e. not .NET) VBScript.

In the development environment, the following code runs flawlessly no
matter whether "myUNCPath" points to a share on the web server or a share
on another server in the same domain.

Set objFilesys = Server.CreateObject("Scripting.FileSystemObject")
If Not objFileSys.FolderExists(myUNCPath) Then
Set objFolder = objFileSys.CreateFolder(myUNCPath)
End If

However, in the production environment it falls over with a permission
denied error when "myUNCPath" is on another server and further testing
shows that the FolderExists method is returning false even when
"myUNCPath" exists. The network share is configured to give full control
to the Everyone group.

I've found http://support.microsoft.com/kb/207671 which although
referring to IIS4 suggests that the issue could be the authentication
method (I'm assuming that integrated Windows authentication is close
enough to NT Challenge/Response and so might generate a token that cannot
access network resources). I'm not sure of this is the problem because if
it were then the code shouldn't work in my development environment.

Any ideas on what's going wrong and how to access the network resources
in the production environemt?

TIA,

--
Geoff
May 18 '07 #1
4 3259
Geoff Lane wrote:
Development environment: Windows 2003 Server running IIS6 and the same
server running as a domain controller, DNS and DHCP servers.
Everything I know about this issue is summarized here:
http://www.aspfaq.com/show.asp?id=2168
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
May 18 '07 #2
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomwrote in news:#Dvns
$T*********@TK2MSFTNGP02.phx.gbl:
Everything I know about this issue is summarized here:
http://www.aspfaq.com/show.asp?id=2168
Thanks for that - much appreciated.

Your page led me to KB article 197964, which in a nutshell told me to run
the web server with anonymous access. This is something that I cannot do
because other pages in the same application make use of
Request.ServerVariables("AUTH_USER") and switching to anonymous access
would break them.

Additionally, attempting to force anonymous access for only the pages that
are affected by this issue won't work because (from the notes in KB article
264921) "When your browser establishes a connection with a Web site by
using Basic or Windows Integrated authentication, it does not fall back to
Anonymous during the rest of that session with the server. If you try to
connect to a Web page that is marked for Anonymous only after
authenticating, you are denied."

Because this issue doesn't appear in my development environment, I wonder
whether one of switching the DCs to Server 2003 and/or switching the web
server host to Server 2003 and/or upgrading from IIS5 to IIS6 would be a
long-term solution?

Thanks again,

--
Geoff
May 18 '07 #3
Geoff Lane wrote:
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomwrote in news:#Dvns
$T*********@TK2MSFTNGP02.phx.gbl:
>Everything I know about this issue is summarized here:
http://www.aspfaq.com/show.asp?id=2168

Thanks for that - much appreciated.

Your page led me to KB article 197964, which in a nutshell told me to
run the web server with anonymous access. This is something that I
cannot do because other pages in the same application make use of
Request.ServerVariables("AUTH_USER") and switching to anonymous access
would break them.

Additionally, attempting to force anonymous access for only the pages
that are affected by this issue won't work because (from the notes in
KB article 264921) "When your browser establishes a connection with a
Web site by using Basic or Windows Integrated authentication, it does
not fall back to Anonymous during the rest of that session with the
server. If you try to connect to a Web page that is marked for
Anonymous only after authenticating, you are denied."

Because this issue doesn't appear in my development environment, I
wonder whether one of switching the DCs to Server 2003 and/or
switching the web server host to Server 2003 and/or upgrading from
IIS5 to IIS6 would be a long-term solution?
You might consider either of these solutions:
- creating a web service on the remote server.
- using ServerXMLHTTP to get results from a page on the remote server
(http://www.aspfaq.com/show.asp?id=2173)
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
May 18 '07 #4
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomwrote in
news:uZ**************@TK2MSFTNGP04.phx.gbl:
You might consider either of these solutions:
- creating a web service on the remote server.
- using ServerXMLHTTP to get results from a page on the remote server
Much appreciated.

The application is intended to manage files on the remote server (actually,
multiple servers). It records which server and share stores the files for
each of a number of items and the routine that's failing is part of the
item setup. Searching the 'net suggests that server.transfer will fail for
the same reasons that cause this issue, so I'd have to pass the required
information to the remote server via the request object. Messy, but it
should work.

That said, the work-around I'm currently in the process of implementing is
to schedule the directory creation and have a scheduled task run some VBS
outside of IIS to actually do the deed.

In the meantime, I've discovered that my development network is using
Kerebos authentication and suspect the production environment uses NT
Challenge/Response. I'm waiting for the production network guru to call me
back with the relevant information. If it turns out that this would sort
out the situation, I can use the scheduled task for the time being and re-
implement to handle the directory creation in real-time once the production
network has completed migrating to Server 2003 etc.

Thanks again,

--
Geoff
May 18 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Gernot Saborowski | last post by:
To all IIS/ASP-professionals, we just upgraded from one machine to another and are experiencing some strange date time number problems. Both systems have been set up like this: - MS Windows...
32
by: jp29 | last post by:
My take on problems composing, serving and rendering XHTML documents/web pages: 1. Typical conscientious web authors are producing XHTML documents (Web pages) that feature valid Markup and with...
3
by: prodirect | last post by:
Hi all, I hope someone can help me. I've recently created a database and wanted to put it up on an ftp sight so that multiple people could access the same tables at the same time from different...
2
by: DanB | last post by:
I am using VB DotNet Std Edition and am writing a web application that needs to read and write to an password protected database. The mdb files reside in a folder (fpdb) under the localhost...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
0
by: sonu | last post by:
I have following client side code which i have used in my asp.net project SummaryFeatured Resources from the IBM Business Values Solution Center WHITEPAPER : CRM Done Right Improve the...
3
by: Newbie | last post by:
Hi All Trying to create a mini-ASP web dev with a couple of PCs at school. When the teachers are happy with the site on the LAN then going to upload it to the school site. Problem is having...
4
by: ThePhenix | last post by:
Hi everybody, I have recently been doing a conversion for my boss for a access 2000 database (both front and backend) to a MSSQL backend. I finished the conversion today (as quite a lot of the...
1
by: cschmid | last post by:
I have the same problem that Geoff Lane in 2007, the post was not solved by any users, I copy it in my post. Any Idea? link of original post : http://bytes.com/forum/thread648712.html ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.