Macnique
Macnique

Reputation: 1034

Deploying a web application on the IIS 5

I am in the process of deploying a web application on IIS5 on my server which runs windows XP.So when i run my application in visual studio its perfect.But when i deployed it into IIS it throws me an error saying that the access denied to a particular file.

My app reads a xml file based on the input(which is nothing but the other system in the network).As i browsed to the properties of that file manually and unchecked the read only attribute,still it dint work out.Can any one guide me to the proper solution ?

Upvotes: 1

Views: 577

Answers (3)

Brad
Brad

Reputation: 163612

You mention that you are using basic auth...

Generally, the web application will then impersonate the user logged in.

So, if your file isn't accessible by the user that logged in, then it won't be accessible to the web application impersonating them on the system either. You will need to check the permissions of those files and set them accordingly.

Upvotes: 1

YetAnotherDeveloper
YetAnotherDeveloper

Reputation: 846

you might have to give read/write (if needed) to following users:

  1. iis_wpg
  2. network service
  3. aspnet

Upvotes: 1

Joel C
Joel C

Reputation: 5567

In IIS, your site runs under the credentials of the application pool assigned to it. You can either change the credentials of your application pool to an account that has permission to access that file, or else grant access to the default account that the application pool is currently using.

Upvotes: 1

Related Questions