473,408 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Accessing a network resource/file fails thru asp.net and interop dll

Hi all,

I have written a class to set the current principal identity of a asp.net 1.1
vs 2003 project to a domain user by means of LOGONUSER, which effectively
lets me access files on another computer, due to the fact that the asp.net
pages run under the ASPnet account. This basically means that the process is
running under my domain/user account.

Accessing a file \\server\folder\file.txt via this method and then calling
Context.undo works 100%! Awesome.

But I have to access files via unc through a delphi dll which then connects
to FoxPro files. So effectively what is happening is that I am calling

//begin code
DelphiComponent.class obj = new DelphiComponent.class().

obj.Connect(szPathToData)
//end code.

problem is the DLL is not able to see the folder, so I'm assuming that an out
of process call is being made, which is defaulting to run under the
machine/aspnet account so its not able to access the network resource.

I must use the DLL, its not negotiable...

Any ideas on how I can tackle this?
Thanks in advance
Q

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...p-net/200610/1

Oct 24 '06 #1
1 1319
I don't know much about Delphi but....

You may be able to wrap the dll into a COM + application. You can then
run the component using a different identity. It is a long shot, but it
may be worth a try...

HTH

quintesv via DotNetMonster.com wrote:
Hi all,

I have written a class to set the current principal identity of a asp.net 1.1
vs 2003 project to a domain user by means of LOGONUSER, which effectively
lets me access files on another computer, due to the fact that the asp.net
pages run under the ASPnet account. This basically means that the process is
running under my domain/user account.

Accessing a file \\server\folder\file.txt via this method and then calling
Context.undo works 100%! Awesome.

But I have to access files via unc through a delphi dll which then connects
to FoxPro files. So effectively what is happening is that I am calling

//begin code
DelphiComponent.class obj = new DelphiComponent.class().

obj.Connect(szPathToData)
//end code.

problem is the DLL is not able to see the folder, so I'm assuming that an out
of process call is being made, which is defaulting to run under the
machine/aspnet account so its not able to access the network resource.

I must use the DLL, its not negotiable...

Any ideas on how I can tackle this?
Thanks in advance
Q

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...p-net/200610/1
Oct 24 '06 #2

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

Similar topics

36
by: Thomas | last post by:
after spending countless hours trying, i give up and hope to get some help in here. on server1 i got the web myweb.com with my test.asp. in the test.asp, i'm trying to read a file from an UNC...
1
by: srivalli chavali via DotNetMonster.com | last post by:
Hi, I have a question regd. Windows authentication and network file access. My asp.net application doesn't use any of the .NET's authentication schemes (Forms, Windows or Passport) yet. I have...
1
by: Daniel | last post by:
If my System.IO.StreamWriter Write method throws "The specified network name is no longer available." and I try to Dispose or Close it in the finaly clause the close or dispose method just throws...
2
by: Steve M | last post by:
I am having a really strange problem. I have a site setup in a virtual directory that fails with the error below. It works on other web servers that are network load balanced with this server. I...
7
by: David Laub | last post by:
I've also posted this issue to a Sun/java formum, but since it appears to be an integration issue, this may be the better place to posr: I have written a dot net/c# Web Services doesn't fully...
8
by: Ben Fidge | last post by:
Hi I have a small WinForms app that needs to copy files from a shared drive on a network. If I connect to the mapped drive using Explorer, a password dialog pops-up and I have to provide...
0
by: =?Utf-8?B?Q29saXZpZXI=?= | last post by:
If anyone can help me with this I would really appreciate it: I have an assembly into which I have linked a manifest file as a Win32 resource. This is necessary since I want to use a class in this...
4
by: accyboy1981 | last post by:
Hi, I'm looking to create a simple application that will copy files from a folder on one PC on the network to another PC on the network but I am having a bit of difficulty doing this. The...
1
by: Bhrionn | last post by:
Hello World, I am working on implementing a build for my companies application. The scenario implemeted is producing the error: ‘Class does not support automation or does not support expected...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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
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...

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.