【发布时间】:2021-07-03 00:54:26
【问题描述】:
我正在尝试启动我一直在构建的 Photon Server。我听说 Photon Server 和 Unity3D 不直接支持 .net5,但必须有一个解决方法才能使这项工作。这是创建 Photon Server 的第一次尝试。启动我的 .net5 独立服务器时,我的项目日志中出现此错误:
29244: 18:45:31.948 - CService::OnException() - 异常:CManagedHost::StartApplication() - 无法在 AppDomain 中启动应用程序:2 - 系统找不到指定的文件。
我希望日志能告诉我他们找不到什么文件。
在我的 PhotonCLR.Log 中,我注意到我的 ConfigurationFile 和 CachePath = ',在我正在观看的教程中提到这是 Photon 的一个问题。 Tutorial Series 谢谢克里斯蒂安·理查兹。
INFO PhotonHostRuntime.PhotonDomainManager - CreateAppDomain: name = 'TestServer' , assemblyName = 'PhotonServer' 信息 PhotonHostRuntime.PhotonDomainManager - ApplicationBase = 'C:\Users\user\Documents\Photon Server SDK\deploy' 信息 PhotonHostRuntime.PhotonDomainManager - PrivateBinPath = 'bin_Win64;Shared;C:\Users\user\Documents\Photon Server SDK\deploy\TestServer\bin;'
INFO PhotonHostRuntime.PhotonDomainManager - ConfigurationFile = ''
INFO PhotonHostRuntime.PhotonDomainManager - CachePath = ''
INFO PhotonHostRuntime.PhotonDomainManager - ApplicationPath = 'C:\Users\user\Documents\Photon Server SDK\deploy\TestServer' 信息 PhotonHostRuntime.PhotonDomainManager - BinaryPath = 'C:\Users\user\Documents\Photon Server SDK\deploy\TestServer\bin' 信息 PhotonHostRuntime.PhotonDomainManager - ApplicationRootPath = 'C:\Users\user\Documents\Photon Server SDK\deploy' 信息 PhotonHostRuntime.PhotonDomainManager - UnmanagedLogPath = 'C:\Users\user\Documents\Photon Server SDK\deploy\bin_Win64\log'
使用 PhotonDomainManager 是否可以设置缓存路径和配置文件?还有它期望你可以设置什么文件?
如果我可以设置它,那将是一个很好的解决方法,或者 Photon Server 是否有其他选项可以运行?如果不是,我将不得不弄清楚如何将我的项目迁移回 .Net Framework 4.6.2 或 .Net Standard?我宁愿不这样做,因为有些项目与我的 WebApi 共享。共享的 2 个项目之一是 Entity Framework,它很难迁移到 .net 标准,另一个是我希望 WebApi、Blazor、Photon 和 Unity3D 使用的核心项目。
【问题讨论】:
标签: entity-framework server .net-5 photon