views:

44

answers:

1

i asked this question which allowed me to capture user by using:

string userName = this.HttpContext.User.Identity.Name;

in my controller code.

One issue i have is that when testing in visual studio it shows up as an empty string. I want to track this field for my testing.

Is there anyway to have this work in the local ASP.net webserver process on my machine so it it will mimic windows authentication on my server ??

A: 

Run application under IIS and set windows authentication in web.config.

    <authentication mode="Windows">
dario-g
i added the actual line in web.config to be explicit but thanks for pointing me in the right direction
ooo
No problem :)))
dario-g