Error when running application scheduled task?
Build 3.22.335.0
My application creates the instance for the TXCTuner() appropriately when I am running the application by double clicking on it.
When I run my application via Windows Scheduler (mstask.exe), then it gives an exception "Retrieving the COM class factory for component with CLSID {EEBC6859-7D54-469F-82F9-563F7CC318F9} failed due to the following error: 8000401a."
I did find a registry key that helped in making this work via scheduler. If I remove the RunAs key, then scheduler works. Should we be doing this removal of key or is there a better way.
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppID\{FADB2675-3605-41f1-97CA-484FDF4198C0}]
@="TXCTuner"
"RunAs"="Interactive User"
You can do so. But please keep in mind that in this case an application started by TXCTuner probably will not be able to interact with the logged-in user. Thus, if that application displays some dialog or the like then the printing will freeze.
A better way is to add the principal your application is scheduled to run as, to the TXCTuner access list (dcomcnfg.exe->Component services->Computers->My Computer->DCOM config->TXCTuner->Properties->Security->Access Permissions).
Cookies are necessary in order to enable you to move around the website and use its features, including making purchases through our online store.
We need cookies in order to determine the number of unique users who visit the site, and to provide certain features, such as the login functionality.
We do not use cookies for advertising purposes.
By clicking Accept (or continuing to use the site) you are agreeing to our use of these tools. Learn More
These cookies are necessary for the website to function and cannot be switched off in PDF-XChange systems.
They are usually only set in response to actions made by you that result in a request for services, such as setting your privacy preferences, logging in, or filling in forms.
You can change the settings in your browser to block or alert you about these cookies, but doing so will result in some parts of the site losing functionality.
These cookies do not store any personally identifiable information.
You can contact us by phone, email or our social media accounts — we are here to assist you.