Coder Social home page Coder Social logo

Comments (20)

kichalla avatar kichalla commented on May 24, 2024

@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 called sqlservercache.
  • 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.

muratg avatar muratg commented on May 24, 2024

@hishamco Closing this one. If @kichalla's instructions do not work, feel free to re-open :)

from session.

hishamco avatar hishamco commented on May 24, 2024

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.

hishamco avatar hishamco commented on May 24, 2024

@kichalla any idea about the error

from session.

kichalla avatar kichalla commented on May 24, 2024

My bad, the package name is Microsoft.Framework.Caching.SqlConfig (notice that there is no SqlServer in it)

from session.

hishamco avatar hishamco commented on May 24, 2024

I got ArgumentNullException paramter path1, please reopen the issue until it got fix

from session.

kichalla avatar kichalla commented on May 24, 2024

@hishamco can you show the entire command that you are trying?

from session.

hishamco avatar hishamco commented on May 24, 2024

Here is the command dnu commands install Microsoft.Framework.Caching.SqlConfig as you told me before

from session.

muratg avatar muratg commented on May 24, 2024

Activating for further investigation

from session.

kichalla avatar kichalla commented on May 24, 2024

@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.

kichalla avatar kichalla commented on May 24, 2024

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.

hishamco avatar hishamco commented on May 24, 2024

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.

kichalla avatar kichalla commented on May 24, 2024

try this sqlservercache create <connectionstring-to-database> <schema-name> <table-name>

from session.

hishamco avatar hishamco commented on May 24, 2024

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.

kichalla avatar kichalla commented on May 24, 2024

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.

hishamco avatar hishamco commented on May 24, 2024

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.

kichalla avatar kichalla commented on May 24, 2024

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.

hishamco avatar hishamco commented on May 24, 2024

Still the table is not updated anymore!!

from session.

kichalla avatar kichalla commented on May 24, 2024

@hishamco Can you share your code?

from session.

hishamco avatar hishamco commented on May 24, 2024

Finally .. it works as expected.
Thanks for your collaboration 😄

from session.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.