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 301929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:03:03+00:00 2026-05-12T07:03:03+00:00

When running a web in visual studio, the following line returns true. if (Membership.ValidateUser(Login1.UserName,

  • 0

When running a web in visual studio, the following line returns true.

if (Membership.ValidateUser(Login1.UserName, Login1.Password))

However, the moment I access the same code through a web, it returns false.

Same database, same computer, same web folder, the only difference is that when I’m running through debug in visual studio, it works and when I’m trying to access it through a web, it fails.

Thanks

  • 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-12T07:03:04+00:00Added an answer on May 12, 2026 at 7:03 am

    When you are in debug mode you are in the security context of the user you are logged in as.

    When you access over the web you may be in the context of the same user or the IIS anonymous user or the identity of the application pool depending on your configuration.

    If you configure IIS and web.config to use windows authentication and impersonate = true, you should get the same result.

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

Sidebar

Related Questions

When running one of my Visual Studio web performance tests, I noticed intermittent exceptions
I have SQL Server Express and Visual Studio Web Developer Express running on my
I get the following error pretty regularly when compiling in Visual Studio and running
I get the following error when running my Visual Studio 2008 ASP.NET project (start
I'm currently running Visual Studio Team System 2010 RC and I'm trying to get
When I create a ASP.NET Web Application (using .net framework 4) in visual studio
I was running my application in Visual Studio 2010 Application Server, but now I
Every time I run the Visual Studio setup I encounter the following error message
I am working in visual studio 2008 sp1 and trying to publish a web
I am running Visual Studio 2010 (as Admin), IIS 7 on Windows 7 x64.

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.