473,395 Members | 2,467 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,395 software developers and data experts.

Can not access remote files from WebService

My solution has ASP.NET app , .NET dll and a Web Service .
The ASP.NET application calls to WebService’s methods , which calls
the dll’s methods .
One of the functions of the dll is accessing files , which are located
on different computer. The path is UNC path and it exists . It has the
following code :

If My.Computer.FileSystem.FileExists(Path) Then
‘ read the image
End if

If the application is run directly from Visual Studio 2008 , it works
just fine and the FileExists returns true.
However, the same code running on the same machine under IIS fails.

When I had problems accessing some files on local machine before , I
simply assigned ASPNET user to those directories , and it worked
fine .

However, since the files that should be accessed in the dll are
located on different machine, I can not do this .
I believe this is something to do with permissions.
It looks like I need to use ASP.NET impersonation. Is that right ? Is
there any good totorial explaining ALL steps that should be done ?
I found out that I need to add the “identity” line in my Web.Config .
I did it as following , but it didn’t help :
<configuration>
<system.web>
<identity impersonate="true" userName="my user name" password="the
user password"/>
</system.web>
</configuration>

My questions are :

What should I do in addition to writing this “identity" line in
Web.Config ?
I use FORMS ASP.NET authentication . Is that OK ?
What IIS Authentication should I use? Where I define it ?
If I use impersonation, what user name should I use? Where it should
be configured and what roles / permissions it should have?
Should it be domain user? Local User?
What config files should I change ( Web.Config , Machine.config ?
Something elase ? )
Any advices would be appreciated !!!!

Thanks , Orit .
Aug 8 '08 #1
0 1634

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

Similar topics

6
by: John | last post by:
Hi We have an access app (front-end+backend) running on the company network. I am trying to setup replication for laptop users who go into field and need the data synched between their laptops...
3
by: Lyle Fairfield | last post by:
In a recent thread there has been discussion about Data Access Pages. It has been suggested that they are not permitted on many or most secure sites. Perhaps, that it is so, although I know of no...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed...
3
by: todd_groten | last post by:
Alright, I've been searching around for some time and have not been able to find anything concrete on fixing an issue I am having. Here's the situation: 1) I have a non-anonymous webservice...
1
by: Duffman | last post by:
Hi, I have what seems to be a common problem, but the solutions I've found don't seem to work. I would like to use a web service to create a file at a UNC location in a shared file. Currently...
1
by: Thom Little | last post by:
I have a simple web service that requires no input and returns a character string. I created the service and FTPd it to a remote server. The .dll to the .bin directory and the single .asmx file...
0
by: Tim Bücker | last post by:
Hello everyone, i?ve got a very insistent problem trying to get remote debugging running. Really hope that someone has any ideas about this topic. Although the MSDN and some popular search...
2
by: Pepi | last post by:
Hi! I'm playing with WebServices in C# and when I test my project it works on machine where is webservice, but when I want to access to same webservice from remote machine in my local network it...
2
by: | last post by:
Hi all, I have an asp.net 2.0 website that accesses a locally hosted web service. This works fine on servers that are connected to our network. However, I am having a problem with a laptop...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
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,...

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.