Print Page | Close Window

Windows Authentication

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2680
Printed Date: 26-Jan-2026 at 2:50pm


Topic: Windows Authentication
Posted By: mseeli
Subject: Windows Authentication
Date Posted: 17-May-2011 at 2:33am
I have been struggling for days now trying to get windows authentication to work in my Silverlight application.

Here are the steps I took:

Create a new solution with the DevForce Business Application template.
Set authentication mode to Windows
Test in VS 2010 - works fine - user is automatically logged in 
Delete all references to roles and profile out of the web.config
Delete Folder AppData  (at the moment I dont need roles and/or profile)
Test in VS 2010 - works fine  - user is automatically logged in 

Copy the Web Project onto a Server 2008 R2 with IIS (7.5)  running
Open a Browser on the server and calling up the website 
Application starts fine but the user is not logged in 

Playing around with IIS settings for hours (Enabling/Disabling Anonymous Authentication, ASP.Net Ipersonation, Windows Authentication etc etc etc

Can you tell me how to get this simple example to work?



Replies:
Posted By: mseeli
Date Posted: 17-May-2011 at 2:58am
I got it to work with 

http://drc.ideablade.com/xwiki/bin/view/Documentation/code-sample-custom-server-configuration#HAcceptWindowscredentialswhenusingWindowsAuthenticationinIIS - http://drc.ideablade.com/xwiki/bin/view/Documentation/code-sample-custom-server-configuration#HAcceptWindowscredentialswhenusingWindowsAuthenticationinIIS

Thanks



Print Page | Close Window