473,480 Members | 1,523 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Access Network Share with ASP.NET

Accessing Network Share with ASP.NET
FILESERVER1 (file server)
E:\WWWexport\
Shared as WWWExport

WEBSERVER2 (webserver)
I created virtual directory to
\\FILESERVER1\WWWExport\
When creating the virtual dir named "ReportExport" , I gave "connect as"
rights as a domain user with full rights to the share.
Response.Write(Server.MapPath("ReportExport"))

Returns

\\FILESERVER1\WWWExport

as expected.
IO.Directory.CreateDirectory(Server.MapPath("Repor tsExport") & "\TEST")

Returns

Could not find a part of the path \\FILESERVER1\WWWExport.
Seems to be a permission thing of local ASPNET user, but why does it not
access the share as the domain user I specified the Connect As in the
virtual dir setup?

Is there any way to give the user WEBSERVER2\ASPNET permissions on
FILESERVER1 ?

It appears that I could solve this by specifying the impersonate user in
web.config but I don't want my entire app to run as that domain user.

Suggestions?

Thanks,

-Steve


--

Thanks for registering online with BikeReg.com!

-Steve Roszko
sr*****@BikeReg.com
Pioneer Registration Services, LLC
Sport Specific Online Event Registration Services
www.BikeReg.com <http://www.BikeReg.com>
www.SkiReg.com <http://www.SkiReg.com>
www.RunReg.com <http://www.RunReg.com>
www.PioneerReg.com <http://www.PioneerReg.com>
Nov 17 '05 #1
0 1515

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2335
by: Namratha Shah \(Nasha\) | last post by:
Hey Guys, Before we start with our sample app we need to view the security configuration files on the machine. You will find them under <drive>\WInNT\Microsoft.NET\FrameWork\<version>\Config ...
4
5894
by: Scott Nicholson | last post by:
I've got a site set up that uses a network share as it's home directory. Simple stuff is working fine. When I try to put a database in there, though, I run into problems. I'm using: dim...
2
4204
by: egoldthwait | last post by:
I need to convert a 17mb access 2000 db to Oracle and house it in a Citrix farm. The issue: we have never converted an Access Db to Oracle but can probably use Oracle's Workbench to assist with...
6
6243
by: onnodb | last post by:
Hi all, While working on an Access UI to a MySQL database (which should be a reasonable, low-cost, flexible interface to the DB, better than web-based, much less costly than a full-fledged .NET...
3
8161
by: =?Utf-8?B?Q2hyaXN0aWFuIGZyb20gRnJhbmNl?= | last post by:
I want to write an aspnet aspx page This page : 1 - Connect to a net share \\server\c$ with credentials: user/password 2 - Read Directory info of this share 3 - Write these infos in the...
0
7044
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7084
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6739
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5337
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4779
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4481
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2984
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
181
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.