VERIFIED SOLUTION i

Portrait Dialogue. "HTTP status 401: Unauthorized" when opening URLs from SMS

Issue

A customer had issues with questionnaire URLs in an SMS template.
URLs were able to be shortened in an SMS template but when the SMS was sent, the URL could not be opened resulting in an Unauthorized access error.

The Dialogue Server logs showed the following detail:
Server Error in '/MHWU' Application.
The request failed with HTTP status 401: Unauthorized.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

When the questionnaire URL was tested it did not work either.

Cause

Checking the MHCwa web application in Internet Information Services (IIS) Manager showed that it was using the Default App Pool application pool - which is not consistent with guidance in the Portrait Dialogue Server Installation Guide.

User-added image

Resolution

UPDATED: April 6, 2017
For all Portrait Dialogue web applications in IIS Manager, check whether they are using the correct ASP.NET v 4.0 Classic application pool and that the associated authentication settings are correct.