473,587 Members | 2,479 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 1326
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*******@redi ffmail.com> wrote in message
news:71******** *************** ***********@mic rosoft.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
1900
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 form elements, e.g. a text box for a description for example. If the form is being posted in multipart format then the text coming through will need to be converted first, won't it? The other issue is that if the form is posted, and the...
0
1391
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 and using SetNTFSSecurity, allow for tighter security on the files (remove the propagated "Everyone" from parent folder and add specific users to the ACL.
0
1113
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 array to a web service. The problem is when uploading big files(100mb+). When using the binary reader it stores them in client memory. All you know the result. I can read small parts of the file using the seek method of the stream, provided by...
4
1787
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 sites. I am investigating using web services instead of DTS and want to find a few things about uploading data with web services. 1. will it be significantly slower than DTS ? 2. can it handle uploads of 1000s of rows ? 3. how do I upload the...
2
2726
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 it on server but i think it's not the right way coz the infected file will also get uploaded. so, i want to know is there any way to do it on client-side? if it's there how to do it? can a javascript check the any antivirus say Norton service is...
4
1385
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 some of our older applications which used native .Net uploading moved across to our .Net implementation of SA-FileUp. Because there is development time involved in this I have now been asked by my manager to "test" both native and SA techniques to...
1
4409
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 would give it a try. First of all, I am using Visual Studio 2005 to write my program. I am using C# .NET as the language. I am running Windows XP Professional with all service packs and updates applied. Now, I have been trying to write a...
0
2191
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 file using SHA256 (I have taken the code from: http://www.vbforums.com/showthread.php?s=&threadid=232284)
1
2841
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 silverlight client to Silverlight streaming service. I tried to user WebClient and HttpWebRequest for that purpose but, unfortunately I can found the way to do so. There are some problems with both classes. 1. There is no property of get...
0
7852
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8216
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8349
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7974
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8221
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6629
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5395
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
1455
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1192
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.