Click here to Skip to main content
15,891,431 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Gridview with subheaders below.... Pin
Arun Jacob8-Apr-10 1:50
Arun Jacob8-Apr-10 1:50 
AnswerRe: Gridview with subheaders below.... Pin
sashidhar8-Apr-10 2:14
sashidhar8-Apr-10 2:14 
QuestionHelp with using SqlCacheDependency programmatically? Pin
Member 43208318-Apr-10 0:58
Member 43208318-Apr-10 0:58 
AnswerRe: Help with using SqlCacheDependency programmatically? Pin
Not Active8-Apr-10 1:32
mentorNot Active8-Apr-10 1:32 
Questioncheck session timeout Pin
alfhv7-Apr-10 22:45
alfhv7-Apr-10 22:45 
AnswerRe: check session timeout Pin
Dinesh Mani7-Apr-10 23:40
Dinesh Mani7-Apr-10 23:40 
GeneralRe: check session timeout Pin
alfhv7-Apr-10 23:45
alfhv7-Apr-10 23:45 
QuestionWindows Authentication Pin
Paul Unsworth7-Apr-10 22:39
Paul Unsworth7-Apr-10 22:39 
Hi Guys

I'm a bit of a newb to the joys of ASP.NET, and I have a bit of a problem...

I'm trying to use windows authentication with my app as it's intended for intranet.

I have the following in my main web.config:
<authentication mode="Windows"/>
	<authorization>
	<allow users="*"/>
	<deny users="?"/>
</authorization>


And I have the following in the config file of a directory that I only want certain users to see:
<configuration>
    <appSettings/>
    <connectionStrings/>
    <system.web>		
	<authorization>
		<allow users="unswortp"/>
		<allow users="HO\unswortp"/>			
	</authorization>
    </system.web>
</configuration>


My problem is the restrictions on the folder will not allow me to get into that folder when deployed to the IIS server, although it works fine on my development machine. I cant help but think that the Windows Credentials it is using are not on the local machine, but on the server, so once deployed to the server, I have no chance.

Am I doing something wrong? or is this just the way the windows authentication works in ASP.NET Apps?

Is there something else I need to set up?

Also, how would I pluck the Windows Username of the end user programatically?
oooo, the Jedi's will feel this one....

AnswerRe: Windows Authentication Pin
Dinesh Mani7-Apr-10 23:27
Dinesh Mani7-Apr-10 23:27 
GeneralRe: Windows Authentication Pin
Paul Unsworth9-Apr-10 0:15
Paul Unsworth9-Apr-10 0:15 
QuestionShape File Reader Pin
kjsl2k97-Apr-10 22:14
kjsl2k97-Apr-10 22:14 
Questionconversion Pin
Kissy167-Apr-10 21:14
Kissy167-Apr-10 21:14 
AnswerRe: conversion Pin
R. Giskard Reventlov7-Apr-10 21:24
R. Giskard Reventlov7-Apr-10 21:24 
GeneralRe: conversion Pin
Kissy167-Apr-10 22:06
Kissy167-Apr-10 22:06 
AnswerRe: conversion Pin
Dinesh Mani7-Apr-10 21:39
Dinesh Mani7-Apr-10 21:39 
GeneralRe: conversion Pin
Kissy167-Apr-10 22:04
Kissy167-Apr-10 22:04 
Questiondll resource and w3wp.exe memory leak Pin
swjam7-Apr-10 20:56
swjam7-Apr-10 20:56 
Questiongridview paging problem Pin
developerit7-Apr-10 20:36
developerit7-Apr-10 20:36 
AnswerRe: gridview paging problem Pin
Arun Jacob7-Apr-10 20:45
Arun Jacob7-Apr-10 20:45 
GeneralRe: gridview paging problem Pin
developerit7-Apr-10 21:11
developerit7-Apr-10 21:11 
AnswerRe: gridview paging problem Pin
Blikkies7-Apr-10 21:47
professionalBlikkies7-Apr-10 21:47 
GeneralRe: gridview paging problem Pin
developerit8-Apr-10 0:00
developerit8-Apr-10 0:00 
GeneralRe: gridview paging problem Pin
Blikkies8-Apr-10 2:52
professionalBlikkies8-Apr-10 2:52 
GeneralRe: gridview paging problem Pin
Sunil Scaria8-Apr-10 2:35
Sunil Scaria8-Apr-10 2:35 
AnswerRe: gridview paging problem Pin
Tej Aj8-Apr-10 3:48
Tej Aj8-Apr-10 3:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.