I am trying to setip session state in my asp.net projject.
here is how I am doing it:
C:\Users\Asif>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regsql.exe -S
ASIF-VAIO\MSSQLSERVER12 -E -ssadd -sstype t
Start adding session state.
....
Finished.
asp.net state service is running on my system.
here is what i put in web.config
<sessionState mode="SQLServer" sqlConnectionString="data source=ASIF-VAIO\MSSQLSERVER12;database=CapitalStackersDB;User=webcider;Password=mypassword;" allowCustomSqlDatabase="true" timeout="100" />
I added entry in host file and when i run that url, I get:
Failed to login to session state SQL server for user 'webcider'.
打开IIS,找到应用程序池,右键单击鼠标转到高级设置并更改进程模型下的身份。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.