Asp.net InvalidOperationException:未知的连接字符串参数';SSLMode';
我刚进入一个Asp.NET web项目,我正在尝试设置应用程序。当我运行应用程序并调用本地主机上的端点时,我得到错误“InvalidOperationException:未知连接字符串参数'SSLMode' 以下是完整的堆栈跟踪:Asp.net InvalidOperationException:未知的连接字符串参数';SSLMode';,asp.net,asp.net-mvc,postgresql,entity-framework,dotconnect,Asp.net,Asp.net Mvc,Postgresql,Entity Framework,Dotconnect,我刚进入一个Asp.NET web项目,我正在尝试设置应用程序。当我运行应用程序并调用本地主机上的端点时,我得到错误“InvalidOperationException:未知连接字符串参数'SSLMode' 以下是完整的堆栈跟踪: [InvalidOperationException: Unknown connection string parameter 'SSLMode'.] Devart.Common.DbConnectionOptions.ParseConnectionString
[InvalidOperationException: Unknown connection string parameter 'SSLMode'.]
Devart.Common.DbConnectionOptions.ParseConnectionString(Hashtable synonyms) +1761
Devart.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useFirstKeyValuePair) +232
Devart.Data.PostgreSql.f..ctor(String A_0) +70
Devart.Data.PostgreSql.w.a(String A_0, DbConnectionOptions A_1) +38
Devart.Common.DbConnectionFactory.a(String A_0, DbConnectionOptions& A_1, DbConnectionBase A_2) +128
Devart.Common.DbConnectionBase.set_ConnectionString(String value) +97
System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch(TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed) +98
System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.SetConnectionString(DbConnection connection, DbConnectionPropertyInterceptionContext`1 interceptionContext) +514
System.Data.Entity.Internal.LazyInternalConnection.TryInitializeFromAppConfig(String name, AppConfig config) +39
System.Data.Entity.Internal.LazyInternalConnection.Initialize() +161
System.Data.Entity.Internal.LazyInternalConnection.get_ProviderName() +16
System.Data.Entity.Internal.DefaultModelCacheKeyFactory.Create(DbContext context) +135
System.Data.Entity.Internal.LazyInternalContext.InitializeContext() +772
System.Data.Entity.Internal.InternalContext.Initialize() +26
System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +20
System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +69
System.Data.Entity.Internal.Linq.InternalSet`1.GetAsyncEnumerator() +21
System.Data.Entity.Infrastructure.IDbAsyncEnumerableExtensions.ForEachAsync(IDbAsyncEnumerable`1 source, Action`1 action, CancellationToken cancellationToken) +69
System.Data.Entity.Infrastructure.IDbAsyncEnumerableExtensions.ToListAsync(IDbAsyncEnumerable`1 source, CancellationToken cancellationToken) +315
System.Data.Entity.Infrastructure.IDbAsyncEnumerableExtensions.ToListAsync(IDbAsyncEnumerable`1 source) +55
SDS1.Business.Repositories.<GetAllApplicationsByRoleAsync>d__6.MoveNext() in ...\Repositories\ApplicationRepository.cs:75
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +62
System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() +32
MagWien.SDS1Web.Controllers.<Index>d__6.MoveNext() in ...\Controllers\HomeController.cs:39
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +62
System.Web.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult) +92
System.Web.Mvc.Async.<>c__DisplayClass8_0.<BeginInvokeAsynchronousActionMethod>b__1(IAsyncResult asyncResult) +22
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +42
System.Web.Mvc.Async.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__11_0() +72
System.Web.Mvc.Async.<>c__DisplayClass11_1.<InvokeActionMethodFilterAsynchronouslyRecursive>b__2() +396
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +42
System.Web.Mvc.Async.<>c__DisplayClass3_6.<BeginInvokeAction>b__3() +50
System.Web.Mvc.Async.<>c__DisplayClass3_1.<BeginInvokeAction>b__5(IAsyncResult asyncResult) +188
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
System.Web.Mvc.<>c.<BeginExecuteCore>b__152_1(IAsyncResult asyncResult, ExecuteCoreState innerState) +29
System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52
System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +39
System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
System.Web.Mvc.<>c.<BeginProcessRequest>b__20_1(IAsyncResult asyncResult, ProcessRequestState innerState) +43
System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +651
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +220
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +134
[无效操作异常:未知的连接字符串参数'SSLMode'
Devart.Common.DbConnectionOptions.ParseConnectionString(哈希表同义词)+1761
Devart.Common.DbConnectionOptions..ctor(字符串连接字符串,哈希表同义词,布尔值useFirstKeyValuePair)+232
Devart.Data.PostgreSql.f..ctor(字符串A_0)+70
Devart.Data.PostgreSql.w.a(字符串a_0,数据库连接选项a_1)+38
Devart.Common.DbConnectionFactory.a(字符串a_0,DbConnectionOptions&a_1,DbConnectionBase a_2)+128
Devart.Common.DbConnectionBase.set_ConnectionString(字符串值)+97
System.Data.Entity.Infrastructure.InternalDispatcher`1.Dispatch(目标目标,操作`2操作,TInterceptionContext拦截上下文,操作`3执行,操作`3执行)+98
System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.SetConnectionString(DbConnection连接,DbConnectionPropertyInterceptionContext`1 interceptionContext)+514
System.Data.Entity.Internal.LazyInternalConnection.TryInitializeFromAppConfig(字符串名称,AppConfig配置)+39
System.Data.Entity.Internal.LazyInternalConnection.Initialize()+161
System.Data.Entity.Internal.LazyInternalConnection.get_ProviderName()+16
System.Data.Entity.Internal.DefaultModelCacheKeyFactory.Create(DbContext上下文)+135
System.Data.Entity.Internal.LazyInternalContext.InitializeContext()+772
System.Data.Entity.Internal.InternalContext.Initialize()+26
System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(类型entityType)+20
System.Data.Entity.Internal.Linq.InternalSet`1.Initialize()+69
System.Data.Entity.Internal.Linq.InternalSet`1.GetAsyncEnumerator()+21
System.Data.Entity.Infrastructure.IDbAsyncEnumerableExtensions.ForEachAsync(IDbAsyncEnumerable`1源,Action`1 Action,CancellationToken CancellationToken)+69
System.Data.Entity.Infrastructure.IDbAsyncEnumerableExtensions.ToListSync(IDbAsyncEnumerable`1 source,CancellationToken CancellationToken)+315
System.Data.Entity.Infrastructure.IDbAsyncEnumerableExtensions.ToListSync(IDbAsyncEnumerable`1 source)+55
位于…\Repositories\ApplicationRepository.cs:75中的SDS1.Business.Repositories.d_u6.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()+32
System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务)+62
System.Runtime.CompilerServices.TaskWaiter`1.GetResult()+32
位于…\Controllers\HomeController.cs:39中的MagWien.SDS1Web.Controllers.d_u6.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()+32
System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务)+62
System.Web.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult)+92
System.Web.Mvc.Async.c_uuu显示类8_0.b_u1(IAsyncResult asyncResult)+22
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)+42
System.Web.Mvc.Async.AsyncInvocationWithFilters.b_u11_0()+72
System.Web.Mvc.Async.c___显示类11_1.b_2()+396
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)+42
System.Web.Mvc.Async.c\uuuu DisplayClass3\u6.b\uuu3()+50
System.Web.Mvc.Async.c__显示类3_1.b_5(IAsyncResult asyncResult)+188
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult)+38
System.Web.Mvc.c.b__152_1(IAsyncResult asyncResult,ExecuteCorerate innerState)+29
System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)+73
System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)+52
System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)+39
System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)+38
System.Web.Mvc.c.b_u20_u1(IAsyncResult asyncResult,ProcessRequestState innerState)+43
System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)+73
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)+38
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()+651
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep步骤)+220
System.Web.HttpApplication.ExecuteStep(IExecutionStep步骤,布尔值&同步完成)+134
该项目使用postgres数据库和dotConnect。该应用程序在其他同事的机器上运行得很好,但在我的机器上运行得不好:我们基本上使用的是相同类型的虚拟机。正因为如此,我真的不想更改代码中的任何内容以使应用程序运行。我的机器上安装了dotConnect。如果有人有类似的问题,我将感谢任何建议。谢谢 问题是,即使我有许可证信息,我的机器上也没有安装devart。。。关闭PostgreSQL的连接字符串是否已准备就绪,或者您正在对此进行更改?异常是清除,表示它不是连接字符串的属性。但事实上是这样。问题是,即使我有许可证信息,我的机器上也没有安装devart。。。结束