+1  A: 

my guess would be that the $PATH variable isn't defined to include the path to MySQL in the environment that ASP.NET is running in (either for the that user, or ASP.NET cleans out the environment).

Two things to try:

  1. (might work) Make sure the mysql directory is added to the global path -- not just the user-specific PATH variable. (note: this will require at least recycling IIS, maybe a reboot to take effect)
  2. Use the fully-qualified path to mysqldump (you will need to do something to quote or escape any spaces in the path).
Jonathan
neither worked :-(
SaM
Did you make sure you quoted the path or otherwise escaped any spaces in it? (just added that to the answer)
Jonathan
worked with the fully qualified path - with escaping spaces :-) thanks.
SaM