---
title: "Application.Context.User not filled on request"  
description: "Application.Context.User not filled on request"  
author: "Anonymous User"  
published: 2014-09-02  
updated: 2014-09-02  
canonical: https://www.mindstick.com/forum/2225/application-context-user-not-filled-on-request  
category: "asp.net"  
tags: ["Application.Context.User", "mindstick", "Application.Context.User not filled on request"]  
reading_time: 1 minute  

---

# Application.Context.User not filled on request

I have the following [setup](https://www.mindstick.com/articles/426/how-to-create-a-setup-project-for-windows-application):

IIS 7.

using the url rewrite [module](https://www.mindstick.com/blog/11796/prestashop-one-page-checkout-module-make-checkout-faster) from UrlRewritingNet

A [custom](https://www.mindstick.com/blog/12298/use-custom-writing-services-to-get-through-the-finals) IHttpModule which authenticates requests

In my [sitemap](https://www.mindstick.com/blog/301744/how-important-is-a-sitemap-for-the-indexing-of-your-website) file I have certain urls with [roles](https://www.mindstick.com/articles/1366/membership-roles-user-profile-in-asp-dot-net) defined. :

<siteMapNode url="~/directurl" roles="[Clients](https://www.mindstick.com/articles/23254/why-millions-of-clients-trust-hostinger-s-vps-hosting)">

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

When i make a [request](https://www.mindstick.com/blog/255/post-get-and-request-function-in-php) for both:

if (Application.Context.[User](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server) == [null](https://www.mindstick.com/forum/33922/how-to-use-null-coalescing-operator-in-c-sharp))

{

/* This is where the first request ends */

}

else

{

/* This is where the [second](https://answers.mindstick.com/qa/41761/how-did-the-second-industrial-revolution-influence-women-s-roles-in-society) request ends */

}

What do I need to do so the User is filled?

## Replies

### Reply by Sumit Kesarwani

Hi Ashish, \

in IIS7. You need to add the below

<modules runAllManagedModulesForAllRequests="true">


---

Original Source: https://www.mindstick.com/forum/2225/application-context-user-not-filled-on-request

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
