Hi,
how do you set the filepath? Absolute or relative? if you are working with relative pathes you should work with Server.MapPath(relativePath) or with HttpContext.Current.Server.MapPath(...) if you are in static context.
If that doesn't help, it would be helpfull if you post the relevant lines of your code.
Andi