Error when starting Photon Application

Hi,

I'm seeing the following log when my application crashes on start up:

Exception:
System.IO.FileLoadException: Could not load file or assembly 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
File name: 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'
at Autofac.Builder.RegistrationData..ctor(Service defaultService)
at Autofac.Builder.RegistrationBuilder`3..ctor(Service defaultService, TActivatorData activatorData, TRegistrationStyle style)
at Autofac.Builder.RegistrationBuilder.ForType[TImplementer]()
at Autofac.RegistrationExtensions.RegisterType[TImplementer](ContainerBuilder builder)
at MMO.PhotonFramework.Application.PhotonApplication.Initialize(ContainerBuilder builder) in F:\Projects\ThoriumNET\MMO\MMO.PhotonFramework\Application\PhotonApplication.cs:line 80
at MMO.PhotonFramework.Application.PhotonApplication.Setup() in F:\Projects\ThoriumNET\MMO\MMO.PhotonFramework\Application\PhotonApplication.cs:line 57
at Photon.SocketServer.ApplicationBase.PhotonHostRuntimeInterfaces.IPhotonControl.OnPhotonRunning()
at PhotonHostRuntime.PhotonDomainManager.PhotonPlainAppDomainBehavior.PhotonRunning()
at PhotonHostRuntime.PhotonDomainManager.PhotonRunning()

I looked at the project and it is my Photon dlls referencing .NET 2.0.5 (SocketServer, RuntimeInterfaces, ExitGamesLibs, log4net, etc).

I don't quite understand this issue, could you advise me how to fix it?

Comments

  • Which .NET versions do you have installed on your machine? Photon requires .NET Framework 3.5, at least.
Sign In or Register to comment.