MQ

 View Only
Expand all | Collapse all

404 Error in IIS for .net 6 applicqion while using IBM MQ

  • 1.  404 Error in IIS for .net 6 applicqion while using IBM MQ

    Posted Mon February 26, 2024 12:32 PM

    Hi,

    I am using IBM MQ nuget package IBMXMSDotnetClient 9.3.4.1 (XMS.net). Visual Studio 2022 and .Net 6.

    My application is running fine in Visual Studio 2022 and as a Console application. However after launching the swagger in IIS I am getting below error - 

    I am not using any MQClient.ini as its not required by application.

    Application '/LM/W3SVC/6/ROOT' with physical root 'C:\inetpub\wwwroot\.Project.API\' hit unexpected managed exception, exception code = '0xe0434352'. First 30KB characters of captured stdout and stderr logs:
    'dspmqver' is not recognized as an internal or external command,
    operable program or batch file.
    Unhandled exception. System.IO.FileNotFoundException: Error reading the  directory.
       at System.IO.FileSystemWatcher.StartRaisingEvents()
       at System.IO.FileSystemWatcher.StartRaisingEventsIfNotDisposed()
       at System.IO.FileSystemWatcher.set_EnableRaisingEvents(Boolean value)
    at IBM.WMQ.MQClientCfg.CheckForMqclientIniFileChanges()
       at IBM.WMQ.Nmqi.NmqiEnvironment..ctor(NmqiPropertyHandler nmqiPropertyHandler)
       at IBM.WMQ.Nmqi.NmqiFactory.GetInstance(NmqiPropertyHandler properties)
       at IBM.XMS.Client.WMQ.Common.WmqPropertyHandler..ctor()
     at IBM.XMS.Client.WMQ.Factories.WmqConnectionFactory.InitialiseWMQConnectionFactory()
       at IBM.XMS.Client.WMQ.Factories.WmqConnectionFactory..ctor(XmsPropertyContext props)
       at IBM.XMS.Client.WMQ.Factories.WmqFactoryFactory.CreateProviderConnectionFactory(XmsPropertyContext properties)
       at IBM.XMS.Client.Impl.XmsConnectionFactoryImpl.SetProviderFactory()
       at IBM.XMS.Admin.Objects.MQConnectionFactory..ctor()
    at IBM.XMS.Admin.Objects.WmqXmsFactory.CreateConnectionFactory()
       at IBM.XMS.Client.Impl.XmsFactoryFactoryImpl.CreateConnectionFactory()
       at Gates.Crew.Backend.Services.DI.Extensions.AddIBMQueueIntegrationServices(IServiceCollection services, IConfiguration configuration) in 

    The apppool is set to Runtime - No managed code

    Any help appreciated.



    ------------------------------
    Shoeb Mirza
    ------------------------------


  • 2.  RE: 404 Error in IIS for .net 6 applicqion while using IBM MQ

    IBM Champion
    Posted Tue February 27, 2024 02:47 PM

    > 'dspmqver' is not recognized as an internal or external command,

    Did you install the MQ Client software on that server? If so, when running under IIS, does the application have permission to access the executables of MQ?

    later

    Roger



    ------------------------------
    Roger Lacroix
    CTO
    Capitalware Inc.
    London ON Canada
    https://capitalware.com
    ------------------------------



  • 3.  RE: 404 Error in IIS for .net 6 applicqion while using IBM MQ

    Posted Wed February 28, 2024 01:07 PM
    Edited by Andres Parada Fri March 01, 2024 02:18 PM

    Ensure that the IBM MQ client is properly installed on the server running IIS. Verify that the environment variables are set correctly, including PATH. Confirm that necessary DLLs are accessible by the application. Check if MQClient.ini is required despite stating otherwise. Ensure proper permissions for the application to access required directories. Review configuration settings for any discrepancies between the console application and IIS deployment. Apart from this, when I click on winch's post in this website, I often see this 404 error. But this link often times when I click on this link after some time or after a day, this 404 error has ended. I have come to know that this error is caused by the website and not by Google.



    ------------------------------
    moere bscc
    ------------------------------



  • 4.  RE: 404 Error in IIS for .net 6 applicqion while using IBM MQ