Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Change the credential in C# web application

Posted on 2009-04-16
3
Medium Priority
?
332 Views
Last Modified: 2012-05-06
Hi,
I have a C# web application running on sever A. After the user updates his password, this application needs to create a text file on sever B. Then another application will read this text to excute some windows jobs.
As I know the account run the C# web application is the sever A machine account "ASPNET". We can't make this account have the right to write a file on server B. Is it possible I can change the credential to a windows account so the application can write a file on server B?

Many Thanks,
0
Comment
Question by:Jinghui Li
3 Comments
 
LVL 33

Assisted Solution

by:Todd Gerbert
Todd Gerbert earned 200 total points
ID: 24161940
I think you can add an <indentity impersonate=userName password=thePassword /> to your web.config.

I find identities a little confusing under ASP.Net, so I could be wrong...
0
 
LVL 12

Assisted Solution

by:williamcampbell
williamcampbell earned 200 total points
ID: 24162711
In the folder where the text file is to be created on "B"  give NETWORK_SERVICE full rights

0
 

Accepted Solution

by:
Jinghui Li earned 0 total points
ID: 24304898
Actually we give the machine account the right to access that folder and it works.
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Loops Section Overview
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question