title: Webpage works in VS 2012, but doesn't work correctly in IIS
body: <p>I have been tasked with updating some internal webpages from needing users to login every time with the domain account, to be able to use Single Sign.</p>
  
  <p>A person here before me, added some code into one of the sites, but never fully implemented it, so I have picked up the baton to finish this.</p>
  
  <p>I have three sites to update. using DotNetOpenAuth.Core, (As this has already been used for another site that was done).</p>
  
  <p>When I make the changes in VS, this works, using my login, I can run the site in IE and no login box comes up, it takes me straight to the first page.</p>
  
  <p>I am local admin on my machine, so I add a new webpage to IIS, V4.0 Application pool in integrated moce.
  Windows Authentication in both the web.config and the page, yet, it always gives me the actual login page rather than bypassing it.</p>
  
  <p>I have spent a few days looking round, and have read many posts about checking the Authentication mode, and other bits, but still nothing seems to stop this from happening.</p>
  
  <p>I have gone back to the start today, and deleted everything I had done, I had taken a back up pre making any changes), and have started on this making the same changes, and one at a time testing them, and, as before while it works fine in VS, not giving me a log in page, when I run it in IIS, it always does.</p>
  
  <p>Does anyone have an experience they have had with a similar issue, and how did they solve it.</p>
  
  <p>The stupid thing about this, is out of the three I have changed, one has worked, yet, I made all the same changes.</p>
  
  <p>I can't fiddle around with the host file, as the server this will be going on ruins a number of sites, all of which are used within the business on a daiy basis, I also can't make base changes to entity framework, again some of the sites have older data in so cannot be changed, which is some of the suggestions I have read.</p>