473,498 Members | 1,741 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Saving a file on a network folder from ASP.Net Web application

Hi All,

Is it possible to save a file on a network folder from a web application which is developed in ASP.Net.

I tried mapping a network folder on the server and tried to save a file on that mapped folder. I am getting error as :
"Logon failure: unknown user name or bad password. "

Please help me to resolve this problem.

Thanks,
Vani
Nov 18 '05 #1
1 4354
ASP.NET web applications run under specific user account,
and so deligating security context of that user (usually ASPNET).
"Logon failure: unknown user name or bad password. "
The user which is running your ASP.NET web application may
not have permissions to access the share.

Have a look at: http://support.microsoft.com/?id=317012#3 and
http://support.microsoft.com/?id=317012#5b

You can impersonate your application to run under an account
which has permissions to access certain resources:
<identity impersonate="true" username="domain\username"
password="password" />

This way when you application attempts to access another resource
that requires authentication, the username and password specified
here are used to authenticate for that resource. Storing passwords
in clear text is a security issue, read more here:
http://support.microsoft.com/?id=329290

--
Hope this helps,
Zeeshan Mustafa, MCSD
"Vani" <Va**@discussions.microsoft.com> wrote in message
news:C1**********************************@microsof t.com... Hi All,

Is it possible to save a file on a network folder from a web application which is developed in ASP.Net.
I tried mapping a network folder on the server and tried to save a file on that mapped folder. I am getting error as : "Logon failure: unknown user name or bad password. "

Please help me to resolve this problem.

Thanks,
Vani

Nov 18 '05 #2

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

Similar topics

9
2018
by: RooLoo | last post by:
Hey all! Using VB.Net... How can I save the font properties of a textbox to an ASCII file and later read the file and apply the properties back to the textbox? Users use multiple workstations,...
5
327
by: helpful sql | last post by:
Hi all, I dynamically generate Word Documents from my web application using XmlDocument object and need to save them on a mapped network drive. I use the Save method of XmlDocument object to save...
5
4779
by: Rosa | last post by:
Hi, I'm experiencing a bit of a problem with security and file access from within a ASP.Net application... Locally (from an XP client) I manage to get any file or folder on my machine with...
1
1478
by: Yama | last post by:
Hi Is there a way using an Intranet ASP.NET web application to access a text file from a specified folder The Logic ReadTextFile.asp ------------------- FILE =...
5
5258
by: Baren | last post by:
Hi! I am using impersonate="true" to upload and download files from a network share. I have created common users on both the webserver and the file server. The user has permission to the...
4
2467
by: Dixie | last post by:
I want to send a file to each persons home network space. I believe that when a person logs onto a network, some sort of variable is set that identifies the user. Is there any code that would...
2
2413
by: Michael | last post by:
We have an ASP.NET 2.0 web application running on a Windows 2003 domain controller. Part of that application needs to read and write files from and to a network share ( living on a MAC Xserveraid)...
5
4619
by: Eugene Anthony | last post by:
ds1.Tables.Rows.ItemArray.GetValue(0).ToString() contains the string path: images/5/Video1/qbert.flv if (File.Exists(ds1.Tables.Rows.ItemArray.GetValue(0).ToString())) { //code to execute } ...
0
7125
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,...
1
6885
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
7379
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
5462
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
4908
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
4588
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
3081
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1417
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
656
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.