NotImplementedException: Unmanaged activation is not supported
I'm getting the error NotImplementedException: Unmanaged activation is not supported
The error is caused by the System function GetTypeFromProgIDImpl
System.RuntimeType.GetTypeFromProgIDImpl (System.String progID, System.String server, System.Boolean throwOnError)
Called by
System.Type type = System.Type.GetTypeFromProgID(progID, hostName, true);
This exception is not thrown when running in Windows Command Prompt but it does it running on Unity. What could cause this different behaviour?
This is a simple code that is throwing me this exception:
using UnityEngine;
using System;
public string pid = "program";
public string hostName = "localhost";
public void executeSysFunc()
{
System.Type type = System.Type.GetTypeFromProgID(pid, hostName, true);
Debug.Log(type.Name);
}
Comment
Your answer
Follow this Question
Related Questions
Error in using WMI to catch logical drives events 0 Answers
How to patch on Windows build game 0 Answers
Windows Store build errors inside Unity 1 Answer
Unity Error Please I need Help 0 Answers
Can I run this(pretty please?) 0 Answers