PhotonLicensing.dll exception

Options
I am seeing this exception, perhaps I am doing something wrong.
  1. Download latest Server SDK (Photon-OnPremise-Server-SDK_v4-0-29-11263)
  2. Open Lite solution.
  3. Edit PhotonServer.MyApp-Development.config: delete CLRVersion = "v2.0"
  4. Change MyApplication framework version to 4.5
  5. Run "MyApplication"
Result:
System.Exception

CallStack:
System.dll!System.ComponentModel.LicenseManager.ValidateInternalRecursive(System.ComponentModel.LicenseContext context, System.Type type, object instance, bool allowExceptions, out System.ComponentModel.License license, out string licenseKey) Unknown
System.dll!System.ComponentModel.LicenseManager.Validate(System.Type type) Unknown
PhotonLicensing.dll!PhotonHostRuntime.Licensing.Licensing() Unknown
[Native to Managed Transition]
[Native to Managed Transition]
mscorlib.dll!System.RuntimeType.CreateInstanceSlow(bool publicOnly, bool skipCheckThis, bool fillCache, ref System.Threading.StackCrawlMark stackMark) Line 5430 C#
mscorlib.dll!System.Activator.CreateInstance(System.Type type, bool nonPublic) Line 193 C#
mscorlib.dll!System.RuntimeType.CreateInstanceImpl(System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, object[] args, System.Globalization.CultureInfo culture, object[] activationAttributes, ref System.Threading.StackCrawlMark stackMark) Line 5275 C#
mscorlib.dll!System.Activator.CreateInstance(System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, object[] args, System.Globalization.CultureInfo culture, object[] activationAttributes) Line 107 C#
> mscorlib.dll!System.Reflection.Assembly.CreateInstance(string typeName, bool ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, object[] args, System.Globalization.CultureInfo culture, object[] activationAttributes) Line 982 C#
mscorlib.dll!System.Reflection.Assembly.CreateInstance(string typeName) Line 951 C#
PhotonHostRuntime.dll!PhotonHostRuntime.PhotonDomainManager.TryGetLicensingInstance() Unknown
PhotonHostRuntime.dll!PhotonHostRuntime.PhotonDomainManager.PhotonDefaultAppDomainBehavior.GetLicenseInformation(PhotonHostRuntimeInterfaces.IPhotonServerShutdown shutdown, out int maxConcurrentConnections, out string[] validIps) Unknown
PhotonHostRuntime.dll!PhotonHostRuntime.PhotonDomainManager.GetLicenseInformation(PhotonHostRuntimeInterfaces.IPhotonServerShutdown shutdown, out int maxConcurrentConnections, out string[] validIps) Unknown

______

I can still "Continue" and use the server through that exception, but I would like this to go away, I need to use newer NET version.

Comments

  • chvetsov
    Options
    @drawmaster77 hi
    could you provide you server config and log files from your machine from src-server/Lite/log?
    i did same as you and it works fine.

    best,
    ilya
  • drawmaster77
    edited November 2017
    Options
    Ilya, another step: before you run, make sure you have all CLR exceptions enabled.

    More strangeness: I've just tested with VS 2017 (without upgrading project) this exception does not happen, however it does happen in VS2013.

    Adding CLRVersion = "v2.0" back in and switching MyApplication back to 3.5 makes exception in 2013 go away.

    Log files and config files here: https://www.dropbox.com/s/wdr76ohleo1ztug/logAndConfig.zip

    However I don't see any exceptions raised in the log, and config is basically default config I downloaded minus CLRVersion = "v2.0" line

    It's possibly something to do with my VS2013, if there's no easy solution I will switch to 2017 since that seems to work fine.
  • chvetsov
    Options
    i do not have VS2013. i have only 2015 and 2017. because we are moving forward lets leave this old tool behind and use new tool.
    we discontinued to support really old develpers tool

    best,
    ilya