locked
error in sound file in setup application..Please help

    Question

  •  

    Hi..

     

    I want to make a setup application to my project but it is contain a sound by using the following function

     

    My.Computer.Audio.Play("1_20.WAV")

     

    When I use puplish wizard to create a setup application the sound is not work and give me the following error:

     

     "Unhandled exception has occurred in your application. Please be sure a sound file exists at the specified location" 

     

    I don't know what should I do?

    Can you help me please?

     

    Thanks..

    Friday, February 15, 2008 2:47 AM

Answers

  • Hi,

    You can add 1_20.wav to your project and set wav file's property in solution explorer. Build action: content. copy to output directory: always. In publish page, click Application files-> Publish status: Include. Download Group: required. Then wav file will be copied to the folder of executation file.

    Best regards,
    Riquel
    Tuesday, February 19, 2008 10:52 AM
    Moderator