Article ID: 938284 - Last Review: August 15, 2007 - Revision: 1.3 Error message when you debug a voice response Web application in Communications Server 2007 Speech Server: "An error has occurred. The status code associated with the error is '-5'"SYMPTOMSConsider the following scenario. When you create a voice response
Web application in Microsoft Office Communications Server 2007 Speech Server, you
click to select the Create new Grxml grammar check box and the
Create new Customer Application Lexicon check box. You open
the .grxml file. Then, you create a new rule. In this scenario, when you debug
the Voice Response Web application, you receive the following error message on
the Call History tab in the SIP Phone debugger: An error has occurred. The status code associated with the error
is '-5'. The description of this error is 'Failure to load or compile a grammar
resource.' Service was unable to load the grammar
http://localhost/VoiceResponseWeb/Grammars/VoiceResponseWeb.grxml for the
following reason: 'Failed to compile grammar.
(Microsoft.SpeechServer.SpeechEngineServices.UnsupportedFormatException)
-> Failed to load lexicon 'http://localhost/VoiceResponseWeb/Lexicons/VoiceResponseWeb.lex' referred to in grammar 'Microsoft.SpeechServer.SpeechEngineServices.Proxy.GrammarRuleUri'. [Line=2, Position=11] (System.FormatException) -> Failed to download HTTP resource 'http://localhost/VoiceResponseWeb/Lexicons/VoiceResponseWeb.lex'. (Microsoft.SpeechServer.SpeechEngineServices.FailedToFindResourceException) -> The remote server returned an error: (404) Not Found. (System.Net.WebException)'. Until this problem is corrected, any application logic that uses the grammar will fail. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. CAUSEThis issue occurs because the "application/octet-stream"
MIME type is not registered for .lex files. RESOLUTIONTo resolve this issue, follow these steps:
MORE INFORMATION Communications Server 2007 Speech Server prompts you to
register the MIME types for .grxml files, for .cfg files, and for .vxml
files. | Article Translations
|
Back to the top
