Results 1 to 3 of 3

Thread: Session Problem

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Posts
    77

    Session Problem

    I need to design a web site with more than 500 aspx files. If I include all of those files in a single web project, the duration of compilation and execution (along with debugging) through VS.NET is dead slow. As it has 17 modules, I decided to create 17 web projects in a single solution, so that I can compile only the modules (projects) I want. Till here everything is fine.

    But the session state is not getting shared among all the projects in the solution. It exists only within the startup project. The members I put into Session in the startup project are accessible only within that project and not getting accessible in any other project within that solution.

    So, I would like to have a "Multiple web project solution" to be designed having the common session, application and other states. Is it possible? Or else any other best suggestion to solve my issue!!

    The hierarchy of Virtual directory structure, I created is something like as follows:

    c:\inetpub\wwwroot
    \ApplicationProject -->Startup web project (Virtual Directory)
    \SubProject1 -->first Module (Virtual Directory)
    \SubProject2 -->second Module (Virtual Directory)
    \SubProject3 -->third Module (Virtual Directory)

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Try this...

    In your web.config, use :
    VB Code:
    1. <configuration>
    2.   <sessionstate
    3.       mode="[b]stateserver[/b]"
    4.       cookieless="false"
    5.       timeout="20"
    6.       sqlconnectionstring="data source=127.0.0.1;user id=sa;password="
    7.       server="127.0.0.1"
    8.       port="42424"
    9.   />
    10. </configuration>

    And then also start the aspstate service :
    Code:
    net start aspstate
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Posts
    77
    Even the above aslo, could not help me to solve it out...I get the same error as of before....

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