Wednesday, December 29, 2010

AgilePoint Web Application - SetClientAppName Error

 

A customer is migrating the AgilePoint web application to a new machine and got below error. The web application and AgilePoint Server are located on two different machines. These two machines are referred as web server and AgilePoint Server in below context.

The web service call "SetClientAppName" throws an exception.


The Exception Message:
  System.Web.Services.Protocols.SoapException SoapException System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://tempuri.org/SetClientAppName

Code Snippet that makes the web service call:
                // Workflow Web Service
                _logger.Trace("Creating workflow service");
                WorkflowService api = new WorkflowService(url);

                _logger.Trace("Applying credentials and cookie container");
                api.CookieContainer = cookieContainer;
                api.Credentials = credentials;

                // this app name needs to be registred in AP Config utils, Extensions,
                // along with the impersonator: domain\name of the credentials above
                _logger.Trace("Setting AgilePoint \"impersonation\" values");
                api.SetClientAppName("PerillonWorkspace");
                api.SetClientLocale("en-US");

System Details:
Agile point server: Ver. 5.0.

 

Troubleshooting:

  • In the web server (not AgilePoint Server), try to browse the workflow.asmx file (http://MyAPServer.MyDomain.com:9001/AgilePointServer/Workflow.asmx). Get the AgilePoint Server URL from the web.config file of the web app. This is to check if there is any communication error between AgilePoint Server and the web server.
  • If the AgilePoint Server is set up correctly, the workflow.asmx page shall load correctly. If you are asked for username and password, that means AgilePoint Server is not set up properly.
  • Check the followings:
    • Make sure the Windows Authentication is enable for AgilePoint web site, and it's parent node in IIS.
    • Make sure the user account used for the Application Pool of AgilePoint Server is included in the local machine administrator group and IIS_WGP group.
    • Refer to Pre-Installation Guide for other important setup details.
    • Make sure the AgilePoint URL in the web.config of the web application is a correct URL. It is best to use DNS name in the URL, instead of IP address.
    • When loading the workflow.asmx file within the web server, check if it is recognized as a "Internet" site at the right bottom corner of IE. AgilePoint Server shall be recognized as a "Intranet" site to the web server. If AgilePoint Server is recognized as "Internet" site, you may temporary add AgilePoint URL into the Intranet zone of the web server (at Internet Option of IE). But, the best way to configure this is to set up a trust between AgilePoint Server and the web server. Your network admin shall be able to help you on this.

2 comments:

  1. Hi Choyling,

    Even I am facing the same error while migrating work to agilepoint 5.0

    While debugging got to know that it throws http 404 exception at api.SetClientAppName("WebApplication44");

    It used to work very well is the previous version of the agilepoint.

    I am able to access this url :-
    http://localhost:9000/AgilePointServer/Workflow

    But I am not able to access the workflow.asmx
    I guess I am not able to create the correct url for the same.

    Please help me on this.

    Thanks in advance.

    ReplyDelete
  2. I am also not able to add server to the agilepoint deployment utility.

    error:-
    "failed to connect to server deployment service". could not connect to http://demo3:8917/deploy. TCP error code 10061 : No connection could be made because the target machine actively refused it 127.0.0.1:8917

    Tried using different ports and hostname , but nothing worked.

    what could be the reason ??

    ReplyDelete