문제

I read (and tried) everything I found about this goal, but I still cannot handle it...

I found I have to run this script:

aspnet_regsqlazure.exe -ssadd -d -sstype c -S -U -P

after having downloaded the executable, but it says that:

Install Session State is not supported by aspnet_regsqlazure

...and this is only the last step I tried: when I could create (any?) tables in the database, then it always says that:

Unable to use SQL Server because either ASP.NET version 2.0 Session State is not installed on the SQL server, or ASP.NET does not have...

Is there anyone that can point me to the right (and updated!) infos on this subject?

Thanks in advance.

AB

도움이 되었습니까?

해결책

Use the Redis cache, it's significantly faster, easier to set up and cheaper. See the Azure Redis Cache (Preview) ASP.NET Session State Provider section of MVC movie app with Azure Redis Cache in 15 minutes

다른 팁

If you use the ASP.NET Universal Providers you don't need to create the session tables upfront; it will be done automatically using EF Migrations when your app starts up.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top