Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Asp.net app on a LAN, data and app separated?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00858340
Message ID:
00861981
Vues:
21
Hi Neil,

You need to use a UNC path and not a mapped path to access the data on another machine.

>I have 2 computers set up in a simple network. Computer 1 is the web server, which is running IS 5.0 and 1.1 .net framework.
>
>I found a "How To" article on creating a custom account to run asp.net. I followed the instructions and changed the user to my new CustomASPNET user. ASP.NET runs just fine under the new user. All of the COM and DataBase reads and writes work fine.
>I then created a CustomASPNET user on the 2nd computer and gave it the same password. I still cannot access the data on the 2nd computer.
>
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/secnetht01.asp
>
>I am connecting to foxpro free tables using vfpoledb. Please give an example of how to impersonate. The users are local to the given computer. I am not using domains.
>
>In my web.config, the connection string is:
>
><databases>
>    <add key="Patient\Connection" value="Provider=vfpoledb.1;Data Source=c:\gmg\main\"/>
>    <add key="Patient\DataAccessClass" value="DataAccessOLEDB" />
></databases>
>
> Changing Source=c:\gmg\main\ to h:\gmg\main, where h: is on the second computer, results in a runtime error: access denied.
>
>Regards and thanx,
>Neil
>
>
>
>
>>Your post is somewhat unclear.
>>
>>1. What kind of data?
>>2. How did you change the user from ASPNET?
>>
>>The short answer is to impersonate the aspnet user in the web.config to a windows user that you create on both machines, with rights to the proper areas.
>>
>>db
-----------------------------------------

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