473,511 Members | 15,081 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Uploading web service

I am making a web service which accesses a shared directory on the netwoek to
upload a file there. Here comes the problem, When I use impersonation and
give the userName & password of an authenticated user, then it works fine but
when I impersonate, using ASPNET account of the machine where web service is
being hosted then the whole uploading process fails. As, it also exposes the
password in clear text format, it is also not acceptable. Also, if I make a
group on the machine where directory is shared, then again I cannot add the
ASPNET user account of the machine where web service being hosted, in that
usergroup.

So is there any solution for the above problem? All the suggestions and
queries are welcome.
--
Thanks & Regards,
Ramesh
Nov 23 '05 #1
1 1319
You can still impersonate, but use one account -- domain or local, which has
access to the network share. You can encrypt the username and password and
store it in registry using aspnet_setreg utility. Here's the info:

http://support.microsoft.com/default...b;en-us;329290

Hope that helps.

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"Ramesh Chawla" <ra*******@rediffmail.com> wrote in message
news:71**********************************@microsof t.com...
I am making a web service which accesses a shared directory on the netwoek to upload a file there. Here comes the problem, When I use impersonation and
give the userName & password of an authenticated user, then it works fine but when I impersonate, using ASPNET account of the machine where web service is being hosted then the whole uploading process fails. As, it also exposes the password in clear text format, it is also not acceptable. Also, if I make a group on the machine where directory is shared, then again I cannot add the ASPNET user account of the machine where web service being hosted, in that
usergroup.

So is there any solution for the above problem? All the suggestions and
queries are welcome.
--
Thanks & Regards,
Ramesh

Nov 23 '05 #2

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

Similar topics

2
1897
by: Andy Johns | last post by:
I've seen plenty of examples of file uploads in ASP.NET when the only form element is the file input type, but I've not seen a practical example of a file upload routine running alongside other...
0
1387
by: wym | last post by:
I have written a web service that provides the following methods: UploadFile SetNTFSSecurity Their purpose is to allow a user to Upload a file to a shared folder with "Everyone" as permission...
0
1111
by: Nikolay Petrov | last post by:
I need to upload big files to a web service. At client side I use the FileInput contol to get the local filename and then a binary reader to get file contents as byte array, then send this byte...
4
1782
by: Craig HB | last post by:
I have an Access 2002 database that uploads data into a SQL Server 2000 database using DTS. Each upload includes 5 tables of up to 1000 rows. This is a weekly upload that takes place in about 250...
2
2722
by: Kausar | last post by:
Hello All, I want to know how to scan the files before uploading it to the server in ASP.NET 2.0 application. One work arround i thought is to allow to upload in some temporary folder then sacn...
4
1381
by: Rob Meade | last post by:
Dear all, We have purchased a product called SA-FileUp which we have used in our organisation for a number of years, I'm quite an an avid supporter of it, recently I've been trying to ensure...
1
4402
by: WeCi2i | last post by:
Okay, I have a problem that has been stumping me for weeks. I have tried many different solutions and this is pretty much my last resort. I have seen a lot of good answers give here so I figured I...
0
2180
by: Raj | last post by:
Hello, I am planning to provide the Pause/Resume while uploading files. Our site is using both java applet and activex to do this. The list of selected files will be stored in an encrypted...
1
2833
by: Faisal Shafiq | last post by:
I want to upload a file direct to the Silverlight Streaming Service from a Web Client such as silverlight application. As per our product requirement we want to upload a .WMV file directly from...
0
7252
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
7371
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,...
1
7093
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
5676
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
5077
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
4743
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
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1583
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.