Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing a Shared Folder on a Server
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00762189
Message ID:
00762327
Vues:
12
Bill,

You will need to add ASPNET as a domain user or use impersonation. It is failing because ASPNET is not a valid user on the domain to get access to the folder.

>I have an ASP.NET application in which I need to check for the existence of a file on another server. I am using an instantiation of the FileInfo class to accomplish this.
>
>I have tested this locally and it works fine but when I try to determine the existence of a file on the other machine through the UNC path it is failing.
>
>The path itself is valid since I checked it from the VFP Command window using the FILE() function.
>
>I suspect a permissions issue. The folder on the server is set as a shared folder with sufficient permissions given to the Everyone account. I am testing this running ASP.NET on my local machine so the application is running under the local ASPNET account. I would expect the call to the server to be made under that local ASPNET account and I suspect this is causing the problem but I'm not sure of the corrective action to take since the target folder has permissions given to the Everyone account.
>
>What am I missing here and what is the resolution?
>
>Thanks,
>Bill
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform