Both answers seem valid; but with most of Microsoft's stuff, it's all in the setup ...
First delete the ASPState database using the command:
aspnet_regsql -ssremove -E -S.
Note:
-E means you want to use an integrated security connection.
-S tells which SQL server and SQL instance to use, and "." (dot) indicates the default local instance
Then reinstall using the command:
aspnet_regsql -ssadd -sstype p -E -S.
Note:
There are three options in sstype: t | p | c ... the first "t" tells the installer about the location of all stored procedures in the ASPState database and all data in tempdb. The second option, โp,โ tells the installer to save the data in the ASPState database. The last option โcโ allows you to specify another โuserโ database to save session state data.
If you reinstall using "-sstype p", you only need to provide the datareader / datawriter to the ASPState database for the user who makes the connection (in most cases, the application pool identifier in IIS).
An additional benefit of saving data is that the session state is maintained even after the service is restarted. The only drawback is that you need to ensure that the agent cleanup routine regularly trims old sessions (this is done by default, every minute).
Important:
If you are using a cluster, you must save the session data. You can use only sstype 'p' or 'c'.
Hope this sheds light on the problem!
webbexpert
source share