0
내가 netcoreapp1.0에 내장 내 aspnet5 응용 프로그램에서 RavenDB를 사용하기 위해 노력하고있어 연결되지 않습니다이 코드 실행 해요 :RavenDB.Client 및 NetCoreApp1.0는
IDocumentStore store = new DocumentStore()
{
Url = "http://localhost:8080"
}.Initialize();
string[] databaseNames = store.DatabaseCommands.GlobalAdmin.GetDatabaseNames(1);
내 project.json을 모양처럼이 동일한 코드가 O를 테스트되었습니다
Exception thrown: 'System.ArgumentNullException' in System.Private.CoreLib.ni.dll
Additional information: SafeHandle cannot be null.
: 그것은이 예외와 함께 실패
"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"
]
}
}, ...
n .net 45 그리고 일했다. 왜 이런 일이 일어나고 있는거야?
코드가 멋지게 보이며 여기에서 작동합니다. –