Gen .NET proxy sample test harness receives "(404) Not Found" error when execute the Gen .NET server already deployed to IIS.

book

Article ID: 7375

calendar_today

Updated On:

Products

CA Gen CA Gen - Build Tool CA Gen - Workstation Toolset CA Gen - Host Encyclopedia CA Gen - Run Time Distributed 3RD PARTY TSO

Issue/Introduction

Gen .NET server PStep TEST_SERVER has been generated, built, assembled and resulting msi file deployed to IIS.

After generation and build of .NET Proxy the sample APP test harness TestServerAppTest.exe fails when execute the server with error "(404) Not Found":

Invoking 'TestServer::Execute(imports)' method.

'TestServer::Execute(imports)' FAILED with exception:

GenException: [Function: NETDynamicCoopFlow::ProcessException]The remote server returned an error: (404) Not Found.

   at com.ca.gen.odc.coopflow.CoopFlow.PerformFlow(ITranEntry tran, IImportWrapper impWrapper, IExportWrapper expWrapper)

   at ca.TestServer.Execute(TestServerImport importView, String comCfg)

   at ProxyTestApplication.DoExecute()

Cause

Using "CMIDEBUG ON" in commcfg.txt to enable trace,  the trace.out file shows:

06/28/17-10:03:28:631544[4]: NETDynamicCoopFlow::DoFlow(): Remote Server Address: http://localhost:80/ca/TestServer.rem 

06/28/17-10:03:28:662792[4]: NETDynamicCoopFlow::ProcessException(): GenException created: 

06/28/17-10:03:28:662792[4]: GenException: [Function: NETDynamicCoopFlow::ProcessException]The remote server returned an error: (404) Not Found. 

Problem caused by customer's IIS deployment missing the handler mapping for *.rem files.

Environment

IIS 7.5, 8.5.NET Framework v4.0

Resolution

Add a handler mapping for *.rem files e.g.

Request path: *.rem 

Type: System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 

Name: HttpRemotingHandlerFactory-rem-Integrated-4.0

Request Restrictions:

  • Mapping: No changes 
  • Verbs tab: Select checkbox "one of the following verbs" and add these values GET,HEAD,POST,DEBUG 
  • Access tab: Select "Script"

Additional Information

Add a Managed Handler Mapping (IIS 7)