How to start the ASP.NET State Service?

2

I set up my Web.config with the following statement:

<sessionState timeout="30" mode="StateServer" />

But when I run the application (an ASP.NET site), I get the following error:

  

Can not make the session state request to the session state server. Verify that the ASP.NET state service has started and that the client and server ports are the same.

I remember that I had to activate this service the last time this error occurred, but I do not know how to do it.

How do I activate this service?

    
asked by anonymous 09.09.2017 / 17:52

1 answer

0

The solution was quite simple:

1 - Open services.msc through the Windows "Run" command.

2 - Search for Asp.NET State Service service

3 - Click% with%.

4 - If you want it to run automatically, double click on the service and, in the option Iniciar , choose Tipo de Inicialização .

Example:

    
09.09.2017 / 23:51