"An error has occurred" error when opening a Portrait Dialogue Questionnaire

Product: Visual Dialog

Product Feature: Questionnaires

Operating System: Windows Server                

Issue

In Portrait Dialogue, sometimes errors have occurred when attempting to open Questionnaires. 

An error has occurred.
We apologize for the problems this might have caused.


 

Cause

Portrait Dialogue.  Questionnaires in Visual Dialogue.  "Build Questionnaire URL..."

The most common cause of this error happens when building a Questionnaire URL.  
This error can occur when using the "Build Questionnaire URL..." button in the Questionnaire designer.
This normally happens because of a mismatch between the Questionnaire properties and the way you build the Questionnairre URL.

If the Questionnaire is the "Identified" type, then the Build URL cannot be Anonymous response.  This error will occur in that case.
The built URL will take you to a login page, so the domain has to be designed with a login and password properties set.

###########################################
To see the error description, press CTRL + SHIFT + E
###########################################
The error message begins like this:

Error description
Date occured: 09/07/2013 11:56:25
User host address: nnn.nnn.nnn.nnn
Machine name: ABCDXXX

Application: MH Customer Web Access
Source file in which the error was caused: DefaultAn.aspx.cs
Error type: PageError

Base exception: 
BaseException message: The system cannot find the file specified.
BaseException source: mscorlib

Request object: 
   Browser: 
      Browser type: Desktop
      Platform: WinNT
      Is beta version: False
      Is web crawler search engine : False
      Supports frames: True
      Supports cookies: True
      Supports javascript version: 1.4
      Supports tables: True
      Supports ActiveX: False
      Is Win 16: False
      Is Win 32: False

And continues with information specific to the customers Questionnaires, network, directories and machines

   Raw URL:
   Absolute uri:
   Request type: POST

   Forms collection: 
      __VIEWSTATE:
      __EVENTTARGET: 
      __EVENTARGUMENT: 
      __EVENTVALIDATION:
      ctl04$questionnaireControl$page0$section0$sectionItem0$question0$checkbox00: on
      ctl04$questionnaireControl$page0$section1$sectionItem0$question2$textbox$textBox2: Fname
      ctl04$questionnaireControl$page0$section1$sectionItem1$question3$textbox$textBox3: Lname
      ctl04$questionnaireControl$page0$section1$sectionItem2$question4$textbox$textBox4: Home
      ctl04$questionnaireControl$page0$section1$sectionItem3$question5$textbox$textBox5: 0001
      ctl04$questionnaireControl$page0$section1$sectionItem4$question6$textbox$textBox6: Henley
      ctl04$questionnaireControl$page0$section2$sectionItem0$question7$textbox$textBox7: 14.09.1979
      ctl04$questionnaireControl$page0$section2$sectionItem1$question8$groupValidator8: radioButton18
      ctl04$questionnaireControl$page0$section2$sectionItem2$question9$textbox$textBox9: 987654321
      ctl04$questionnaireControl$page0$section2$sectionItem3$question10$textbox$textBox10: email
      ctl04$questionnaireControl$page0$section3$sectionItem0$question12$groupValidator12: radioButton012
      ctl04$questionnaireControl$page0$section3$sectionItem0$question12$txtbox5$textBox0: 
      ctl04$questionnaireControl$forwardButton: Vent...

   QueryString collection: 
      Instance:
      LoginType:
      QuestionnaireID:
      LayoutID:
      BroadcastID: 
      CheckSum:

   User information:
      User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36
      User host address:
      User host name:
      User languages: 
         en-GB
         en;q=0.8
         en-US;q=0.6
         es;q=0.4

   Session information: 
      Is new session: False
      Timeout: 31

BaseException details: 

< . . . >

Exception hierarchy 

< . . . >

 

Resolution

UPDATED: November 21, 2018

Make sure all the parameters in the Questionnaire design, and the Build Questionnaire URL are consistent.  

###########################################
About the error description, press CTRL + SHIFT + E
###########################################
There is a Microsoft article that addresses this issue and offers 3 possible solutions ( http://support.microsoft.com/kb/934839/en-us )
One of the suggestions is to “numRecompilesBeforeAppRestart” and set it up to high number, like 50, in the compilation tag from the web.config file.
The compilation tag looks like this:

<compilation defaultLanguage="c#" debug="false" numRecompilesBeforeAppRestart="50"></compilation>.

It should be added to the MHCwa and MHQuestionnairePreview web.config files.

There is still some concern that this workaround may only be a temporary fix because of the part that says

"If you set the value of the numRecompilesBeforeAppRestart property in the compilation tag to a high number,

such as 50, you will reduce the number of times that this problem occurs. "

Another action to take would be to "delete all files in the Temporary ASP.NET Files directory".

Another thing mentioned was to apply the hotfix (http://code.msdn.microsoft.com/KB934839)