Unable to Validate Webservice while initializing workflow. Error adding vDir HTTP://.... System.NullReferenceException: Object reference not set to an instance of an object.
search cancel

Unable to Validate Webservice while initializing workflow. Error adding vDir HTTP://.... System.NullReferenceException: Object reference not set to an instance of an object.

book

Article ID: 172176

calendar_today

Updated On:

Products

Workflow Solution

Issue/Introduction

Workflow throws an error while trying to verify access to webservices.  The services still function but the message is noted in the Workfflow and Event Viewer logs.

"Error adding vDir HTTP://(enter URL here)" error appears in the logs.
LogicBase.ServerExtensions.WebServiceSearcher throws a "System.NullReferenceException: Object reference not set to an instance of an object." error

Environment

Workflow 8.1 RU6

Cause

A custom script that prepared IIS configuration options included an entry for  "HTTP Response Headers" had a corrupt name entry value that included spaces.  Spaces are not supported in the name for "HTTP Response Headers" 

Resolution

Fix the HTTP Response Headers in IIS. 

  1. Open Internet Information Services.  Start>Run>INETMGR
  2. Find the default website or the virtual directory of the webservice.
  3. Under the “IIS” heading in the right-hand pane, double-click on “HTTP Response Headers.”
  4. Right-click on the custom HTTP header that includes the space and select Edit to fix it or remove it.

It should be noted that Workflow publishing techniques, either publishing from Workflow Designer, or using generated pre-configured installation packages DO NOT require any custom changes to IIS settings prior to or post installation.