Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 381001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:02:35+00:00 2026-05-12T15:02:35+00:00

i have a problem in asp.net web-application. I’m using UrlRewritingNet.UrlRewrite and it’s works fine

  • 0

i have a problem in asp.net web-application.

I’m using UrlRewritingNet.UrlRewrite and it’s works fine only when there is no uses of session on page.

for example:
simple page Default.aspx with code:

<% Session["some_value"] = "test"; %>

If i access it via address

http://somesite.net/Default.aspx 

it’s ok, but if i try

http://somesite.net/test/

i have error:

Session state can only be used when enableSessionState is set to true, either in a
configuration file or in the Page directive. Please also make sure that 
System.Web.SessionStateModule or a custom session state module is included in the 
<configuration>\<system.web>\<httpModules> section in the application configuration.

How can i solve that problem?

UPD: I found answer here

just add two lines in web.config

<system.webServer>
    <modules>

      <remove name="Session"/>
      <add name="Session" type="System.Web.SessionState.SessionStateModule"/>

    </modules>
</system.webServer>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T15:02:36+00:00Added an answer on May 12, 2026 at 3:02 pm

    I found answer here

    just add two lines in web.config

    <system.webServer>
        <modules>
    
          <remove name="Session"/>
          <add name="Session" type="System.Web.SessionState.SessionStateModule"/>
    
        </modules>
    </system.webServer>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an 'access denied' problem on an ASP.NET web application, where the user
I have an asp.net web application using the ReportViewer2008-SP1 controls to display some reports
We have an ASP.NET web application running in IIS that uses the SoapHttpClientProtocol class
My ASP.NET web application works fine in Internet Explorer, but in Firefox and Chrome
I have an puzzling problem. I have a new ASP.NET web application in VS2005
We have an intranet asp.net web application which uses the OOTB ASP.net membership and
I have a ASP.NET web application that uses Themes. Inside the theme directory are
I have an ASP .NET web application (runs only on the Intranet) where I
I am using an ASP.Net Web Application project. I have a user control which
i am working on a asp.net(with c#) web application and here i have problem.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.