|
 |
aspx thread: Uploading files to a different file server
Message #1 by jasperanand@h... on Tue, 14 May 2002 03:02:32
|
|
Hi All,
we have a different file server and our existing asp application works fine
uploading files using the virtual path. But if i try to upload to the same
directories using asp.net its giving some "login faliure ..bad username or
password"
NB: its ok using asp application with the same permission settings
so i need to give any other spl. permission for dotnet.
Also i tried giving the physical path..that too is not working.
Inturn uploading to the same application server is ok.
looking forward for ur valuable suggestions.
Thanks,
samuel
Message #2 by Feduke Cntr Charles R <FedukeCR@m...> on Tue, 14 May 2002 08:23:07 -0400
|
|
Samuel,
Its probably an NTFS permissions thing. The aspnet_wp.exe runs as a
different user than the IIS process, and I think in the configuration file,
the user name is something like "MACHINE" (which really doesn't help much
because I can't figure out what real user that maps to --- should be
IUSR_machinename but apparently its not (?)). If you find your
machine.config (Find files, its in \winnt somewhere) and look for a section
that says something about users and permissions, change the user name from
MACHINE (or whatever it is) to whatever the name of the user is that runs
the IIS process (IUSR_machinename). If you have permissions in normal ASP,
then this should get you permissions to that share with ASP.NET.
And if the above does not work, then look for a similiar section in
your Web.Config setting for that web. The Machine.config is for the entire
machine and all webs, but you can fine tune each web application using
Web.Config files (and you could make the user change in the Web.Config vice
the Machine.Config).
After doing all of the above, its probably a good idea to reboot the
server.
HTH,
- Chuck
-----Original Message-----
From: jasperanand@h... [mailto:jasperanand@h...]
Sent: Monday, May 13, 2002 11:03 PM
To: ASP+
Subject: [aspx] Uploading files to a different file server
Hi All,
we have a different file server and our existing asp application works fine
uploading files using the virtual path. But if i try to upload to the same
directories using asp.net its giving some "login faliure ..bad username or
password"
NB: its ok using asp application with the same permission settings
so i need to give any other spl. permission for dotnet.
Also i tried giving the physical path..that too is not working.
Inturn uploading to the same application server is ok.
looking forward for ur valuable suggestions.
Thanks,
samuel
|
|
 |