When a web site is running under IIS it uses a local account named ASPNET or Network Services depending on the OS. In IIS you could also configure the site to "run as" a specific user.

Whichever account you use, it needs permissions to access network resources.