Can somebody tell me how to register mscomm32.ocx. I pasted it in system32 and then tried to register using "regsvr32 c:\windows\system32\mscomm32.ocx" . Even then i got some error message something like this:
"the file was loaded but it is unable to register error 0x8002801". I use 32 bit OS Windows 7
I would be pleased if someone helped me with this.
You may need to run in it as an administrator. My recommendation would be to start a command prompt as the administrator (right-click on the Command Prompt icon in the Start menu and select "Run as Administrator").
That's a guess based on this article - DLLRegisterserver failed with error code 0x8002801
Related
I just opened a PowerShell console on Windows 11, and after running any command, it showed a dialog with a message like:
/hostfxr.dll is either not designed to run on Windows is it contains and error
Any ideas?
Just download the last hostfxr.dll from this website and copy it to this directory:
C:\Program Files\PowerShell\7
When I execute the Get-CimInstance command in a Window 2016 Server, it is showing a popup to select "How do you want to open this file?". Screenshot attached. The same command works fine in other servers.
How to fix this issue? Is this PowerShell issue? I have the latest version of PowerShell.
enter image description here
I think because it's not running the command that error can be found before the execution in PS. It's not running it and checking with you what to run that command with. Weird that it's doing that. Anyone else use that server or just a lab?
Check the setting where it shows your 'default apps by type'. [.psc1](Windows Powershell Console File) needs to be set to Windows Powershell. [.ps1] should be set to notepad.
I've a Xerox DocuColor 250, and windows 10. I'm trying to fix a problem that will crash any program when I go to printer preferences.
The strange thing is that: if I open the control panel, printer preferences works good whitout any problem. But if I open printer preferences from for example Word the program will crash and close. On the event viewer I see:
The module that generated the error: harmony10.dll, version: 2.6.102.0.
The path: ": C:\Windows\system32\spool\DRIVERS\x64\3\harmony10.dll"
The error offset "0x00000000000f5dc0"
How is possible that the same thing on the control panel won't crash but with a program it crash with this error?
If the problem won't solved with some windows-tricks, how can I track and debug a program and check what thing don't work and trying to "hack" the dll to bypass the error?
Delete all software associated with the printer, open the command line
and execute the printui /s command.
Next, look for your printer and remove the driver completely.
then install driver into printer disk or download here http://www.support.xerox.com/support/docucolor-240-250/downloads/enus.html?operatingSystem=win10
Also, try to open a command prompt on behalf of the administrator and enter:
net stop spooler
del %systemroot%\system32\spool\printers\*.*
net start spooler
exit
There is a scheduled task that is attached to a custom event in the EventLog, it executes the lines below:
reconnect.cmd
c:\windows\system32\rasphone -f "phone_book.pbk" -d "vpn_connection"
net stop my_windows_service
net start my_windows_service
The task ususally runs normally without errors. But sometimes it returns error The application failed to initialize properly (3221225794). The task is configured to run under system account so it is supposed to have all required permissions to run that batch script.
Why do I keep getting this error? What can cause it and how do I debug it?
edit: start in option
The task uses "D:\" as working directory/start in location. The reconnect.cmd script is located at "D:\". Can this be the cause?
I posted this article earlier today on how to decode errors Error 2147463168 when trying to bind to an AD User Object
//
// MessageId: STATUS_DLL_INIT_FAILED
//
// MessageText:
//
// {DLL Initialization Failed}
// Initialization of the dynamic link library %hs failed. The process is terminating abnormally.
//
#define STATUS_DLL_INIT_FAILED ((NTSTATUS)0xC0000142L)
3221225794=0xC0000142 (use calculator)
This should identify which process (cmd or rasphone) and which dll.
You can also start in a debugger.
windbg or ntsd (ntsd is a console program and maybe installed). Both are also from Debugging Tools For Windows.
Download and install Debugging Tools for Windows
http://msdn.microsoft.com/en-us/windows/hardware/hh852363
Install the Windows SDK but just choose the debugging tools.
Create a folder called Symbols in C:\
Start Windbg. File menu - Symbol File Path and enter
srv*C:\symbols*http://msdl.microsoft.com/download/symbols
then
windbg -o -g -G C:\windows\system32\cmd.exe /k d:\batfile.bat
You can press F12 to stop it and kb will show the call stack (g continues the program). If there's errors it will also stop and show them.
Don't know why but running tasks under SYSTEM account was the cause. When we changed the account simply to local admin tasks ran flawlessly.
I am trying to get a project to build on a machine but i get the following:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(744,5): warning MSB3075: The command "regsvr32 /s "C:\builds\working\\Win32\Debug\projx86.dll"" exited with code 5. Please verify that you have sufficient rights to run this command.
The previous error was converted to a warning because the task was called with ContinueOnError=true.
Build continuing because "ContinueOnError" on the task "Exec" is set to "true".
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(756,5): error MSB8011: Failed to register output. Please try enabling Per-user Redirection or register the component from a command prompt with elevated permissions.
The user account i am using is an Administrator on the machine so should that not have the highest privileges?
I can go to the startup and right click and run as administrator and that might sort it, but im trying to do an automated build and run of this project, so i cant use that method.
Anyone know how i might fix this?
Solution Explorer ->[YourProject]->Properties->Linker ->General->Per-user Redirection "TRUE"
I found this same issue when working on an C++ ATL project.
In my case, when I added a new ATL class I was missing a line in the resource file (.rc) that adds a resource type "registry" of the new class resource file (.rgs) . This creates the same permission issue stated above.
#LittleFairy answer is probably the best. But you could run Visual Studio as administrator.
Note: You need to explicitly start Visual Studio as administrator. Just the user account having admin rights isn't enough.