在Visual Studio中为Mac进行调试时出错;怎么解决?

时间:2017-04-05 16:00:11

标签: macos visual-studio

我正在使用Visual Studio for Mac,并且我收到以下错误消息:

http://127.0.0.1:8080/

Application Exception
System.NotImplementedException
SSL encryption for data sent between client and server is not implemented.

Description: HTTP 500.Error processing request.
Details: Non-web exception. Exception origin (name of application or object): System.Data.
Exception stack trace:
  at System.Data.SqlClient.SqlConnection.SetProperties (System.String name, System.String value) [0x00361] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs:777 
  at System.Data.SqlClient.SqlConnection.SetConnectionString (System.String connectionString) [0x00178] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs:672 
  at System.Data.SqlClient.SqlConnection.set_ConnectionString (System.String value) [0x00017] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs:153 
  at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.<SetConnectionString>b__18 (System.Data.Common.DbConnection t, System.Data.Entity.Infrastructure.Interception.DbConnectionPropertyInterceptionContext`1[TValue] c) [0x00007] in <000f54522ad145bf987b3043022f9799>:0 
  at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1[TInterceptor].Dispatch[TTarget,TInterceptionContext] (TTarget target, System.Action`2[T1,T2] operation, TInterceptionContext interceptionContext, System.Action`3[T1,T2,T3] executing, System.Action`3[T1,T2,T3] executed) [0x0000f] in <000f54522ad145bf987b3043022f9799>:0 
  at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.SetConnectionString (System.Data.Common.DbConnection connection, System.Data.Entity.Infrastructure.Interception.DbConnectionPropertyInterceptionContext`1[TValue] interceptionContext) [0x00042] in <000f54522ad145bf987b3043022f9799>:0 
  at System.Data.Entity.Internal.LazyInternalConnection.InitializeFromConnectionStringSetting (System.Configuration.ConnectionStringSettings appConfigConnection) [0x00062] in <000f54522ad145bf987b3043022f9799>:0 
  at System.Data.Entity.Internal.LazyInternalConnection.TryInitializeFromAppConfig (System.String name, System.Data.Entity.Internal.AppConfig config) [0x0000b] in <000f54522ad145bf987b3043022f9799>:0 
  at System.Data.Entity.Internal.LazyInternalConnection.Initialize () [0x0005b] in <000f54522ad145bf987b3043022f9799>:0 
  at System.Data.Entity.Internal.LazyInternalConnection.get_Connection () [0x00000] in <000f54522ad145bf987b3043022f9799>:0 
  at System.Data.Entity.Internal.LazyInternalContext.get_Connection () [0x00024] in <000f54522ad145bf987b3043022f9799>:0 
  at System.Data.Entity.Database.get_Connection () [0x00000] in <000f54522ad145bf987b3043022f9799>:0 
  at Microsoft.AspNet.Identity.EntityFramework.IdentityDbContext`1[TUser].IsIdentityV1Schema (System.Data.Entity.DbContext db) [0x00006] in <be6c0ac8ba754afcbd0c83ce45dc28c2>:0 
  at Microsoft.AspNet.Identity.EntityFramework.IdentityDbContext`1[TUser]..ctor (System.String nameOrConnectionString, System.Boolean throwIfV1Schema) [0x0000a] in <be6c0ac8ba754afcbd0c83ce45dc28c2>:0 
  at Microsoft.AspNet.Identity.EntityFramework.IdentityDbContext`1[TUser]..ctor (System.String nameOrConnectionString) [0x00000] in <be6c0ac8ba754afcbd0c83ce45dc28c2>:0 
  at CardiacTesting.BL.CardiacTestingContext..ctor () [0x00000] in /Users/stecampe1/Desktop/MyFiles/projects/CardiacTestingAlt/CardiacTesting.BL/DataAccess/CardiacTestingContext.cs:15 
  at CardiacTesting.Logic.Repositories.GenericRepository`2[TEntity,TViewModel]..ctor (System.String currentUser) [0x0000f] in /Users/stecampe1/Desktop/MyFiles/projects/CardiacTestingAlt/CardiacTesting/Logic/Repositories/GenericRepository.cs:28 
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.Reflection/MonoMethod.cs:661 
Version Information: 4.8.0 (mono-4.8.0-branch/8f6d0f6 Thu Mar 9 11:59:17 EST 2017); ASP.NET Version: 4.0.30319.42000
Powered by Mono

我以前有这个工作。代码是一样的。改变了三件事:我的操作系统从10.11更新到10.12; Xcode已安装;并且,由于有sass文件,我在文件上使用了npm start(可能应该确认它在这之前工作)。

我怀疑我的连接字符串是个问题。这是:

<connectionStrings>
    <add name="ProjectTestingConnection" connectionString="Server=tcp:testserver.database.windows.net,1433;Initial Catalog=ProjectTesting;Persist Security Info=False;User ID=ProjectTestingWeb;Password=kZ>N4?q>*.;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;" providerName="System.Data.SqlClient" />
    <!--<add name="ProjectTestingConnection" connectionString="Data Source=10.10.18.159;Initial Catalog=ProjectTesting;User ID=ProjectTestingWeb;Password=pr@jectte$ting" providerName="System.Data.SqlClient" />-->
  </connectionStrings>

我试图在本地查看它。再次,我让它在2天前工作。我在其他帖子中尝试了一些建议但没有成功。最后一个涉及更改密码中的括号(&gt;),因为它被认为可能导致问题 - 没有修复任何东西,所以我把它放回去。

有关如何最好地解决此问题的任何建议都表示赞赏。

感谢。

斯蒂芬

0 个答案:

没有答案