IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Dotnet Discussion :

[WebForms][1.1] Unable to make the session state request


Sujet :

Dotnet

  1. #1
    Membre régulier
    Profil pro
    Inscrit en
    Novembre 2003
    Messages
    100
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2003
    Messages : 100
    Points : 93
    Points
    93
    Par défaut [WebForms][1.1] Unable to make the session state request
    Salut,

    Mon Site ne veut plus fonctionner de puis que j'ai installer le SP1 du framework v1.1.
    J'ai le message suivant:
    Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same. If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Web.HttpException: Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same. If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:


    [HttpException (0x8007274d): Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same. If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection.]
    System.Web.SessionState.OutOfProcStateClientManager.MakeRequest(StateProtocolVerb verb, String id, StateProtocolExclusive exclusiveAccess, Int32 timeout, Int32 lockCookie, Byte[] buf, Int32 cb, Int32 networkTimeout, SessionNDMakeRequestResults& results) +512
    System.Web.SessionState.OutOfProcStateClientManager.SetAsyncWorker(String id, SessionStateItem item, Byte[] buf, Int32 length, Boolean inStorage) +57
    System.Web.SessionState.OutOfProcStateClientManager.System.Web.SessionState.IStateClientManager.Set(String id, SessionStateItem item, Boolean inStorage) +142
    System.Web.SessionState.SessionStateModule.OnReleaseState(Object source, EventArgs eventArgs) +465
    System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +60
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87
    J'ai essayé les truc suivant:
    - Executer "aspnet_regiis -r" dans "\Windows\Microsoft.Net\Framework\v1.1.4322"
    - Dans la base de registre "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameter
    s\AllowRemoteConnection à 1
    - ajouter ASPNET au membre du grope d'admin local

    Mais çà marche toujours pas
    J'ai un site tout c** de test qui lui fonctionne.
    Mon IIS est sur le port 8080, (appache est sur le port 80).

    Environnement: VS .NET 2002 Fr + SP1
    Framework: 1.1 SP1
    OS: WinXp Pro Sp1

    Une petite idée?

  2. #2
    Rédacteur
    Avatar de lutecefalco
    Profil pro
    zadzdzddzdzd
    Inscrit en
    Juillet 2005
    Messages
    5 052
    Détails du profil
    Informations personnelles :
    Âge : 45
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : zadzdzddzdzd

    Informations forums :
    Inscription : Juillet 2005
    Messages : 5 052
    Points : 8 734
    Points
    8 734
    Par défaut
    Est-ce que le service appelé Service d'état ASPNET est en marche?

  3. #3
    Membre régulier
    Profil pro
    Inscrit en
    Novembre 2003
    Messages
    100
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2003
    Messages : 100
    Points : 93
    Points
    93
    Par défaut
    J'ai reussi à refaire fonctionner mon site en changeant :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
        <sessionState 
                mode="StateServer"
    ..
        />
    en
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
        <sessionState 
                mode="inProc"
    ..
        />
    Comme mon site tout c** qui fonctionne. Faudrais que je regarde ce que çà veut dire tou çà..
    Mais bon j'aime autant pa toucher au web.config (d'ailleur je pense pas qu'on me l'autorise sur la machin de prod).

    @lutecefalco
    Je viens de voir ton message je regarde.

  4. #4
    Rédacteur
    Avatar de lutecefalco
    Profil pro
    zadzdzddzdzd
    Inscrit en
    Juillet 2005
    Messages
    5 052
    Détails du profil
    Informations personnelles :
    Âge : 45
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : zadzdzddzdzd

    Informations forums :
    Inscription : Juillet 2005
    Messages : 5 052
    Points : 8 734
    Points
    8 734
    Par défaut
    En state server, c'est le service dont je t'ai parlé qui gère les sessions
    En InProc, je sais plus (IIS je crois)

    T'as aussi le choix de gèrer les sessions dans une BdD SqlServer

  5. #5
    Membre régulier
    Profil pro
    Inscrit en
    Novembre 2003
    Messages
    100
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2003
    Messages : 100
    Points : 93
    Points
    93
    Par défaut
    C'était effectivement le service qui n'était pas demarrer.
    Bizarre linstallation du sp1 pour le FW 1.1 qui le desactive :
    Grand merci à toi.

    Bon à l'occas pour ma culutre perso faut que je regarde cette façon de gérer la session.

  6. #6
    Rédacteur
    Avatar de lutecefalco
    Profil pro
    zadzdzddzdzd
    Inscrit en
    Juillet 2005
    Messages
    5 052
    Détails du profil
    Informations personnelles :
    Âge : 45
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : zadzdzddzdzd

    Informations forums :
    Inscription : Juillet 2005
    Messages : 5 052
    Points : 8 734
    Points
    8 734
    Par défaut
    Le State Server ou Sql Server, ça sert qd tu fais du load balancing principalement

  7. #7
    Membre régulier
    Profil pro
    Inscrit en
    Novembre 2003
    Messages
    100
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2003
    Messages : 100
    Points : 93
    Points
    93
    Par défaut
    Ok, donc aucune utilité dans mon cas.

  8. #8
    Rédacteur
    Avatar de lutecefalco
    Profil pro
    zadzdzddzdzd
    Inscrit en
    Juillet 2005
    Messages
    5 052
    Détails du profil
    Informations personnelles :
    Âge : 45
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : zadzdzddzdzd

    Informations forums :
    Inscription : Juillet 2005
    Messages : 5 052
    Points : 8 734
    Points
    8 734
    Par défaut
    Ca peut aussi servir si tu stockes bcp de choses en session. Les stocker ds une BDD peut t'éviter des pbs de mémoire en cas de forte montée en charge

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. The client was unable to reuse a session with SPID xx
    Par dily0403 dans le forum Administration
    Réponses: 8
    Dernier message: 24/10/2011, 20h36
  2. erreur:Unable to download the artifact
    Par Sniper37 dans le forum Maven
    Réponses: 3
    Dernier message: 07/03/2008, 11h02
  3. [Word-basic] Erreur 537: unable to run the specified macro
    Par zahui_eric dans le forum VBA Word
    Réponses: 7
    Dernier message: 13/07/2007, 14h27
  4. [WebForms][1.1]Récupérer des variables de session php en asp
    Par jwalter dans le forum Général Dotnet
    Réponses: 3
    Dernier message: 26/11/2006, 15h49
  5. Réponses: 3
    Dernier message: 23/03/2006, 17h55

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo