Answered by:
How to host my service in self webapplication

Question
-
User-1990825557 posted
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
Saturday, January 12, 2013 8:16 AM
Answers
-
User-166373564 posted
Hi siversansar<o:p></o:p>
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.<o:p></o:p>
You could also check whether you host your webservice properly,<o:p></o:p>
For reference - Host web service in IIS.
http://forums.asp.net/t/1494735.aspx/1 <o:p></o:p>
<o:p>hope it helps you, and if I misunderstand you or anything wrong, please let me know.</o:p>
<o:p>Kind regards</o:p>
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Sunday, January 20, 2013 10:08 PM
All replies
-
User-1315512054 posted
Hello,
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?
Regards
Saturday, January 12, 2013 8:34 AM -
User-1990825557 posted
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
Saturday, January 12, 2013 8:36 AM -
User-1990825557 posted
and one more thing i have not done anything , i have just upload all the content to the new.manpowerlink.com thats it
Saturday, January 12, 2013 8:38 AM -
User-166373564 posted
Hi siversansar<o:p></o:p>
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.<o:p></o:p>
You could also check whether you host your webservice properly,<o:p></o:p>
For reference - Host web service in IIS.
http://forums.asp.net/t/1494735.aspx/1 <o:p></o:p>
<o:p>hope it helps you, and if I misunderstand you or anything wrong, please let me know.</o:p>
<o:p>Kind regards</o:p>
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Sunday, January 20, 2013 10:08 PM