I have an IIS 7.5 server with a number of applications in a single Application Pool. Some of these applications access a SQL Server 2008 R2 Filestream on a remote machine, on the same domain.
The application pool runs with ApplicationPoolIdentity identity, and everything works fine. Now I have the need to move a couple of these applications to a new Application Pool. The problem is, even if I create the new Application Pool with the same settings, I'm unable to access the FileStream and I get the infamous 'Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON''.
The problem is not the configuration of the SQL Server or of the machine IIS is running on, otherwise I wouldn't be able to access the server from the other pool. On the other side, the two pool seem to be configured identically. If I set the identity of the new pool to Network Service the error disappears.
What am I missing ?
Edit: I'd like to add that there is a single site running on IIS that run all the Applications and Application Pools. In the Authentication page of the site, all entries are disabled (ASP.NET Impersonation, Forms Authentication, Windows Authentication...), except for Anonymous Authentication. The application that run on the server are solely Web Services.