Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7800941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:47:49+00:00 2026-06-02T00:47:49+00:00

I have an aspx page in C# under .net 4.0 developed in VS2010 on

  • 0

I have an aspx page in C# under .net 4.0 developed in VS2010 on my workstation that is in a domain called ‘DOMDEV’ trying to access a MS-SQL Server 2000 DE on a standalone W2K3 Std Edition SP2. My domain credentials are

user: DOMDEV\MyName
pwd: p@ssword

The MS-SQL Server 2K DE’s security is set to Windows authentication mode and CANNOT be changed to mix mode due to the company regulations.

My connection string looks like the following in the aspx’s web.config file:
Data Source=standAlone.myCompany.com\SQL01;Initial Catalog=db_001;Integrated Security=SSPI;

When I do a Ctrl-F5 in VS2010 on my workstation, the page executed well and pulled all data from the standalone server.

When I published the page to a Window Server 2K8 Enterprise and try to request the page through my IE 9, I got the error below:
Login failed for user ‘(null)’. Reason: Not associated with a trusted SQL Server connection.

Why does it work on my set without setting anything but not on the W2K8? What is the security info sent from my VS IIS different from the W2K8’s IIS7? The web site on W2K8 IIS7 is set to
Windows Authentication enabled
Anonymous Authentication enabled: Application Pool Identity

How/what can I do to configure the W2K8 to let IIS 7 works the way like the IIS on my set?

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T00:47:51+00:00Added an answer on June 2, 2026 at 12:47 am

    I played around with the IIS 7 setting and found the following configuration worked out well.

    Part I: Create a local user on the database server

    1. open Start > Administrative Tools > Computer Management
    2. expend Computer Management (Local) > Local Users and Groups > Users
    3. add a new user with the name you like (e.g. yourNewUser; pwd: 987poi!@)
    4. add the new user in the local (BUILD-IN) Administrator group
    5. nothing need to be set on the DB who is set to Windows Authentication mode

    Part II: Create a local user on the web server

    1. open Start > Administrative Tools > Server Manager
    2. expend the left navigation Server Manager (yourServerName) > Configuration > Local Users and Groups > Users
    3. add a new user with indentical information that you just did on the database server
    4. no extra setting/permission/groups needed (minimum rights). By default it is in ‘Users’ only

    Part III: Add permission to the .NET temp folder

    1. 32-bit: go to your X:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files folder, ensure the new user have write permission to the folder
    2. 64-bit: go to your X:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files folder, ensure the new user have write permission to the folder

    Part IV: Option 1: Configure the web server

    1. open Start > Administrative Tools > Server Manager
    2. expend the left navigation Server Manager (yourServerName) > Roles > Web Server (IIS) > Internet Information Services (IIS) Manager
    3. in the navigation (middle left) of the Internet Information Services (IIS) Manager, click on your web application
    4. in IIS section, double click ‘Authentication’ icon
    5. there are 6 settings in the Authenticaiton pane. By clicking on the name of the settings you will be able to enable/disable/edit them in the Action pane at the right. Set them as the following:

      • Anonymous Authentication – Enabled – Application Pool Identity
      • ASP.NET Impersonation – Enabled – Specific user: yourNewUser (987poi!@)
      • Disable the rest of them
    6. every time you publish the web app, you will need double check if the setting is still there

    Part IV: Option 2: Setup web.config file

    1. go to your web.config file of the web app you are publishing, ensure you have the following line in your system.web block

      < identity impersonate=”true” password=”987poi!@” userName=”yourNewUser” />

    2. this option doesn’t work on the local workstation’s IIS (at least it won’t work on mine.)

    Now request from a user’s workstation, the page will come up with the data needed.

    This solution also works on Windows Server 2003 w/ IIS6 with .net4

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.net website running under IIS6. In one .aspx page the user
I have a aspx page that has a UpdatePanel and a asp timer. the
I have a .aspx page that loads three separate .ascx controls to represent adding,
I have a aspx page (details page) that needs to be loaded in a
We have an ASP.Net app, that behaves strangely under IIS6. The app itself is
I have a aspx page that looks something like this: <table runat=server id=tblTEst> <tr
I have an aspx page with a few textboxes and a submit button. Once
I have an ASPX page .In the Top i am displaying 5 categories (Ex
I have an ASPX page with two RequiredFieldValidator and a button to go to
I have an aspx page showing lots of information in a tabular format on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.