Download work in Visual Studio Debug mode, but not working after deployed to IIS.

Answered
0
0

Hi there,

As title, I have a “File Explorer” like windows that allow user to to download files. This function is working when I try WiseJ some time ago.

Recently I start to try WiseJ again, I rebuild the project and the download function work when the web run in Visual Studio Debug mode (refer to Capture 01 and 02 attached).

However, after deployed to IIS (the IIS of the development machine), the download function get broken. After I click “Download” the “Open, Save, Cancel” box does not appeared. Instead, the URL changed to something I’ve never see before and the browser window become empty and no file can be downloaded (refer to Capture 03 and 04 attached).

What caused this problem ? the URL, port number, etc. in my app, is not hard coded, I haven’t got any code that set the URL to “postback.wx”.

Thanks and Regards,

Felix CHAN

  • You must to post comments
Good Answer
0
0

Hi there,

Sorry I find the cause of the problem. It is because the web run under a “folder” “/demo6/” in IIS but run under “root” in VS Debug Mode.

And the way I handle the download ( using the url returned from “IWisejHandler.GetPostbackURL()”) have a bug so it make the function not working.

Regards,

Felix CHAN

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.