accessing files over intranet

M

Miro

Hi!

How can I access files over intranet. I have mapped a
server to the drive letter G and try to access a file
from ASP.NET, but File.Exists("G:\filename.ext") returns
false. The same code in Windows Forms return true, so I
guess it has something to do with the permissions. I set
all rights to the IUSR_machinename. This is enough to
make it work locally on C: but not on G:

any suggestions?

/Miro
 
M

MSFT

Hi Miro,

With a Windows Application, it will use your current logon account to
access driver G:. With an ASP.NET application, It may use the accounts:
"ASPNET", "IUSER_machinename" or others. This is determined by setting of
IIS and ASP.NET configration. I suggest you can take a look at following
article to see if you can resolve the problem with impernate:

http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q306158

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
M

Miro

Thanks Luke!

What solved this for me was two things. Uncheck
the "anonymous access" in IIS and insert this:

<identity impersonate="true"/>

into web.config. Anyway I still have trouble making it
work on Novell servers. It works WXP->W2000 and W2000-
W2000 but not W2000->Novell. I'm using windows
authentication with adm rights. Any suggestions on this
one?

/Miro
 
M

MSFT

Hi Miro,

Can you access the files on Novell via Windows application?

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top