I have an ASP.Net application that reads files from a network folder and processes them. It is setup and running in Internet Information Services using a Managed Service Account. I don't have admin. to IIS but I went over this with the admin and it does run as the MSA.
When the web app tries to access the network files it causes an exception that states Access is denied to the file.
The web page configuration authentication is set to "Windows" and the folder and files in it have the correct MSA permissions set.
<system.web>
<authentication mode="Windows" />
...
</system.web>
There is one file in the Bin folder from my project named vwd.webinfo that was added that has this markup.
<?xml version="1.0"?>
<VisualWebDeveloper>
<iisExpressSettings windowsAuthentication="enabled" anonymousAuthentication="disabled"
useClassicPipelineMode="false"/>
</VisualWebDeveloper>
I'm trying to figure out why I am getting the access error. The folder and files have the MSA listed with read permissions.
Is there a setting on the ASP.Net application that I should change or set?
Thanks in advance for any assistance.
We got the application working. The IIS Admin ended up enabling Anonymous log in, and in the web.config file we removed the Windows Authentication statement.
<system.web>
<!-- <authentication mode="Windows" /> -->
</system.web>
I'm not 100% sure why enabling Anonymous log in worked, but it correctly reads the files now. The web application is running as a Group Managed Service Account.