找回密码
 立即注册

QQ登录

只需一步,快速开始

houys 悬赏达人认证 活字格认证
金牌服务用户   /  发表于:2021-10-8 09:06  /   查看:3797  /  回复:3
1金币
本帖最后由 Chelsey.Wang 于 2021-12-6 11:11 编辑

活字格服务器启动时提示,活字格服务器没有成功启动,请联系系统管理员
退出杀毒软件重装、卸载重装、开启服务都弄了,还是这个样子
附件: 您需要 登录 才可以下载或查看,没有帐号?立即注册

最佳答案

查看完整内容

问题跟踪,是因为客户配置了用户数据外联的问题,导致了服务器无法启动,按照下图的方法已解决 原理: 在启动活字格服务器的时候,一共有四个进程需要启动(还有一个是ForguncyARServer,根据是否使用报表模块会自行决定是否启动): 这个ForguncyUserServiceConsole就是控制用户管理的,如果配置了外联库作为用户信息数据库,就会在启动的时候去尝试连接,连接失败的话就会导致整个活字格服务启动失败。这个时候我们需 ...

3 个回复

倒序浏览
最佳答案
最佳答案
Joe.xu讲师达人认证 悬赏达人认证 活字格认证
超级版主   /  发表于:2021-10-8 09:06:36
来自 4#
本帖最后由 Timothy.Xu 于 2021-10-12 17:06 编辑

问题跟踪,是因为客户配置了用户数据外联的问题,导致了服务器无法启动,按照下图的方法已解决

原理:
在启动活字格服务器的时候,一共有四个进程需要启动(还有一个是ForguncyARServer,根据是否使用报表模块会自行决定是否启动):



这个ForguncyUserServiceConsole就是控制用户管理的,如果配置了外联库作为用户信息数据库,就会在启动的时候去尝试连接,连接失败的话就会导致整个活字格服务启动失败。这个时候我们需要手动找到GlobalConfig.xml的全局配置文件(默认路径:C:\Users\Public\Documents\ForguncyServer)去删除掉这个外联库,让活字格可以用内建库先正常启动,然后我们检查数据库连接无误后重新配置就可以了~

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
Joe.xu讲师达人认证 悬赏达人认证 活字格认证
超级版主   /  发表于:2021-10-8 10:21:20
2#
您好,您是在新机器上装的活字格服务管理器呢,还是在之前的版本上做的升级呢,
检查一下是否满足这些环境的要求

另外需要您收集下%temp%的日志,我们结合分析一下

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
houys悬赏达人认证 活字格认证
金牌服务用户   /  发表于:2021-10-8 10:27:32
3#
Joe.xu 发表于 2021-10-8 10:21
您好,您是在新机器上装的活字格服务管理器呢,还是在之前的版本上做的升级呢,
检查一下是否满足这些环境 ...

