C# console app crashes when called using shortcut

-2

I have a small C# console application that copy to a server, where it runs just fine.

However, if I call the .exe using a shortcut from another machine, it crashes. Any dependencies are also present on the calling machine.

In the eventview on the calling machine, all I'm getting is: Faulting module name:

KERNELBASE.dll, version: 6.2.14393.2189, time stamp: 0x5abdad60 Exception code: 0xe0434f4d

Any ideas to help?

c#
console
console-application
asked on Stack Overflow May 17, 2018 by jjespersen • edited May 17, 2018 by Hubii

1 Answer

0

The returned exception is an error with permissions - see the following MSDN forum post;

https://social.msdn.microsoft.com...

It surmises that by default .NET security does not allow you to run .NET programs directly from a network share. The error itself is from a COM object - "Exception from COM object".

answered on Stack Overflow May 17, 2018 by Grim

User contributions licensed under CC BY-SA 3.0