Task Scheduler - Insufficient memory to continue the execution of the program - c#

I have a strange issue. I have built a C# console app that is loading PowerPoint PIA to parse the PowerPoint into slides, converts slides into images and compares the images with one another.
The problem is that when I run the exe using the console, it runs correctly having no problems, but when I set it in task scheduler and run from there, it throws an error "Insufficient memory to continue the execution of the program".
Any idea is welcome.
Thanx,
Ilija

In case the solution link dies at some point. The instructions that worked for me are:
・Windows 2008 Server x64
Please make this folder.
C:\Windows\SysWOW64\config\systemprofile\Desktop
・Windows 2008 Server x86
Please make this folder.
C:\Windows\System32\config\systemprofile\Desktop

Related

Msix, packaging and task scheduler

I made a console app using .NET 5.0 in VS2019 pro preview , packaged it with "Windows application packaging project" msix. Everything going smoothly and installed correctly, updates perfectly. Problem arises when I want to add this program to a task scheduler as the .exe file is located in C:\Program Files\WindowsApps\PackageName\Version...
1. Can't run it from the WindowsApps folder due to restrictions (As there are going to be multiple other users it's not feasible to make them all gain access).
2. The folder will change name if I push an update given the version nr.
Is there a way to do this correctly? Like a command to launch windows app files? Any help would be appreciated!
Have you tried defining an execution alias and specifying the alias name (not path) as target for the scheduled task?
This should solve both the permission and changing paths problem.

.net Application is slow on publish

I've made a sqlite DB application (.net Winforms) which is working fine. When I'm debuging the application in VS 2010 it starts up in 2-3 seconds. Also when i copy it to my desktop it is starting in this time. But when I'm making a setup which is installing to Program Files or Program Files (x86) it takes up to 10 minutes to start my application. Also when I start it from C:\ root. When I run it as administrator, or i provide a manifest to force administrator it takes 2-3 seconds.
On start up, i check with a few if File.Exists statements, if all dll's and files are in my folder.
I also have a log writer, which is creating a log file in AppData folder.
So i don't think I have any code part where administator rights were required.
Probably it could be the "SQLite.Interop.dll" but I'm not sure about this.
Hope someone could help me. If the are other questions or code is needed please ask.
Thanks
Martin
EDIT
Tried the application on a networkdrive, tooks 5 seconds to start without administrator.
I found out, that if i delete the language.sqlite file from my application folder, my application says language file missing. But when i reinsert the file, it keeps loading and loading.
Next test: I have added ALL System Dll's that I'm using in my application.
http://fs2.directupload.net/images/150611/3suqkzeq.png
(I can't post imags..)
This way it is working BUT only on the VM on my PC it isn't...

SHIM_NOVERSION_FOUND error while trying to run screensaver from preview

I have an not trivial task to do. I need to run website as a screensaver in windows 8. So I used next approach to achieve it:
http://www.codeproject.com/Articles/31376/Making-a-C-screensaver
The solution is working well when I run from the Visual studio or run a compiled .exe or .scr directly. But when I try to set the resulting .scr as a screensaver and try to push preview button in windows 8(on the same machine where the same .scr is running well) I get the error - "SHIM_NOVERSION_FOUND".
I found that this error can appear when required version of .NET framework is not installed, but it's not my case cause when I run directly that '.scr' it's working.
Thanks for any advance!
Problem has been solved, I've just put screensaver.scr to c:/temp folder and all started working, probably I didn't have some kind of rights to access screensaver from c:/windows/system32

ClickOnce windows application will not start

I have created a windows application using c# VS express 2012. The app works great in the VS environment. I have published the application using VS(ClickOnce) to the Desktop as an offline application, which does not check for updates. The app is not signed and security is disabled. The application seems to install fine when I run the setup.exe file. However, when I try to run the program from the start menu nothing happens. In the task manager, a process for the application appears for a few seconds then just goes away. The app window doesn't show and there aren't any indications of an error. If I navigate directly to the .exe of the app (%userprofile%\appdata\local\apps\2.0\%random id%......) and run it that way, it starts up and appears to function as designed. I've done some research and found that certain drivers and software (if installed) will cause this behavior (i.e. Kensington Mouse driver and Provencia software(?)). I've checked and I do not have either of these installed. Any help with this will be much appreciated.
Thanks in advance.

Fatal Execution Engine Error

All,
I have a console application which is written in .NET 3.5 which retrieves data from a database, does some calculations and post messages in a message queue.
I run the .exe on my PC which runs without any problems. Deploying the .exe in a 64 bit server the application suddenly stops without any errors and when I use the DebugView utility I can see the below error.
[6276] Fatal Execution Engine Error (7A09C12F) (80131506)
I tried compiling with x64, x86 and Any CPU but still the same problem. I tried deploying to another server and still same situation. Anyone has an idea how I should proceed to determine the root cause?
Many Thanks,
MK
Capture a crash dump and analyze it for the root cause.
Link
If you like, open a support case via http://support.microsoft.com

Categories

Resources