Rank: Newbie
Joined: 11/7/2018 Posts: 4 Location: Utrecht
|
Hallo Guys,
I just run default example C:\Program Files\Altova\StyleVisionServer2019\etc\examples\C# StyleVision 2019 Server and its fails on first line:
Code:static void Main(string[] args) { //Create a StyleVision Server object Altova.StyleVisionServer.Server objSVS = new Altova.StyleVisionServer.Server(); ...
Code:System.Runtime.InteropServices.COMException HResult=0x80040154 Message=Retrieving the COM class factory for component with CLSID {0F49E5DA-5879-4B18-BA2E-3AC02CAE5B44} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). Source=mscorlib StackTrace: at System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(RuntimeType objectType) at System.Runtime.Remoting.Activation.ActivationServices.CreateInstance(RuntimeType serverType) at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(RuntimeType serverType, Object[] props, Boolean bNewObj) at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at StyleVisionServerAPI_sample.Program.Main(String[] args) in C:\Program Files\Altova\StyleVisionServer2019\etc\examples\C#\Program.cs:line 8
Any ideas?
Thank you!
|
Rank: Advanced Member
Joined: 9/9/2005 Posts: 483 Location: AT
|
Hello,
Please follow the steps to correctly register the StyleVision Server DLL as detailed here
|