You will have to rewrite URL,
e.g. http://localhost:1294/Excel/....
programmatically remove localhost:1294, and put your virtual directory name, it should work then........