Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i've got a self hosted wcf service,and an asp.net web site that need to run on the same machine,wcf service and web site use the same port 80. I've discovered that when the self hosted service is running, all calls to website routed to the WCF architecture,and then got 405 error.

how to deploy a self hosted wcf service and an asp.net web site on the same machine
thanks
Posted
Comments
Rajat_RJT 2-Mar-15 6:58am    
If you are getting "Method not allowed (405)" error, you need to check your wcf service.
tenderzs 2-Mar-15 21:54pm    
wcf service can be visited as expected
i assume that,asp.net request routed to wcf service,but wcf service can not process the request,so it throw 405 error
Rajat_RJT 3-Mar-15 2:19am    
Following articles may help you-
https://msdn.microsoft.com/en-us/library/ee358760(v=vs.110).aspx
http://forums.asp.net/t/1975450.aspx?Configuring+Routing+Activation+for+RESTful+WCF+service+with+MVC+app
http://geekswithblogs.net/michelotti/archive/2010/09/22/wcf-rest-services-inside-mvc-projects.aspx
tenderzs 3-Mar-15 20:29pm    
thanks for your reply
these articles are discussing about wcf hosted on iis
my conflict is self hosted wcf and asp.net
may be there is no way to solve this,i'll host the wcf on iis to avoid this problem
thanks a lot

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900