Last post Jan 20, 2013 10:08 PM by Angie xu - MSFT
Jan 12, 2013 08:16 AM|siversansar|LINK
hello .net heros
i am getting confused about how to host my webservice....
in my soluation there are 5 project namely
1)Business object model
2) data access layer
3) service layer ==wcf application project containing svc file
5) my web application (startup application)
now business object model, data access layer is refrenced with servervice layer
and service layer refrences as web refrence in my web applicaiton
i mean all the thing is done by visual studio bydefault i have never touch the web.config or app.config but in my startup project web.config i m seeing there is added endpoint with address something like this htttp://localhost:8081/mp.svc
now my question is i have uploaded all the thing in web and trying to run my svc file which is in service layer in address http://new.manpowerlink.com/Host/MP.svc but it gives me error that business object not found..
and even my webapplicaition is not able to run service ..where as in local every thing is perfect so any idia heros
u can see the main link http://new.manpowerlink.com/Host/MP.svc
and main link is http://new.manpowerlink.com
please let me know
thanks in advance
Jan 12, 2013 08:34 AM|HostingASPNet|LINK
You should run it by http://new.manpowerlink.com/MP.svc, but it depends how did you deployed your service. Is is in the main root or subfolder?
Jan 12, 2013 08:36 AM|siversansar|LINK
is is in subfolder you can say it is in
http://new.manpowerlink.com/Host/MP.svc like this
but the problem is i am not able to figure out because in local is working perfectly
Jan 12, 2013 08:38 AM|siversansar|LINK
and one more thing i have not done anything , i have just upload all the content to the new.manpowerlink.com thats it
Jan 20, 2013 10:08 PM|Angie xu - MSFT|LINK
You could have a try add .svc to MIME type in IIS, add '.svc' in File name extension, and add 'application/octet-stream' in MIME type.
You could also check whether you host your webservice properly,
For reference -
Host web service in IIS.
hope it helps you, and if I misunderstand you or anything wrong, please let me know.