C# Developers' Journal (original) (raw)

11:46p

Application only works properly in debug

I'm building a basic text-to-speech app. It's just a textbox, an Edit menu (with Cut/Copy/Paste), and a Read menu with one item that reads the contents of the textbox. My application compiles without any problems, but when I try to have it read the textbox's contents, it says "System.IO.FileNotFoundException: File or assembly name Interop.SpeechLib, or one of its dependencies, was not found." When I ran it through the debugger, it said "Build Succeeded" and displayed the application. When I tried having it read the textbox contents in debug mode, it worked!

Any help would be greatly appreciated! Let me know if you want me to post the code.

Thanks.