Failed to load control 'imagelist' from mscomctl.ocx on Windows server 2003 - asp.net

I am working on windows server 2003. The program written in VB was working fine previously.
But now it starts to show error message :
failed to load control 'imagelist' from mscomctl.ocx. Your version of
mscomctl.ocx may be outdated. [...]
How can i check if mscomctl is registred or not and also what version i am using?

Download the mscomctl.ocx file from microsoft download center, then learn on how to register an activeX control manually!

Unregister and register mscomctl.ocx:
cd /d C:\Windows\SysWOW64
regsvr32 /u /s mscomctl.ocx
regsvr32 /s mscomctl.ocx
Explanation: In most cases isn't OCX file rewritten by an older version, but the older version is placed in some directory by an incorrect setup program and registered in this new place. So it is sufficient to unregister & register again. regsvr32.exe takes the right one from C:\Windows\SysWOW64 folder.

Also, maybe not the most probable cause, but could save some time: disk space.
We had this issue on our VM, we got this message and we figured out we had no byte left on the C: drive. The issue didn't occur after some cleaning.

Related

SABRE RedWeb Installation / Getting Started

I did the basic installation of the SabreRedWeb-SDK-20.11.6 and then clicked on the ConciergeInstaller-5.7.0-1.0.4.exe and it seems to have installed properly. The web instructions found here don't match the video.
Web Instructions (I'm following the Concierge install section)
https://developer.sabre.com/sdks/travel-agency/sabre-red-360/getting-started
Video Explanation here...
https://www.youtube.com/watch?v=ZgwbISnB35Y&list=PLgSinp8nTL3F1IOGQ9Jbuf7m_GDCCHZAF&index=1
At 1:45 of the video they mention doing a ngv...
Well, I assume I do that in the node installation which by default was put here...
C:\Program Files\Concierge\node
But when I do ngv when running node.exe
Thrown:
ReferenceError: ngv is not defined
I'm thinking I need to be running the concierge tool itself and not node directly.
You use a command prompt to do the ngv build etc...
Thereafter I am using Visual Studio Code and everytime I save the files the terminal does the save and "re-build" or I suppose it is "re-run".

How can I open edumips.jar?

I want to run edumips.jar. Whenever I try to open, Java control panel is opened.
When I execute:
strong text
It is first time to download java and excecute .jar file.
What I want:
Please tell me what I'm doing wrong...
UPDATE: there is now an MSI installer for EduMIPS64 which allows you to install and run the simulator without worrying about installing a JRE and configuring it: https://github.com/EduMIPS64/edumips64/releases/download/v1.2.8/EduMIPS64-1.2.8.msi (version 1.2.8 was released at the time of updating this answer, there might be more recent ones).
You need to make sure the Java runtime is associated with the .jar extension to open it with double-click.
To open it once, try right-clicking on the JAR file select Open With... and find the Java runtime binary (it's "OpenJDK Platform Binary" on my Windows machine).
You may also be able to fix this by re-installing the Java Runtime (JRE): usually installers associate .jar files to the Java binary automatically.
Worst case, if Java is installed and the PATH is set up correctly, you can run it from the command line by using the command java -jar edumips64-1.2.6-standalone.jar.
To open the command line, press Win+x and choose Windows PowerShell. Your JAR might be in the Downloads directory so try java -jar Downloads\edumips64-1.2.6-standalone.jar.

32-bit DLL "may not compatible" on Server 2008, but works on Server 2003

We have a project that compiles to a 32-bit COM DLL and to a 64-bit COM DLL (the same one from my earlier question). When I register both on my Windows 7 machine, both register successfully. When I register both on a Windows Server 2003 machine, both register successfully.
But when I try to register the DLLs on a Windows Server 2008 R2 standard SP1 machine, the 64-bit DLL registers successfully, but the 32-bit DLL fails with the message (sic):
The module ""%1"" may not compatible with the version of Windows that you're running.
Check if the module is compatible with an x86 (32-bit) or x64 (64-bit) version of regsvr32.exe.
I don't think a 32-bit DLL can be compatible with WS2003 and Win7 but not WS2008. That makes no sense.
What might be happening?
The version of Regsvr32.exe must match the 32-/64-bitness of the dll you're trying to register. The 64-bit regsvr32 cannot load a 32-bit dll, and vice versa.
You may need explicitly call the 32-bit version of regsrv32 located in %systemroot%\SysWoW64\regsvr32.exe.
From http://support.microsoft.com/kb/249873
Regsvr32.exe is included with Microsoft Internet Explorer 3.0 or later versions, Windows 95 OEM Service Release 2 (OSR2) or later versions, and Windows NT 4.0 Service Pack 5 (SP5) or later versions. Regsvr32.exe is installed in the System (Windows Me/Windows 98/Windows 95) or System32 (Windows NT/Windows XP/Windows Vista/Windows 7) folder.
Note On a 64-bit version of a Windows operating system, there are two versions of the Regsv32.exe file:
The 64-bit version is %systemroot%\System32\regsvr32.exe.
The 32-bit version is %systemroot%\SysWoW64\regsvr32.exe.
Regsvr32.exe usage
RegSvr32.exe has the following command-line options:
Regsvr32 [/u] [/n] [/i[:cmdline]] dllname
/u - Unregister server
/i - Call DllInstall passing it an optional [cmdline]; when used with /u calls dll uninstall
/n - do not call DllRegisterServer; this option must be used with /i
/s – Silent; display no message boxes (added with Windows XP and Windows Vista)
When you use Regsvr32.exe, it attempts to load the component and call its DLLSelfRegister function. If this attempt is successful, Regsvr32.exe displays a dialog box that indicates success. If the attempt is unsuccessful, Regsvr32.exe returns an error message. This may include a Win32 error code. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
193625 WinInet error codes (12001 through 12156)
This isn't likely to be the problem in your case, but might be useful for others who find this question by searching on the same error message:
I had a similar problem: a DLL that wouldn't register with either the 32-bit or 64-bit version of RegSvr32. I loaded the DLL the Dependency Walker (depends.exe, http://www.dependencywalker.com/) and got a much more useful message:
Error: At least one file was not a 32-bit or 64-bit Windows module.
Scanning the CPU column in the Module List identified the offending module. (In my case, it said "No DOS or PE signature found. This file is not a valid 32-bit or 64-bit Windows module.")
Moral: The Dependency Walker might give you a more useful error message than RegSvr32.exe.
I got it registered by moving the dll to the c:\windows\syswow64\ directory (it wouldn't work in the system32 directory) and then explicitly calling syswow64\regsvr32, eg
c:\windows\syswow64\regsvr32 yourdll.dll
btw it wouldn't work when calling c:\windows\syswow64\regsvr32 c:\windows\syswow64\yourdll.dll
Use Process Monitor from SysInternals.
1. Filter by "Process Name" = regsvr32.exe.
2. Try to register your DLL file from the correct version of regsvr32.exe (the 32-bit version is in the SysWow64 folder)
3. Process Monitor will trace EVERYTHING that is happening on your computer.
4. First start your analysis by eliminating the registry events (for now):
5. You may be able to see which DLL file is found and not found.
Here a (very) partial screenshot of regsvr32.exe of Threed32.ocx where we can see some of the required DLL files:
6. Your work is just starting. From now.
I have the same problem, but I resolve it with commands
CD \windows\syswow64
regsvr32 c:\filename. dll
Running the command prompt as administrator fixed my issue.

System.EnterpriseServices.Wrapper.dll error

Parser Error Description: An error occurred during the parsing of a
resource required to service this request. Please review the following
specific parse error details and modify your source file
appropriately.
Parser Error Message: Could not load file or assembly
'System.EnterpriseServices.Wrapper.dll' or one of its dependencies.
(Exception from HRESULT: 0x800700C1)
Source Error:
Line 1: <%# Application Codebehind="Global.asax.cs"
Inherits="PMP.MvcApplication" Language="C#" %>
Yesterday, I shut up my Windows 7, an Windows update was pending there without any process for nearly one hour, then I shut my laptop. When I re-opened my Windows 7 and ran the PMP MVC application, this error occurred. I finished that pending windows update. That did not fix the issue.
I googled to find that should re-install .net framework 1.1/2.1, I tried but nothing good happened. This error always here. I spent 4 hrs re-installing VS 2010, but it didn't resolve the issue.
How can I fix this issue?
[Update]:
I tried this,
"C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\gacutil.exe" /i Microsoft.NET/Framework/v2.0.50727/System.EnterpriseServices.dll
"C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\gacutil.exe" /i Microsoft.NET/Framework/v2.0.50727/System.EnterpriseServices.dll
to found that gacutil.exe in v6.0A is 0kb. Then replace the file in v7.0A to v6.0A. This didn't solve the issue either.
This happened to me when I had installed windows updates (and .Net 4.5.2 update) but was putting off the restart. Restarting my computer and thus allowing the updates to finalize fixed the issue.
Copy the file System.EnterpriseServices.Wrapper.dll
from
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
to
C:\WINDOWS\WinSxS\x86_System.EnterpriseServices_b03f5f7f11d50a3a_2.0.0.0_x-ww_7d5f3790\
I fixed the
System.EnterpriseServices.Wrapper.dll
by installing .NET framework 3.5.
The Framework 3.0 caused the problem.
I was stuck on this for weeks. Tried the file moving. Tried deleting bin. Tried deleting nuget files. Tried reinstalling all dotnet frameworks, all dotnet core sdks/runtimes. Tried Admin. Tried reopening solution. Restarted my computer 100 times. Tried VS 2019 and 2017.
(On Windows 10)
The only thing that ended up working was Reinstalling Windows. Settings -> Recovery -> Get Started -> Keep my files.
delete bin folder in project, then rebuilt it.
In one case, the System.EnterpriseServices.dll had been checked into version control and was read only. Simply deleting that individual dll and rebuilding fixed the issue.
run Visual Studio as Administrator works for me
For me , I just close the solution and reopen. Its solved.
I just stop IIS Express and run again my application.
Old thread, but the gacutil trick worked for me. Note - open Developer Command Prompt as Administrator.

Where to get this Java.exe file for a SQL Developer installation

I just installed Oracle 11g, and tried to start Oracle SQL developer so as to start writing queries.
It is asking me:
Enter the full pathname for the java.exe file .
Where do I find this? I did a global search for java.exe and am sure did not get some Oracle related pdf files. Also my Oracle is installed out of users/vas.
I found my java.exe that worked for SQL Developer at C:\ORACLE11G\product\11.2.0\client_1\jdk\bin where C:\ORACLE11G is my Oracle Home. The client that I have installed is 11.2.0.
Hope this helps.
I encountered the following message repeatedly when trying to start SQL Developer from my installation of Oracle Database 11g Enterprise: Enter the full pathname for java.exe.
No matter how many times I browsed to the correct path, I kept being presented with the exact same dialog box. This was in Windows 7, and the solution was to right-click on the SQL Developer icon and select "Run as administrator". I then used this path: C:\app\shellperson\product\11.1.0\db_1\jdk\jre\bin\java.exe
You need to install JAVA SDK
and give the path upto bin directory which contains the java.exe file.
example - c:/programfiles/java/jdk/bin
Hhere is what what I did to fix it:
Prerequisite
Make sure JDK is installed (Not JRE).
Make sure Oracle is installed
After
Open the file ..\sqldeveloper\sqldeveloper\bin\sqldevloper.conf and add the following line to set jdk path:
SetJavaHome C:\Program Files\Oracle\11g\product\11.1.0\client_1\jdk
If it dont allow you to save the file, copy whole sqldeveloper folder to a different location where you have write access to modify this file.
Run sqldeveloper.exe (from the new place if you moved the folder out from oracle folders) as administrator and enter the jdk path that comes with your oracle installation: e.g. C:\Program Files\Oracle\11g\product\11.1.0\client_1\jdk\bin
You have to give the path to jdk ...typically C:\Program Files\Java..
Still if it is asking you for the path then
Check this http://www.shellperson.net/oracle-sql-developer-enter-the-full-pathname-for-java-exe/
Please provide full path >
In mines case it was E:\app\ankitmittal01\product\11.2.0\dbhome_1\jdk\bin\java.exe
From : http://www.javamadesoeasy.com/2015/07/oracle-11g-and-sql-developer.html
[Context]
In a virtual machine of WinXP.
My "java.exe" was in the Oracle11g folder, under the path "C:\Oracle11g\product\11.2.0\dbhome_1\jdk\bin\java.exe".
Hope it helps!!
If you have Java installed, java.exe will be in the bin directory. If you can't find it, download and install Java, then use the install path + "\bin".
If you don't want to install Java or you just want to get started writing queries quickly, then use SQL*Plus, which is the command line too.
It's not pretty, but will get you started quickly and there is Oracle documentation on it.
you can enter the jdk path required as th full path for java.exe in sql developer for oracle 11g.
I found the jdk at the following path in my system.
c:\app\sony\product\11.0.0\db_1\jdk
Use any JDK installation as long as it is NOT 64bit.
The easiest way to find out if it is 64bit installation is to check the folder it resides into.
e.g.
C:\Program Files\... is for 64 bit programs
C:\Program Files (x86)\... is for 32 bit programs
You must install the latest Java SE Development Kit (note not the Java SE Runtime Environment ) and provide the path ex C:\Program Files\Java\jdk1.6.0_41
you should browse to where java installed, then go to bin directory which contains the java.exe file.
example - C:\Program Files\Java\jdk1.6.0_03\bin\java.exe
but you should run your SQL Developer as Administrator
If you are asked to enter the full pathname for the JDK, click Browse and find it. For example, on a Windows system the path might have a name similar to C:\Program Files\Java\jdk1.7.0_51.

Resources