views:

201

answers:

1

I have 2 Windows 2008 R2 x64 servers NLB, ARR with shared configuration. I have the application files in a network share. ASP.net pages (.aspx) come up fine but no css,images,js work. I also have a .htm file shows css and images just fine.

In the iis log I do see a 401.3 message. So it seems to be permissions but not sure what else to configure permissions wise.

I read similiar issues at:

http://stackoverflow.com/questions/353726/mvc-iis7-css-issue#354938

http://serverfault.com/questions/70050/adding-a-virtual-directory-iis-7-5-windows-7-ultimate-x64/130322#130322

http://serverfault.com/questions/126978/iis-7-5-401-3-access-denied

I tried the suggested solutions - none seems to work (unless I missed something). Any advice is greatly appreciated!

+1  A: 

Okay here's what I did to resolve my issue.

  1. Since my app files are in a file share the Anonymous user account couldn't access them. This is because by default IUSR account is used for Anoymous user. In IIS->Site->Authentication set Anonymous Authentication to Application Pool Identity if you have created a custom app pool OR you can specify an account.

  2. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\caspol.exe -m -ag 1 -url "file:////\computername\sharename*" FullTrust -exclusive on