I'm working on a ASP.NET MVC 5 project. I've been working for hours on my localhost , on my local machine, hitting F5 and seeing changes. Now when I hit F5 I get this error :
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. If the server is on the local machine, and if the before mentioned registry value does not exist or is set to 0, then the state server connection string must use either 'localhost' or '127.0.0.1' as the server name.
I have not changed any configuration or anything. I was just simply coding and pressing F5 and now I get this. Sometimes when I kill IIS in task manager, it works, but only it worked twice. How can I get rid of this error and make IIS work like before? Thanks.