I have compiled the sample programs provided with the MQ 5.3 Client (eg
XMQSGET.EXE) using bldvbsamp.bat (also provided) but cannot get them to
work.
I am using Visual Basic Standard Edition (within Visual Studio .NET 2003)
and the .NET Framework SDK version v1.1
I get the message:
"File or assembly name amqmdnet, or one of its dependencies, was not found."
[ Details available ]
So then I copy the file amqmdnet.dll into the folder containing the
executable (XMQSGET.EXE) and retry. Now the message is:
"Strong name validation failed for assembly 'amqmdnet'." [ Details
available ]
The manual (GC34-6328-02) suggests:
"
You might see the following common error message:
An unhandled exception of type 'System.IO.FileNotFoundException' occurred
in unknown module
If this error occurs, either ensure the amqmdnet.dll is registered in the '
Global Assembly Cache'
or create a configuration file that points to the amqmdnet.dll assembly.
"
Later it states:
"
Before running WebSphere MQ .NET programs, you must ensure the CLR can
locate the .NET Assembly. This can be done by either:
* registering amgmdnet.dll in the 'Global Assembly Cache'.
The command to register the assembly is:
gacutil -i mqmtop\bin\amqmdnet.dll.
or
* creating a 'configuration file' for the WebSphere MQ .NET program.
The configuration file should tell the CLR how to locate the amqmdnet.dll
assembly.
"
------------------------
I have tried running gacutil (as shown above), literally as follows:
"
C:\Program Files\IBM\WebSphere MQ\bin>gacutil -i amqmdnet.dll
"
but it reports:
"
Microsoft (R) .NET Global Assembly Cache Utility. Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
Failure adding assembly to the cache: Strong name signature could not be
verified. Was the assembly built delay-signed?
"
I have not tried creating a configuration file as the CLR has no difficulty
locating the assembly, it just does not like what it sees!
Can anyone help me solve this mystery please?
Paul Davies (not a VB expert!)
--
posted via MFF : http://www.MainFrameForum.com - USENET Gateway
It worked! - thanks very much for the tip.
For the record: - I copied the two files: gacutil.exe and gacutil.exe.config
together with the amqmdnet.dll file into C:\WINNT and re-ran the ma7p.msi
install.
I do not understand why it worked but then ther is a lot I don't understand!
Thanks again.
Paul Davies
"anhnt" <mem...@mainframeforum.com> wrote in message
news:c1v8ov$9e54$2...@news.boulder.ibm.com...