amaters
amaters

Reputation: 2316

Application.Context.User not filled on request without .aspx

I have the following setup:

In my sitemap file I have certain urls with roles defined. :

<siteMapNode url="~/directurl" roles="Clients">
<siteMapNode url="~/directurl.aspx" roles="Clients">

When i make a request for both:

if (Application.Context.User == null)
{
    /* This is where the first request ends */
}
else
{
    /* This is where the second request ends */
    /* This is where they both should be */
}

What do I need to do so the User is filled?

Upvotes: 1

Views: 191

Answers (1)

PraveenVenu
PraveenVenu

Reputation: 8337

in IIS7. You need to add the below

<modules runAllManagedModulesForAllRequests="true">

read this blog

http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx

Upvotes: 2

Related Questions