Re: ASPNET permissions woe - even when writing to a local drive that is mapped



On 9 Sep 2005 05:50:00 -0700, jimmyfishbean@xxxxxxxxxxx wrote:

¤ Hi,
¤
¤ My client has the following network structure:
¤
¤ 2 Windows 2003 servers :
¤ Server 1 - Web server running IIS, ftp import and export folder,
¤ ASP.NET SOAP web service and asp code on here.
¤ Server 2 - SQL server with database on. Want to store images on here
¤ accessed via a share.
¤
¤ Standalone servers, no active directory, so users need to be set up on
¤ both servers.
¤
¤ Situation:
¤ I have installed an ASP.NET SOAP web service tool on server 1. This
¤ uses ASPNET account which is only a local account. Therefore, if I
¤ want this process to write to the local machine, great it all works.
¤ If I want to write to server 2, then I need to set up a domain account
¤ for the ASPNET process to use. I have accomplished this in the past
¤ and know it works (when the network structure uses active
¤ directory/domain accounts).
¤
¤ The problem is that my client does not have domain accounts, so I
¤ cannot get the ASPNET process to write to another PC. Worse still, I
¤ can only get the ASPNET to write to the local server if the location is
¤ on a physical drive (i.e. C:\ or D:\). If I map a drive letter (i.e.
¤ G:\) to point to C:\Images, then the ASPNET process is unable to write
¤ - despite the fact that C:\Images and G:\ are pointing to the local
¤ server.
¤
¤ This is the same when I try to write to a local location when using UNC
¤ path (i.e. \\localPC\Images)
¤
¤ It seems as if mapped drives and UNC paths force ASPNET to be
¤ validated/authenticated against domain accounts.
¤
¤ How can I get around this problem when the client does not have domain
¤ accounts and active directory?
¤

The only way I can think of that this would possibly work is to have a local account on both
machines (the web server and remote resource) that have the same credentials (user ID and password).
You would need to run your ASP.NET application process under this local account (instead of ASPNET).


Paul
~~~~
Microsoft MVP (Visual Basic)
.



Relevant Pages

  • Re: CONNECTION PROBLEM USING VB6 TO SQL SEVER 2000 PERSONAL EDITON
    ... ¤ I am having a problem in my vb6 application when I try to connect to sql ... server 2000 personal editon with the following connection string.(I am ... and VB6 and installed sql ... Is your SQL Server configured for both SQL Server and Windows ...
    (microsoft.public.vb.enterprise)
  • Re: The Microsoft Jet database engine cannot open the file
    ... and gave ASPNET rights to the folder containing ... > ¤ I am using anonymous authentication I think. ... If impersonation is not enabled then the account ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ldap connection problem
    ... This returned the uid from the server. ... i then built the ldap path again with the necessary DN, ... > ¤ I tried implementing the primary token thing but it is of no avail. ... > least privileged account. ...
    (microsoft.public.dotnet.general)
  • Re: CONNECTION PROBLEM USING VB6 TO SQL SEVER 2000 PERSONAL EDITON
    ... ¤ I am having a problem in my vb6 application when I try to connect to sql ... server 2000 personal editon with the following connection string.(I am ... table of the database NTL.using SQL server enterprise manager. ...
    (microsoft.public.vb.enterprise)
  • Re: Using MAPIControls with VB6
    ... If your SMTP server happens to be on your inside network, ... app will not have to go anywhere on the internet. ... Outlook Express client though the MAPI Contrls, ... ¤ Hi, ...
    (microsoft.public.vb.general.discussion)