Login failed for user 'IIS APPPOOL\ASP.NET v4.0'

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
2/10/2012 11:28:49 PM
Gravatar
Total Posts 148

Login failed for user 'IIS APPPOOL\ASP.NET v4.0'

Hi:

I'm trying to install mojoPortal on my local version of IIS 7.5   I created a database using Windows Authentication.  My connection string looks like this:

 <add key="MSSQLConnectionString" value="Data Source=.;Initial Catalog=mojoPortalIIS;Integrated Security=True;Pooling=False;" />

mojoPortal returns the error,

Login failed for user 'IIS APPPOOL\ASP.NET v4.0'

I don't know if IIS is causing this error by trying to login as IIS APPPOOL\ASP.NET v4.0 or mojoPortal.  I am using Windows Authentication...shouldn't IIS login using my Windows credentials?

 

 

2/11/2012 12:25:07 PM
Gravatar
Total Posts 2239

Re: Login failed for user 'IIS APPPOOL\ASP.NET v4.0'

No, IIS will use the identity of the application pool to authenticate to any resources. You need to create a sql user for the application pool identity and grant it permission to your database.

HTH,
Joe D. 

2/13/2012 12:39:09 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Login failed for user 'IIS APPPOOL\ASP.NET v4.0'

As it says in Step 5 of the manual installation recipe guide, you need to make sure your SQL Server instance is configured for mixed mode authentication, and use a SQL Server user in the connection string for the database.

You must sign in to post in the forums. This thread is closed to new posts.