Answered by:
Sample Salt Application gives error in Visual Studio 2005 (Update SP1) when try to load grammar

Question
-
this is the error:
SYS : <speak version="1.0"
xmlnssml="http://www.w3.org/2001/10/synthesis"
xmlnseml="http://schemas.microsoft.com/Speech/2003/03/PromptEngine"
xml:lang="en-US"><pemlrompt_output><peml
atabase
fname="http://localhost/voicepizza7/Prompts/VoicePizza7Prompts.prompts"
/>Welcome to Tony's Pizza. Order a pizza now and we'll
have it waiting when you arrive. Say Cancel at any
time to cancel this order.
</pemlrompt_output></speak>
SYS : <speak version="1.0"
xmlnssml="http://www.w3.org/2001/10/synthesis"
xmlnseml="http://schemas.microsoft.com/Speech/2003/03/PromptEngine"
xml:lang="en-US"><pemlrompt_output><peml
atabase
fname="http://localhost/voicepizza7/Prompts/VoicePizza7Prompts.prompts"
/>We have small, medium and large sizes. What size
would you like? </pemlrompt_output></speak>
SYS : <speak version="1.0"
xmlnssml="http://www.w3.org/2001/10/synthesis"
xmlnseml="http://www.w3.org/2001/10/synthesis"
xmlnseml="http://schemas.microsoft.com/Speech/2003/03/PromptEngine"
xml:lang="en-US">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.'. </speak>Do I need to configure some settings?
Tuesday, May 8, 2007 7:25 PM
Answers
-
I guess you have chosen the "Creat Custom Application Lexicon" option when you created the application. Try to delete the .cal file(application name.cal) from the solution explorer and rebuild the app. Run the app and see whether it works fine.
Thanks,
Ramesh
Wednesday, May 9, 2007 7:24 PM
All replies
-
The error is in a laptop with Vista ultimate.Tuesday, May 8, 2007 7:27 PM
-
I guess you have chosen the "Creat Custom Application Lexicon" option when you created the application. Try to delete the .cal file(application name.cal) from the solution explorer and rebuild the app. Run the app and see whether it works fine.
Thanks,
Ramesh
Wednesday, May 9, 2007 7:24 PM -
This is true. It is working now, but in the tutorial must instruct to clear lexicons too, when we are creating the project.Wednesday, May 9, 2007 10:36 PM
-
Thanks for this, I have been bashing my head against the wall trying to figure out what the issue was, but low and behold, here is the solution. Deleted all the files under /lexicons from my solution, and I was ready to go.
Could the deeper solution be here though?
http://support.microsoft.com/kb/938284
CAUSE
This issue occurs because the "application/octet-stream" MIME type is not registered for .lex files.Tuesday, September 23, 2008 11:42 PM