i m saving the dataset as a xml file.it writes the file on my local machine but i want to write it on any machine in the intranet by giving the ip address.
But when i tries to save it on any other machin i get this error "System.IO.IOException: The referenced account is currently locked out and may not be logged on to"
What i need to do??do i need to give the aspnet account admin rights??but i dont know how to do that??
thanks in advance.
if this post helped you then pls mark this as Answer.
ASPNet service account by default doesn't have right to Network resources. You can give the account the rights which is not recommended for security or use impersonation just to read/write files from Netwrk. Following link discusses all the options in detail
.....
roh_8_it_3
Member
724 Points
159 Posts
writing files
Jun 20, 2005 09:45 PM|LINK
i m saving the dataset as a xml file.it writes the file on my local machine but i want to write it on any machine in the intranet by giving the ip address.
But when i tries to save it on any other machin i get this error "System.IO.IOException: The referenced account is currently locked out and may not be logged on to"
What i need to do??do i need to give the aspnet account admin rights??but i dont know how to do that??
thanks in advance.
JawadKhan
Contributor
5370 Points
1066 Posts
Re: writing files
Jun 21, 2005 03:17 AM|LINK
http://west-wind.com/weblog/posts/1572.aspx
roh_8_it_3
Member
724 Points
159 Posts
Re: writing files
Jun 21, 2005 02:21 PM|LINK
First i included the aspnet in the admins group but no success.i was still not able to write any files on other machine in the network.
Then i changed the web config file with this information
<system.web>
<
identity impersonate="false" userName="domainname\username" password="password" /></syetem.web>
but still its saying that access to the path is denied but using this username and password i can access the network machine.
Also i tried to check the value for user.identity.name but its not showing me anything.
Any help on this pls
roh_8_it_3
Member
724 Points
159 Posts
Re: writing files
Jun 21, 2005 03:24 PM|LINK
got it working with impersonate="true" but i still dont know why it doest show anything for user.identity.name??
thannks to all.