[BoltRelease package ERROR] TypeLoadException: Could not load type 'DotNetPlatform'

There's an fatal error on bolt release package.
Here's how to reproduce the bug:

1.I'm using unity5.6.3f1, create empty project, import bolt package.
2. DON'T need to import sample.unitypackage , just import the bolt_release.unitypackage,
3. then restart unity, run assets/bolt/install and assets/bolt/compile assembly, just following everything it states in https://doc.photonengine.com/en-us/bolt/current/setup/upgrading

then on my unity it prompts an error:
"System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded."

Note that everything here happens before I click "Play" button on editor.

Write a simple scripts to test it:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Bolt;

public class StartServer : MonoBehaviour {
public int port = 9000;

public UnityEngine.UI.Text txt;

// Use this for initialization
void Start () {
txt.text = "failed";
Debug.LogFormat("Start server ok @{0}", Time.frameCount);
txt.text = "connect ok !";


Then this error prompts :

TypeLoadException: Could not load type 'DotNetPlatform' from assembly 'udpkit.platform.dotnet, Version=, Culture=neutral, PublicKeyToken=null'.
BoltLauncher.Initialize (BoltNetworkModes modes, UdpEndPoint endpoint, .BoltConfig config, System.String scene) (at Assets/bolt/scripts/BoltLauncher.cs:110)
BoltLauncher.Initialize (BoltNetworkModes modes, UdpEndPoint endpoint, .BoltConfig config) (at Assets/bolt/scripts/BoltLauncher.cs:89)
BoltLauncher.StartServer (UdpEndPoint endpoint, .BoltConfig config) (at Assets/bolt/scripts/BoltLauncher.cs:52)
BoltLauncher.StartServer (UdpEndPoint endpoint) (at Assets/bolt/scripts/BoltLauncher.cs:44)
BoltLauncher.StartServer (Int32 port) (at Assets/bolt/scripts/BoltLauncher.cs:28)
StartServer.Start () (at Assets/Test/StartServer.cs:14)


Sign In or Register to comment.