07-31-2015 12:38 AM
Dear all,
I had created a webservice for my application and i put to serve a index.html when user accessing the webservice. In my development laptop, i deployed and i managed to access my webservice using localhost:8080\webservice . When i build an installer with my application and webservice and installed it on another new computer, i cannot access the index.html by default. It returns Access Error:404 -- Not Found. I need to use localhost:8080\webservice\index.html. In webservice build setting, serve default index.html for static document folders is checked. The file index.html also inside the webservice folder of C:\ProgramData. My application still working in the new computer , just i need to use localhost:8080\webservice\index.html instead of localhost:8080\webservice. I am wondering why i cannot access the webservice index.html by default in my new computer but i can access when i deployed on my development laptop. Maybe i missed include some additional installer? Here i attached all the addtional installer that i included in my application installer.
07-31-2015 03:54 AM - edited 07-31-2015 03:56 AM
Have you tried unpublishing the web service from your development machine and then running your installer? If it still doesn't work after that then it is a problem with the deployment of the web service (e.g. not configuring the application web server properly) but if it does work then you know it's something to do with the configuration on the target computer (e.g. missing component).
Also - you're running quite an old version of LabVIEW - Web Services have changed a lot (for the better!) in recent years (particularly with 2013) so it might be a bug in how web services are deployed in LV2011 and is now fixed in newer versions of LabVIEW. Might be worth trying?
08-03-2015 02:32 AM
Sorry that i gave wrong information about my problem. I just notice that i cannot access to localhost:8080\webservice even is in development laptop. I am accessed to localhost:8080\webservice\ before this. So now my problem is i cannot access to index.html using localhost:8080\webservice but succeed with localhost:8080\webservice\ or localhost:8080\webservice\index.html . Before this project, i had done some webservice projects but all works well. I had compared the configuration with my previous projects but i cannot found the different. Then, i notice there is service alias in service setting so i added "webservice" into the service alias. Now i available access using localhost:8080\webservice already. Maybe there is some insignificant different so i didt notice when i compare with previous project. Btw, thank you for your answer.