Home > DeveloperSection > Forums > Application.Context.User not filled on request
Ashish Pandey

Total Post:128

Points:898
Posted on    September-02-2014 12:26 AM

 ASP.Net
Ratings:


 1 Reply(s)
 594  View(s)
Rate this:

I have the following setup:

IIS 7.

using the url rewrite module from UrlRewritingNet

A custom IHttpModule which authenticates requests

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 */

}

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



Sumit Kesarwani

Total Post:378

Points:2694
Posted on    September-02-2014 12:45 AM

Hi Ashish, 

in IIS7. You need to add the below

<modules runAllManagedModulesForAllRequests="true">


Don't want to miss updates? Please click the below button!

Follow MindStick