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

Document ID:  TEC1693958
Last Modified Date:  07/13/2017
{{active ? 'Hide' : 'Show'}} Technical Document Details

Products

  • CA Gen

Releases

  • CA Gen:Release:8.6
  • CA Gen:Release:8.5

Components

  • CA Gen Run Time, ASP.NET:CGRTNA
  • CA Gen Run Time, Proxies:CGRTP
Issue:

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

Environment:
IIS 7.5, 8.5 .NET Framework v4.0
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.

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:

Please help us improve!

Will this information enable you to resolve your issue?

Please tell us what we can do better.

{{feedbackText.length ? feedbackText.length : '0'}}/255

{{status}}

Not what you were looking for?

Search Again >

Product Information

Support by Product >

Communities

Join a Community >