Microsoft KB Archive/938284

= Error message when you debug a voice response Web application in Communications Server 2007 Speech Server: &quot;An error has occurred. The status code associated with the error is '-5'&quot; =

Article ID: 938284

Article Last Modified on 8/15/2007

-

APPLIES TO


 * Microsoft Office Communications Server 2007 Enterprise Edition
 * Microsoft Office Communications Server 2007 Standard Edition

-



SYMPTOMS
Consider 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.'

Additionally, the following error message is logged in the Application log:

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.



CAUSE
This issue occurs because the &quot;application/octet-stream&quot; MIME type is not registered for .lex files.



RESOLUTION
To resolve this issue, follow these steps:
 * 1) Click Start, click Run, type inetmgr, and then click OK.
 * 2) Expand  , expand Web Sites, expand Default Web Site, right-click the Voice Response Web application, and then click Properties.
 * 3) On the Http Headers tab, click MIME Types.
 * 4) In the MIME Types dialog box, click New.
 * 5) In the MIME Type dialog box, type .lex in the Extension box, and then type application/octet-stream in the MIME type box.
 * 6) Click OK three times.



MORE INFORMATION
Communications Server 2007 Speech Server prompts you to register the MIME types for .grxml files, for .cfg files, and for .vxml files.

Additional query words: OCS2007

Keywords: kbexpertiseinter kbtshoot kberrmsg kbprb KB938284

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.