Comments (20)
@hishamco ...follow the steps below and see if you still see the issue:
- Run
dnu commands install Microsoft.Framework.Caching.SqlServer.SqlConfig
to install the 'global' command calledsqlservercache
. - Run
sqlservercache <connectionstring-to-database> <schema-name> <table-name>
to set up the table and indexes. - Register this cache in DI. Example:
services.AddSqlServerCache(o =>
{
o.ConnectionString = "Server=localhost;Database=SessionSampleDb;Trusted_Connection=True;";
o.SchemaName = "dbo";
o.TableName = "SessionSample";
});
from session.
@hishamco Closing this one. If @kichalla's instructions do not work, feel free to re-open :)
from session.
Thanks @kichalla I'd like to inform you that the first step produce unable to locate the package Microsoft.Framework.Caching.SqlServer.SqlConfig
from session.
@kichalla any idea about the error
from session.
My bad, the package name is Microsoft.Framework.Caching.SqlConfig
(notice that there is no SqlServer in it)
from session.
I got ArgumentNullException
paramter path1, please reopen the issue until it got fix
from session.
@hishamco can you show the entire command that you are trying?
from session.
Here is the command dnu commands install Microsoft.Framework.Caching.SqlConfig
as you told me before
from session.
Activating for further investigation
from session.
@hishamco I am unable to repro the issue that you are seeing
My DNU version is Microsoft .NET Development Utility CLR-x86-1.0.0-beta6-12232
Feeds used:
https://www.myget.org/F/aspnetvnext/api/v2/
https://www.nuget.org/api/v2/
from session.
Also to isolate the issue, can you verify if you are able install another package having a global command..example:
dnu commands install Microsoft.Framework.SecretManager
from session.
Finally the command executed successfully after upgrade dnvm to the version that you mentioned before, but still i'm facing an issue while executing sqlservercache
command, I passed the connectionString, schema and table like what you mentioned before, but unrecognized argument error occurs in ConnectionString
from session.
try this sqlservercache create <connectionstring-to-database> <schema-name> <table-name>
from session.
I executed this sqlservercache create "server=.;database=myDB;integrated security=true" dbo Sessions
, again error occurs "Format of initialization string does not conform to specification starting at index 23"
from session.
I cannot repro your issue using the above command against my SQL Server 2012 server. Not sure if its specific to your sql server version, but this seems like an error with connection string: http://stackoverflow.com/questions/8243008/format-of-the-initialization-string-does-not-conform-to-specification-starting-a
from session.
Thanks @kichalla it works fine when i used Trusted_Connection instead of Integrated Security, but when I run the sample there's no entries show up in the table
from session.
Thanks @hishamco ...the instructions in the sample were incorrect...can you try with the updated instructions now: https://github.com/aspnet/Session/blob/dev/samples/SessionSample/Startup.cs#L23-L44
from session.
Still the table is not updated anymore!!
from session.
@hishamco Can you share your code?
from session.
Finally .. it works as expected.
Thanks for your collaboration 😄
from session.
Related Issues (20)
- Remove obsolete options APIs HOT 3
- Update session to configure DistributedMemoryCache options by default HOT 3
- Add logging scope for session HOT 2
- Random "Accessing expired session" warning HOT 4
- Error closing the session with .net 2.1.0-preview1 HOT 12
- Any plans for maximum session size property? HOT 2
- [1.1.4] Flaky test: SessionTests.SessionLogsCacheRefreshException HOT 6
- System.OperationCanceledException at Microsoft.Extensions.Caching.Redis.RedisCache+<RefreshAsync>d__25.MoveNext HOT 4
- cant access Session in other API HOT 5
- Error closing the session HOT 1
- [Patch 2.0.x] Downgrade cancellation logs HOT 1
- Add EventSource/EventCounter tracing and metrics for Session HOT 1
- Session does not work with Redis when the client has HTTP keep-alives disabled HOT 6
- Session cannot be re-loaded HOT 8
- Determine if the session cookie is considered essential HOT 1
- THIS ISSUE TRACKER IS CLOSED - use the Home repo issue tracker
- Session OnStart and Session OnEnd HOT 8
- How to get number of session HOT 3
- Re-initialize Session middleware from controller HOT 2
- How to add a custom session in .net core? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from session.