验证码-GetVerificationCode发生异常。System.InvalidCastException: 无法将类型为“System.Int64”的对象强制转换为类型“Newtonsoft.Json.Linq.JObject”。 在 Lottomat.Utils.Web.NetHelper.GetAddressByIP(String ip) 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.Util\Lottomat.Util\Web\NetHelper.cs:行号 142 在 Lottomat.SOA.API.Controllers.V1.CommonController.<>c__DisplayClass6_0.b__0() 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.SOA.API\Controllers\V1\CommonController.cs:行号 149 在 Lottomat.Util.Log.LogHelper.Logger(Type type, String argJsonString, String function, ErrorHandel errorHandel, Action tryHandel, Action`1 catchHandel, Action finallHandel) 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.Util\Lottomat.Util.Log\LogHelper.cs:行号 71 验证码-GetVerificationCode发生异常。System.NullReferenceException: 未将对象引用设置到对象的实例。 在 Lottomat.Utils.Web.NetHelper.GetAddressByIP(String ip) 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.Util\Lottomat.Util\Web\NetHelper.cs:行号 147 在 Lottomat.SOA.API.Controllers.V1.CommonController.<>c__DisplayClass6_0.b__0() 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.SOA.API\Controllers\V1\CommonController.cs:行号 149 在 Lottomat.Util.Log.LogHelper.Logger(Type type, String argJsonString, String function, ErrorHandel errorHandel, Action tryHandel, Action`1 catchHandel, Action finallHandel) 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.Util\Lottomat.Util.Log\LogHelper.cs:行号 71 根据彩票枚举码获取最新一期开奖详情-GetTheLatestAwardByEnumCode发生异常。System.Data.SqlClient.SqlException (0x80131904): 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: Named Pipes Provider, error: 40 - 无法打开到 SQL Server 的连接) ---> System.ComponentModel.Win32Exception (0x80004005): 找不到网络路径。 在 System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling) 在 System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) 在 System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) 在 System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) 在 System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) 在 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) 在 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) 在 System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) 在 System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) 在 System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) 在 System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) 在 System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) 在 System.Data.SqlClient.SqlConnection.Open() 在 Lottomat.Data.DbHelper.PrepareCommand(DbConnection conn, IDbCommand cmd, DbTransaction isOpenTrans, CommandType cmdType, String cmdText, DbParameter[] dbParameter) 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.Data\Lottomat.Data\DbHelper.cs:行号 156 在 Lottomat.Data.DbHelper.ExecuteReader(CommandType cmdType, String strSql, DbParameter[] dbParameter) 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.Data\Lottomat.Data\DbHelper.cs:行号 87 在 Lottomat.Data.EF.Database.FindTable(String strSql, DbParameter[] dbParameter) 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.Data\Lottomat.Data.EF\Database.cs:行号 510 在 Lottomat.Data.Repository.Repository.FindTable(String strSql, DbParameter[] dbParameter) 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.Data\Lottomat.Data.Repository\Repository\Repository.cs:行号 359 在 Lottomat.Application.Service.CommonManage.CommonService.ExcuteSqlDataTable(String sql, DbParameter[] dbParameter) 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.Application\Lottomat.Application.Service\CommonManage\CommonService.cs:行号 32 在 Lottomat.Application.Busines.CommonManage.CommonBLL.ExcuteSqlDataTable(String sql, DbParameter[] dbParameter) 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.Application\Lottomat.Application.Busines\CommonManage\CommonBLL.cs:行号 37 在 Lottomat.SOA.API.Controllers.V1.LotteryNumberController.<>c__DisplayClass14_0.b__0() 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.SOA.API\Controllers\V1\LotteryNumberController.cs:行号 818 在 Lottomat.Util.Log.LogHelper.Logger(Type type, String argJsonString, String function, ErrorHandel errorHandel, Action tryHandel, Action`1 catchHandel, Action finallHandel) 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.Util\Lottomat.Util.Log\LogHelper.cs:行号 71 ClientConnectionId:00000000-0000-0000-0000-000000000000 Error Number:53,State:0,Class:20