Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
when i create TEXT file dynamically than time a fach an error as given bellow

System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at System.Speech.Internal.SapiInterop.ISpRecognizer.CreateRecoContext(ISpRecoContext& ppNewCtxt)

at System.Speech.Internal.SapiInterop.SapiRecognizer.<>c__DisplayClass17.<CreateRecoContext>b__16()
at System.Speech.Internal.SapiInterop.SapiProxy.PassThrough.Invoke(ObjectDelegate pfn)
at System.Speech.Internal.SapiInterop.SapiRecognizer.CreateRecoContext()
at System.Speech.Recognition.RecognizerBase.Initialize(SapiRecognizer recognizer, Boolean inproc)
at System.Speech.Recognition.SpeechRecognitionEngine.get_RecoBase()
at System.Speech.Recognition.SpeechRecognitionEngine.LoadGrammar(Grammar grammar)
Posted
Comments
Kornfeld Eliyahu Peter 23-Feb-15 9:02am    
Which means you have no rights to create a TEXT file at that specific location...
kalpeshnariya 23-Feb-15 9:09am    
yes , so what can i do ? please suggest me.
ZurdoDev 23-Feb-15 9:16am    
1. Reply to the comment so that the user is notified instead of adding a comment to your own question.
2. Fix the permissions issue.
Sergey Alexandrovich Kryukov 23-Feb-15 11:24am    
Where is that line?
Why using anything *.Internal.*? What are you trying to achieve?
—SA

1 solution

Please check the user have "Write permission"rights on the server. Please ask System administrator to provide you "Write Permission" rights.
This will resolve your issue.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900