Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MQ Classes for .NET (dotnet) - problems with Visual Basic.NET

132 views
Skip to first unread message

Paul Davies

unread,
Feb 9, 2004, 10:26:57 AM2/9/04
to
Has anyone succeeded in using the MQ Classes for .NET with Visual Basic
.NET?
========================================================

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!)


anhnt

unread,
Mar 1, 2004, 7:02:38 AM3/1/04
to
hi,Paul Davies I think that you must copy 2 files which was named
"gacutil.exe" and "gacutil.exe.config to a folder(assume that
"c:\winnt").after that You run ma7p.msi. anhnt

--
posted via MFF : http://www.MainFrameForum.com - USENET Gateway

anhnt

unread,
Mar 1, 2004, 7:02:39 AM3/1/04
to
hi,Paul Davies I think that you must copy 2 files which was named
"gacutil.exe" and "gacutil.exe.config to a folder which was set path in
environment variable(assume that "c:\winnt").after that You run ma7p.msi
files.It will call gacutil automaticly. anhnt

Paul Davies

unread,
Mar 13, 2004, 6:56:35 AM3/13/04
to
Hi
Thanks for the tip. I'll give it a try and post the outcome.
Paul
"anhnt" <mem...@mainframeforum.com> wrote in message
news:c1v8ov$9e54$2...@news.boulder.ibm.com...

Paul Davies

unread,
Mar 20, 2004, 1:52:40 AM3/20/04
to
Hi "anhnt"

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...

0 new messages