在原有版本上进行升级的,满足条件我把文档粘贴在下边
  1. ForguncyUserServiceConsole Information: 0 : Start Trace for ForguncyUserServiceConsole commandline :"C:\Program Files (x86)\ForguncyServer\Website\bin\ForguncyUserServiceConsole.dll" http://DESKTOP-0CD3A4I:22345/UserService ..\..\Forguncy.UserService2 21348 e7ccffc1-0411-4594-9a73-fc0d2a2e5fcd
  2. Tid:1 2021/10/8 9:07:04: ForguncyServer Starting:=> ["http://DESKTOP-0CD3A4I:22345/UserService","..\\..\\Forguncy.UserService2","21348","e7ccffc1-0411-4594-9a73-fc0d2a2e5fcd"]
  3. Tid:1 2021/10/8 9:07:04: Current InstallLang: cn
  4. Tid:1 2021/10/8 9:07:04: ResourceHelper.Init:cn
  5. Tid:1 2021/10/8 9:07:04: ForguncyUserServiceConsole Starting: http://DESKTOP-0CD3A4I:22345/UserService
  6. Tid:1 2021/10/8 9:07:05: x86 SQLite.Interop.dll is exist :True
  7. Tid:1 2021/10/8 9:07:05: x64 SQLite.Interop.dll is exist :True
  8. Tid:1 2021/10/8 9:07:57: Assembly: ForguncyUserServiceConsole, Version=7.0.5.0, Culture=neutral, PublicKeyToken=967100671921c115 -----------
  9. {
  10.   "ClassName": "System.AggregateException",
  11.   "Message": "One or more errors occurred.",
  12.   "Data": null,
  13.   "InnerException": {
  14.     "$type": "System.Data.SqlClient.SqlException, System.Data.SqlClient",
  15.     "ClassName": "System.Data.SqlClient.SqlException",
  16.     "Message": "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)",
  17.     "Data": {
  18.       "$type": "System.Collections.ListDictionaryInternal, System.Private.CoreLib",
  19.       "HelpLink.ProdName": "Microsoft SQL Server",
  20.       "HelpLink.EvtSrc": "MSSQLServer",
  21.       "HelpLink.EvtID": "53",
  22.       "HelpLink.BaseHelpUrl": "https://go.microsoft.com/fwlink",
  23.       "HelpLink.LinkId": "20476",
  24.       "SqlError 1": "System.Data.SqlClient.SqlError: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"
  25.     },
  26.     "InnerException": {
  27.       "$type": "System.ComponentModel.Win32Exception, Microsoft.Win32.Primitives",
  28.       "ClassName": "System.ComponentModel.Win32Exception",
  29.       "Message": "找不到网络路径。",
  30.       "Data": null,
  31.       "InnerException": null,
  32.       "HelpURL": null,
  33.       "StackTraceString": null,
  34.       "RemoteStackTraceString": null,
  35.       "RemoteStackIndex": 0,
  36.       "ExceptionMethod": null,
  37.       "HResult": -2147467259,
  38.       "Source": null,
  39.       "WatsonBuckets": null,
  40.       "NativeErrorCode": 53
  41.     },
  42.     "HelpURL": null,
  43.     "StackTraceString": "   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken)
  44.    at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
  45.    at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
  46.    at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
  47.    at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
  48.    at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
  49.    at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
  50.    at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
  51.    at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
  52.    at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
  53.    at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
  54.    at System.Data.SqlClient.SqlConnection.Open()
  55.    at SqlServerWrapper.SqlServer..ctor(String connectionStr)
  56.    at Forguncy.SqlServerDB.a()
  57.    at Forguncy.SqlServerDB.EnsureTableSchema(String tableSchema)
  58.    at ForguncyDataAccess.DataAccess.IsTableRealExistInDataBase(String tableSchema, String tableName, String connectionStr, DataBaseType type)
  59.    at ForguncyDataAccess.DataAccess.IsTableExist(String tableName)
  60.    at ServerDesignerCommon.Common.EnsureDatabase.m()
  61.    at ServerDesignerCommon.Common.EnsureDatabase.s()
  62.    at ServerDesignerCommon.Common.EnsureDatabase.EnsureAsync()
  63.    at Forguncy.UserService2.UserServiceDBHelper.EnsureTablesAsync()
  64.    at Forguncy.UserService2.Startup.c()",
  65.     "RemoteStackTraceString": null,
  66.     "RemoteStackIndex": 0,
  67.     "ExceptionMethod": null,
  68.     "HResult": -2146232060,
  69.     "Source": "Core .Net SqlClient Data Provider",
  70.     "WatsonBuckets": null,
  71.     "Errors": null,
  72.     "ClientConnectionId": "00000000-0000-0000-0000-000000000000"
  73.   },
  74.   "HelpURL": null,
  75.   "StackTraceString": "   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
  76.    at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
  77.    at Forguncy.UserService2.Startup.ConfigureServices(IServiceCollection services)
  78.    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
  79.    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
  80.    at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
  81.    at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
  82.    at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
  83.    at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
  84.    at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.UseStartup(Type startupType, HostBuilderContext context, IServiceCollection services)
  85.    at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.<>c__DisplayClass12_0.<UseStartup>b__0(HostBuilderContext context, IServiceCollection services)
  86.    at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
  87.    at Microsoft.Extensions.Hosting.HostBuilder.Build()
  88.    at Forguncy.ForguncyServerCommon.ProgramBase.DoStartServerAction(String baseAddress, List`1 urls, Action`1 action)
  89.    at ForguncyServerConsole.Program.DoStartServer(String baseAddress, List`1 urls)
  90.    at ForguncyServerConsole.Program.<>c.<StartServer>b__3_0(String baseAddress, List`1 urls)
  91.    at Forguncy.ForguncyServerCommon.ProgramBase.StartServerAction(String baseAddress, Action`2 action)",
  92.   "RemoteStackTraceString": null,
  93.   "RemoteStackIndex": 0,
  94.   "ExceptionMethod": null,
  95.   "HResult": -2146233088,
  96.   "Source": "System.Private.CoreLib",
  97.   "WatsonBuckets": null,
  98.   "InnerExceptions": {
  99.     "$type": "System.Exception[], System.Private.CoreLib",
  100.     "$values": [
  101.       {
  102.         "$type": "System.Data.SqlClient.SqlException, System.Data.SqlClient",
  103.         "ClassName": "System.Data.SqlClient.SqlException",
  104.         "Message": "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)",
  105.         "Data": {
  106.           "$type": "System.Collections.ListDictionaryInternal, System.Private.CoreLib",
  107.           "HelpLink.ProdName": "Microsoft SQL Server",
  108.           "HelpLink.EvtSrc": "MSSQLServer",
  109.           "HelpLink.EvtID": "53",
  110.           "HelpLink.BaseHelpUrl": "https://go.microsoft.com/fwlink",
  111.           "HelpLink.LinkId": "20476",
  112.           "SqlError 1": "System.Data.SqlClient.SqlError: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"
  113.         },
  114.         "InnerException": {
  115.           "$type": "System.ComponentModel.Win32Exception, Microsoft.Win32.Primitives",
  116.           "ClassName": "System.ComponentModel.Win32Exception",
  117.           "Message": "找不到网络路径。",
  118.           "Data": null,
  119.           "InnerException": null,
  120.           "HelpURL": null,
  121.           "StackTraceString": null,
  122.           "RemoteStackTraceString": null,
  123.           "RemoteStackIndex": 0,
  124.           "ExceptionMethod": null,
  125.           "HResult": -2147467259,
  126.           "Source": null,
  127.           "WatsonBuckets": null,
  128.           "NativeErrorCode": 53
  129.         },
  130.         "HelpURL": null,
  131.         "StackTraceString": "   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken)
  132.    at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
  133.    at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
  134.    at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
  135.    at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
  136.    at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
  137.    at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
  138.    at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
  139.    at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
  140.    at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
  141.    at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
  142.    at System.Data.SqlClient.SqlConnection.Open()
  143.    at SqlServerWrapper.SqlServer..ctor(String connectionStr)
  144.    at Forguncy.SqlServerDB.a()
  145.    at Forguncy.SqlServerDB.EnsureTableSchema(String tableSchema)
  146.    at ForguncyDataAccess.DataAccess.IsTableRealExistInDataBase(String tableSchema, String tableName, String connectionStr, DataBaseType type)
  147.    at ForguncyDataAccess.DataAccess.IsTableExist(String tableName)
  148.    at ServerDesignerCommon.Common.EnsureDatabase.m()
  149.    at ServerDesignerCommon.Common.EnsureDatabase.s()
  150.    at ServerDesignerCommon.Common.EnsureDatabase.EnsureAsync()
  151.    at Forguncy.UserService2.UserServiceDBHelper.EnsureTablesAsync()
  152.    at Forguncy.UserService2.Startup.c()",
  153.         "RemoteStackTraceString": null,
  154.         "RemoteStackIndex": 0,
  155.         "ExceptionMethod": null,
  156.         "HResult": -2146232060,
  157.         "Source": "Core .Net SqlClient Data Provider",
  158.         "WatsonBuckets": null,
  159.         "Errors": null,
  160.         "ClientConnectionId": "00000000-0000-0000-0000-000000000000"
  161.       }
  162.     ]
  163.   }
  164. }

  165. CurrentMethodName: StartServerAction
  166. Tid:1 2021/10/8 9:07:57: x86 SQLite.Interop.dll is exist :True
  167. Tid:1 2021/10/8 9:07:57: x64 SQLite.Interop.dll is exist :True
  168. Tid:1 2021/10/8 9:07:57: StartServer ThrowException again
  169. Tid:1 2021/10/8 9:07:57: http://localhost:22345/UserService
  170. Tid:1 2021/10/8 9:07:57: http://127.0.0.1:22345/UserService
  171. Tid:1 2021/10/8 9:07:57: http://DESKTOP-0CD3A4I:22345/UserService
  172. Tid:1 2021/10/8 9:07:57: Assembly: ForguncyUserServiceConsole, Version=7.0.5.0, Culture=neutral, PublicKeyToken=967100671921c115 -----------
  173. {
  174.   "ClassName": "System.AggregateException",
  175.   "Message": "One or more errors occurred.",
  176.   "Data": null,
  177.   "InnerException": {
  178.     "$type": "System.Data.SqlClient.SqlException, System.Data.SqlClient",
  179.     "ClassName": "System.Data.SqlClient.SqlException",
  180.     "Message": "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)",
  181.     "Data": {
  182.       "$type": "System.Collections.ListDictionaryInternal, System.Private.CoreLib",
  183.       "HelpLink.ProdName": "Microsoft SQL Server",
  184.       "HelpLink.EvtSrc": "MSSQLServer",
  185.       "HelpLink.EvtID": "53",
  186.       "HelpLink.BaseHelpUrl": "https://go.microsoft.com/fwlink",
  187.       "HelpLink.LinkId": "20476",
  188.       "SqlError 1": "System.Data.SqlClient.SqlError: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"
  189.     },
  190.     "InnerException": {
  191.       "$type": "System.ComponentModel.Win32Exception, Microsoft.Win32.Primitives",
  192.       "ClassName": "System.ComponentModel.Win32Exception",
  193.       "Message": "找不到网络路径。",
  194.       "Data": null,
  195.       "InnerException": null,
  196.       "HelpURL": null,
  197.       "StackTraceString": null,
  198.       "RemoteStackTraceString": null,
  199.       "RemoteStackIndex": 0,
  200.       "ExceptionMethod": null,
  201.       "HResult": -2147467259,
  202.       "Source": null,
  203.       "WatsonBuckets": null,
  204.       "NativeErrorCode": 53
  205.     },
  206.     "HelpURL": null,
  207.     "StackTraceString": "   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
  208.    at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
  209.    at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
  210.    at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
  211.    at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
  212.    at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
  213.    at System.Data.SqlClient.SqlConnection.Open()
  214.    at SqlServerWrapper.SqlServer..ctor(String connectionStr)
  215.    at Forguncy.SqlServerDB.a()
  216.    at Forguncy.SqlServerDB.EnsureTableSchema(String tableSchema)
  217.    at ForguncyDataAccess.DataAccess.IsTableRealExistInDataBase(String tableSchema, String tableName, String connectionStr, DataBaseType type)
  218.    at ForguncyDataAccess.DataAccess.IsTableExist(String tableName)
  219.    at ServerDesignerCommon.Common.EnsureDatabase.m()
  220.    at ServerDesignerCommon.Common.EnsureDatabase.s()
  221.    at ServerDesignerCommon.Common.EnsureDatabase.EnsureAsync()
  222.    at Forguncy.UserService2.UserServiceDBHelper.EnsureTablesAsync()
  223.    at Forguncy.UserService2.Startup.c()",
  224.     "RemoteStackTraceString": null,
  225.     "RemoteStackIndex": 0,
  226.     "ExceptionMethod": null,
  227.     "HResult": -2146232060,
  228.     "Source": "Core .Net SqlClient Data Provider",
  229.     "WatsonBuckets": null,
  230.     "Errors": null,
  231.     "ClientConnectionId": "00000000-0000-0000-0000-000000000000"
  232.   },
  233.   "HelpURL": null,
  234.   "StackTraceString": "   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
  235.    at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
  236.    at Forguncy.UserService2.Startup.ConfigureServices(IServiceCollection services)
  237.    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
  238.    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
  239.    at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
  240.    at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
  241.    at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
  242.    at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
  243.    at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.UseStartup(Type startupType, HostBuilderContext context, IServiceCollection services)
  244.    at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.<>c__DisplayClass12_0.<UseStartup>b__0(HostBuilderContext context, IServiceCollection services)
  245.    at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
  246.    at Microsoft.Extensions.Hosting.HostBuilder.Build()
  247.    at Forguncy.ForguncyServerCommon.ProgramBase.DoStartServerAction(String baseAddress, List`1 urls, Action`1 action)
  248.    at ForguncyServerConsole.Program.DoStartServer(String baseAddress, List`1 urls)
  249.    at ForguncyServerConsole.Program.<>c.<StartServer>b__3_0(String baseAddress, List`1 urls)
  250.    at Forguncy.ForguncyServerCommon.ProgramBase.StartServerAction(String baseAddress, Action`2 action)",
  251.   "RemoteStackTraceString": null,
  252.   "RemoteStackIndex": 0,
  253.   "ExceptionMethod": null,
  254.   "HResult": -2146233088,
  255.   "Source": "System.Private.CoreLib",
  256.   "WatsonBuckets": null,
  257.   "InnerExceptions": {
  258.     "$type": "System.Exception[], System.Private.CoreLib",
  259.     "$values": [
  260.       {
  261.         "$type": "System.Data.SqlClient.SqlException, System.Data.SqlClient",
  262.         "ClassName": "System.Data.SqlClient.SqlException",
  263.         "Message": "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)",
  264.         "Data": {
  265.           "$type": "System.Collections.ListDictionaryInternal, System.Private.CoreLib",
  266.           "HelpLink.ProdName": "Microsoft SQL Server",
  267.           "HelpLink.EvtSrc": "MSSQLServer",
  268.           "HelpLink.EvtID": "53",
  269.           "HelpLink.BaseHelpUrl": "https://go.microsoft.com/fwlink",
  270.           "HelpLink.LinkId": "20476",
  271.           "SqlError 1": "System.Data.SqlClient.SqlError: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"
  272.         },
  273.         "InnerException": {
  274.           "$type": "System.ComponentModel.Win32Exception, Microsoft.Win32.Primitives",
  275.           "ClassName": "System.ComponentModel.Win32Exception",
  276.           "Message": "找不到网络路径。",
  277.           "Data": null,
  278.           "InnerException": null,
  279.           "HelpURL": null,
  280.           "StackTraceString": null,
  281.           "RemoteStackTraceString": null,
  282.           "RemoteStackIndex": 0,
  283.           "ExceptionMethod": null,
  284.           "HResult": -2147467259,
  285.           "Source": null,
  286.           "WatsonBuckets": null,
  287.           "NativeErrorCode": 53
  288.         },
  289.         "HelpURL": null,
  290.         "StackTraceString": "   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
  291.    at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
  292.    at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
  293.    at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
  294.    at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
  295.    at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
  296.    at System.Data.SqlClient.SqlConnection.Open()
  297.    at SqlServerWrapper.SqlServer..ctor(String connectionStr)
  298.    at Forguncy.SqlServerDB.a()
  299.    at Forguncy.SqlServerDB.EnsureTableSchema(String tableSchema)
  300.    at ForguncyDataAccess.DataAccess.IsTableRealExistInDataBase(String tableSchema, String tableName, String connectionStr, DataBaseType type)
  301.    at ForguncyDataAccess.DataAccess.IsTableExist(String tableName)
  302.    at ServerDesignerCommon.Common.EnsureDatabase.m()
  303.    at ServerDesignerCommon.Common.EnsureDatabase.s()
  304.    at ServerDesignerCommon.Common.EnsureDatabase.EnsureAsync()
  305.    at Forguncy.UserService2.UserServiceDBHelper.EnsureTablesAsync()
  306.    at Forguncy.UserService2.Startup.c()",
  307.         "RemoteStackTraceString": null,
  308.         "RemoteStackIndex": 0,
  309.         "ExceptionMethod": null,
  310.         "HResult": -2146232060,
  311.         "Source": "Core .Net SqlClient Data Provider",
  312.         "WatsonBuckets": null,
  313.         "Errors": null,
  314.         "ClientConnectionId": "00000000-0000-0000-0000-000000000000"
  315.       }
  316.     ]
  317.   }
  318. }

  319. CurrentMethodName: StartServerAction
  320. Tid:1 2021/10/8 9:07:57: ForguncyUserServiceConsole ..\..\Forguncy.UserService2 is exited
复制代码

回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部