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

  • Home
  • SEARCH
  • 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 6014305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:40:22+00:00 2026-05-23T02:40:22+00:00

I’ve a really strange problem getting IIS7 to connect to Sql2008. First, using the

  • 0

I’ve a really strange problem getting IIS7 to connect to Sql2008.

First, using the default web server in VS2010, in a HTTPModule I load a connection string from the web.config, and access the database. Works good. (Connection string uses Integrated Security = SSPI)

But because the website has some #includes, I need to debug it in IIS, so I switched from the default web server to IIS. Everything else is the same. However, when I try to open the same SqlConnection in the HTTPModule, I find that the credentials supplied are not the users, but rather the machine name.

Environment is Virtul Machine; Windows 7 64 bit; IIS7; VS2010; SQL2008

Can anyone give me any idea where or how this is being set?
Thx

  • 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-05-23T02:40:23+00:00Added an answer on May 23, 2026 at 2:40 am

    When you run your application in Visual Studio, the application runs as “you”. If you’re credentials are sufficient to connect to the database, then using Integrated Security you’ll be able to log in.

    When you move over to IIS, IIS runs the process under a different identity depending on your configuration (but most likely not “you”). You have several options:

    1) Give the default user IIS is running under permission to access the database (not recommended)

    2) Configure IIS to run your application as “you”, or as a dedicated user configured specifically to run your process.

    http://technet.microsoft.com/en-us/library/cc771170(WS.10).aspx

    3) Don’t use integrated security, use SQL security.

    Here is an article that describes how you can figure out what user IIS is running under.

    http://blogs.iis.net/davcox/archive/2009/08/12/what-is-my-iis-code-running-as.aspx

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
We're building an app, our first using Rails 3, and we're having to build
I'm making a simple page using Google Maps API 3. My first. One marker
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Seemingly simple, but I cannot find anything relevant on the web. What is the
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
Does anyone know how can I replace this 2 symbol below from the string

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.