Ich versuche, auf netcoreapp1.0 gebaut RavenDB in meiner aspnet5 Anwendung zu verwenden Ich bin mit diesem Code:RavenDB.Client und NetCoreApp1.0 nicht verbinden
IDocumentStore store = new DocumentStore()
{
Url = "http://localhost:8080"
}.Initialize();
string[] databaseNames = store.DatabaseCommands.GlobalAdmin.GetDatabaseNames(1);
und meine project.json wie folgt aussehen:
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.0.0",
"type": "platform"
},
"Microsoft.AspNetCore.Mvc": "1.0.0",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0",
"Microsoft.AspNetCore.Server.Kestrel.Https": "1.0.0",
"Microsoft.AspNetCore.StaticFiles": "1.0.0",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0",
"Microsoft.Extensions.Configuration.FileExtensions": "1.0.0",
"Microsoft.Extensions.Configuration.Json": "1.0.0",
"Microsoft.Extensions.Logging": "1.0.0",
"Microsoft.Extensions.Logging.Console": "1.0.0",
"Microsoft.Extensions.Logging.Debug": "1.0.0",
"Microsoft.Extensions.Options.ConfigurationExtensions": "1.0.0",
"Microsoft.EntityFrameworkCore": "1.0.0",
"Swashbuckle.SwaggerGen": "6.0.0-beta901",
"Swashbuckle.SwaggerUi": "6.0.0-beta901",
"RavenDB.Client": "3.5.0-rc-35173"
},
"frameworks": {
"netcoreapp1.0": {
"imports": [
"dotnet5.6",
"dnxcore50",
"netstandard1.6",
"portable-net452+win81"
]
}
}, ...
es nicht mit dieser Ausnahme:
Exception thrown: 'System.ArgumentNullException' in System.Private.CoreLib.ni.dll
Additional information: SafeHandle cannot be null.
Das exakt gleiche Code getestet wurde o n .net 45 und arbeitete. irgendwelche Ideen, warum das passiert?
Ihr Code sieht gut aus, und es funktioniert hier. –