VS2017 Application will not start on windows server

Kent jeary 0 Reputation points
2023-11-27T19:40:04.8266667+00:00
Hi,
I have an application that was developed in Visual Studio 2017. The Application runs find on any Windows 10 Pro machine but will not even start when I try to run it on a windows server, and I tried it on several machines. However, all other applications developed in the same environment run fine on the server. 
The build is set for Any CPU.
Here are the error messages generate in the event viewer:

First this one:

Application: TimeClockCloud.exe

Framework Version: v4.0.30319

Description: The process was terminated due to an unhandled exception.

Exception Info: System.Runtime.InteropServices.COMException

   at System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(System.RuntimeType)

   at System.Runtime.Remoting.Activation.ActivationServices.CreateInstance(System.RuntimeType)

   at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(System.RuntimeType, System.Object[], Boolean)

   at System.RuntimeTypeHandle.CreateInstance(System.RuntimeType, Boolean, Boolean, Boolean ByRef, System.RuntimeMethodHandleInternal ByRef, Boolean ByRef)

   at System.RuntimeType.CreateInstanceSlow(Boolean, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)

   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)

   at System.Activator.CreateInstance(System.Type, Boolean)

   at System.Activator.CreateInstance(System.Type)

   at TimeClockCloud.Main..ctor()

Exception Info: System.InvalidOperationException

   at TimeClockCloud.My.MyProject+MyForms.Create__Instance__[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.__Canon)

   at TimeClockCloud.My.MyProject+MyForms.get_Main()

   at TimeClockCloud.My.MyApplication.OnCreateMainForm()

   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()

   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()

   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(System.String[])

   at TimeClockCloud.My.MyApplication.Main(System.String[])

And then this one


Faulting application name: TimeClockCloud.exe, version: 1.0.0.0, time stamp: 0x654cf63a

Faulting module name: KERNELBASE.dll, version: 10.0.14393.6343, time stamp: 0x6502751d

Exception code: 0xe0434352

Fault offset: 0x000dcd42

Faulting process id: 0x2308

Faulting application start time: 0x01da1e36ae33e42c

Faulting application path: C:\Temp\TimeClock\TimeClockCloud.exe

Faulting module path: C:\Windows\System32\KERNELBASE.dll

Report Id: 7a23b313-e6be-4ae0-b1ea-1bb7a4e5335a

Faulting package full name: 

Faulting package-relative application ID: 

Help

Thanks
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,854 questions
{count} votes