User'iis apppool \ ASP. NET v4.0 'error in iis7 Solution

Source: Internet
Author: User
Tags stack trace

How
To fix login failed for user 'iis apppool \ ASP. NET v4.0 'error in iis7

Today, we use Silverlight 4 to call the ADO. NET data service (using Windows Integrated Identity Authentication). The ADO. NET data service is on iis7.5 under Windows 7, and the title error is displayed. I did not study it for a long time, So Google found that there is only a solution in English. The error message is as follows:

Login Failed for user 'iis apppool \ ASP. net v4.0 '. description: An unhandled exception occurred during the execution of the current Web request. please review the stack trace for more information about the error and where it originated in the code. exception
Details: system. Data. sqlclient. sqlexception: Login Failed for user 'iis apppool \ ASP. NET v4.0 '.

 

In fact, you can change the connection ID of the application connection pool in iis7.5 to LocalSystem.

The solution for the original English version is as follows:

Here's a step-by-step guide to determining your websites application pool, then changing its process model idenitty in iis7:

  1. Open Internet Information Services (IIS) manger.
  2. In the connections sidebar, drill down into default web site and click on your website.
  3. Now in the actions sidebar (on right side), click on advance
    Settings... In the popup box, under general you will see your application pool listed for your website (in my case the app pool is: ASP. NET v4.0 ).
  4. Click Cancel... if you choose, you can change the application pool here, but for the sake of this example we just wanted to find out what the website's app pool was.

Now that we know the application pool that is configured for are website, we now want to change the app pool's (Process Model) identity to 'networkservice', here's how:

  1. Open Internet Information Services (IIS) manger.
  2. In the connections sidebar, click on Application
    Pools.
  3. Now right-click on theapplication pool that your website is using (in this case my site is using the ASP. NET
    V4.0 application pool), and select Advanced Settings... from the menu.
  4. In the advanced settings pop-up box, locate the process model-> identity section and click on the application pool identity.
  5. In the application pool identity pop-up box, change the built-in account to NetworkService (or
    If you want LocalSystem), then click OK, and
    Click OK again to save your advanced settings changes.

After changing the application pool's identity to NetworkService (or LocalSystem) You shoshould now be able to get your asp. Net Site to run successfully on a iis7 Web Server:

The following is a step-by-step guide to determine your website application pool and then change its process model idenitty in iis7:
Open the Internet Information Service (IIS) manager.
In the connection sidebar, drill down to the default web site and click your website.
Now in the Operation column (right side), click Advanced Settings... in the pop-up box, you will see your application pool listed for your website (application pool, in my case: Asp.. Net v4.0 ).
Click "cancel"... if you choose, you can change the application pool here, but for this example, we just want to find out what the application pool for the website is.
Now we know that it is the application pool configured for the website. Now we want to change the identity of the (Process Model) application pool "network service". What is this:
Open the Internet Information Service (IIS) manager.
In the connection sidebar, click "application pool.
Right-click theapplication pool on your website (in this case, my website uses ASP. net4.0 application pool) and select "Advanced Settings... from the menu.
In the Advanced Settings dialog box that appears, locate the process model-> identity section and click the application pool ID.
In the application pool ID pop-up box, change the NetworkService of the built-in account (or if you want to LocalSystem), click OK, and click OK again to save and change the advanced settings.
After changing the identity (or local) of the network service application pool, you should now be able to get the iis7 web server running successfully on your asp. NET Website:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.