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:
- (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)
- Use the fully-qualified path to mysqldump (you will need to do something to quote or escape any spaces in the path).
Jonathan
2009-05-16 17:25:44