I have a page which requests info from a number of machines and whenever I try to do this I get an 'access is denied' error message. How do I change the account that my page is using to one which actually has access to the machines.
Thanksthere is not really a straight-forward answer to this.
if all of these servers are on the same domain, then you will ba able to impersoninate a common user in the web.config ..
<identity impersonate="true" userName="domain_name\user" password="password"/
make sure this user has the appropiate permissions on all the folders your are trying to access.
by default, the ASP.NET Machine Account is used for all requests.
psi
thanks psi
see if the framework and/or the ASP.NET Machine Account is on all machines ... if it is, and all the servers are on the same domain, you should be able to set the service to network service ...
psi
Is there any other way I could do this? There is a single account on the domain that I can use but its password is changed frequently and it is a account which my boss would prefer not to have hard-coded into the web.config file.
Thanks again,
Tomas
0 comments:
Post a Comment