D
D Jarvie
A VB.NET 2003 application accesses a custom VB 6 DLL. It has run successfully
several months, and has been modified without problem a few times during that
period. Recently another set of changes were made to both the VB.NET code and
the DLL. The new version was successfully installed on our production server,
and ran without problem for 2 weeks until a scheduled reboot of the server
occurred. Since the reboot, the application always fails with the following
exception messages whenever the DLL is accessed. As far as can be
ascertained, no patches or further changes were applied either to the
application or to the server between installing the application and the
subsequent reboot.
The DLL in question is CmCalclib2.DLL, and PIACE.BaCPM.Compressor is defined
in VB.NET code.
Error: ---> System.InvalidCastException: QueryInterface for interface
CmCalclib2._Compressor failed.
at CmCalclib2.CompressorClass.set_Config(CMCompressor )
at PIACE.BaCPM.Compressor.InitialiseCompressor()
--- End of inner exception stack trace ---
at PIACE.BaCPM.Compressor.InitialiseCompressor()
at PIACE.BaCPM.Compressor.ACECalculations()
The program still runs successfully on a development server under the
debugger. There do not appear to be any security issues to prevent the DLL
being executed by the application (and in any case, no configuration changes
were made when the server was rebooted).
several months, and has been modified without problem a few times during that
period. Recently another set of changes were made to both the VB.NET code and
the DLL. The new version was successfully installed on our production server,
and ran without problem for 2 weeks until a scheduled reboot of the server
occurred. Since the reboot, the application always fails with the following
exception messages whenever the DLL is accessed. As far as can be
ascertained, no patches or further changes were applied either to the
application or to the server between installing the application and the
subsequent reboot.
The DLL in question is CmCalclib2.DLL, and PIACE.BaCPM.Compressor is defined
in VB.NET code.
Error: ---> System.InvalidCastException: QueryInterface for interface
CmCalclib2._Compressor failed.
at CmCalclib2.CompressorClass.set_Config(CMCompressor )
at PIACE.BaCPM.Compressor.InitialiseCompressor()
--- End of inner exception stack trace ---
at PIACE.BaCPM.Compressor.InitialiseCompressor()
at PIACE.BaCPM.Compressor.ACECalculations()
The program still runs successfully on a development server under the
debugger. There do not appear to be any security issues to prevent the DLL
being executed by the application (and in any case, no configuration changes
were made when the server was rebooted).