0

サーバーコードを含むアプリを取得しました。Photon Serverで実行しようとしましたが、 PhotonHostRuntimeInterfacesで例外を受け取りました。バージョンに問題があると思います。そのような問題をたくさん検索しましたが、私は本当に新しいですサーバープログラミングで、誰でもこの問題を手伝ってもらえますか?

ログは次のとおりです。

*System.Exception: Stop: unable to call the Application.TearDown() - undefined photonControl.
   в PhotonHostRuntime.PhotonDomainManager.PhotonPlainAppDomainBehavior.Stop()
   в PhotonHostRuntime.PhotonDomainManager.Stop()
6336: 10:34:55.862 - ERROR: Failed to start application: "RagingServer" in app domain: 2
6336: 10:34:55.863 - CService::OnException() - Exception: CManagedHost::StartApplication() - Failed to start application in AppDomain: 2 - Could not load file or assembly "PhotonHostRuntimeInterfaces, Version=3.56.0.0, Culture=neutral, PublicKeyToken=6cb1467adaa73020"or one of their dependencies. The obtained assembly manifest definition does not match the assembly reference  (Исключение из HRESULT: 0x80131040)
6336: 10:34:55.863 - Server shutting down...*

そのような解決策も見つけました:

<dependentAssembly>
      <assemblyIdentity name="PhotonHostRuntimeInterfaces" publicKeyToken="6cb1467adaa73020"               culture="neutral" />
      <bindingRedirect oldVersion="3.56.0.0" newVersion="3.58.0.0" />
    </dependentAssembly>

しかし、どこに入れるべきかわかりませんPhotonServer.config

4

1 に答える 1

0

これは通常、AssemblyName.dll.config のようなアプリケーション構成に配置されます。例とドキュメントについては、こちらをご覧ください

問題に戻ると、少なくとも 2 つのオプションがあります。1. SDK のバージョンが混在している。Photon SDK バージョン v3.4.27 は、PhotonHostRuntimeInterfaces.dll、バージョン = 3.56.0.0 を使用しています。これは、sdk lib フォルダーと「deploy\bin_Win64」にあります。新しいバージョンの SDK は、PhotonHostRuntimeInterfaces.dll のバージョン 3.58 を使用します。開発者のマシンをアップグレードした可能性がありますが、サーバーはアップグレードしていません

  1. この dll を追加するのをまったく忘れていました。アプリケーションのbinフォルダーにある必要があります

これがあなたを助けることを願っています

-フォトニアン

于 2016-05-09T12:00:08.397 に答える