Results 1 to 6 of 6

Thread: Session

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2013
    Posts
    12

    Session

    What is the solution for the error "No session bound to the current http context in asp.net ?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,296

    Re: Session

    Maybe someone else knows exactly what the issue is but, in case that's not the case, it might help if you were to provide a bit of background because many issues can have various causes. You might consider describing the circumstances under which this occurs and what code is being executed at the time.

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2013
    Posts
    12

    Re: Session

    I am creating a website for user registration,login,edit,delete etc. I am trying to store the details during registration into the database, From the controller layer i am calling the methods in the service layer and the service layer calls the methods in other layers through their corresponding objects. The error is that session is not executing, Current Session is null.

  4. #4
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Session

    Hello,

    From the terminology that you are using, am I right in saying that you are using ASP.NET MVC, or are you using ASP.NET Web Forms?

    Also, are you using your own code to store the information into the database, or are you using the built in functionality in ASP.NET, i.e. the Membership Provider?

    Gary

  5. #5

    Thread Starter
    New Member
    Join Date
    Oct 2013
    Posts
    12

    Re: Session

    I am using MVC asp.net,I resolved the error,Thank you for your suggestion

  6. #6
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Session

    Hello,

    I have moved your thread to the correct forum.

    For the benefit of the community, would it be possible for you to post the solution to your problem?

    Also, can you mark your thread as resolved to indicate that you have found the solution to your problem? If you are not sure how to do that, there is a link in my signature that explains how.

    Thanks

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width