Do you have the database user name and password correctly in your connectionstring, if you are using integrated authentication it will useMACHINENAME\ASPNET which is a localaccount