C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » WCF »

Hosting in iis with ipaddress name not machine name


Posted Date: 15 Oct 2009      Posted By: dindukurti naveen kumar      Member Level: Silver     Points: 1   Responses: 0




Hello,

I'm having a problem with connection to the WCF Service from remote computer (locally all works great). My IIS 7.0 runs on virtual machine and I can access it with IP address along with port number. When I open link to the WCF service in Internet Explorer (http://IP_ADDRESS:PORT/PATH/Service.svc) the link that is shown there looks like this:

svcutil.exe http://MACINE_NAME/TestWCFService/Service1.svc?wsdl


I think that the problem is with link in wsdl file. The end of this file looks like this:

<wsdl:service name="Service">
- <wsdl:port name="WSHttpBinding_IService" binding="tns:WSHttpBinding_IService">
<soap12:address location="http://MACHINE_NAME/TestWCFService/Service.svc"; />
- <wsa10:EndpointReference>
<wsa10:Address>http://MACHINE_NAME/TestWCFService/Service.svc</wsa10:Address>
- <Identity xmlns="http://schemas.xmlsoap.org/ws/2006/02/addressingidentity";>
<Dns>localhost</Dns>
</Identity>
</wsa10:EndpointReference>
</wsdl:port>
</wsdl:service>

where the MACHINE_NAME is correct machine name, but there has to be an IP address including port number to the server in format XXX.XX.XXX.XXX:XXXXX.

If I put this IP address in web.config file for endpoint like this

<endpoint address="http://XXX.XX.XXX.XXX:XXXXX/TestWCFService/Service.svc"; binding="wsHttpBinding" contract="IService">

and open this link in web browser there is an error

"No protocol binding matches the given address 'http://XXX.XX.XXX.XXX:XXXXX/TestWCFService/Service.svc'. Protocol bindings are configured at the Site level in IIS or WAS configuration"

I also found on this link http://forums.asp.net/p/1096811/1659596.aspx that I have to configure host header on web site. I also tried that but without result. I can't write my real IP address including port number in host name field.

Any suggestions?

Thanks
.







Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Post Reply
You must Sign In to post a response.
Next : Wcf concepts
Previous : Consuming wcf from windows application and web application
Return to Discussion Forum
Post New Message
Category: WCF

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use