Click here to Skip to main content
15,893,663 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I did created simple WCF application. and i hosted in my IIS.

Then I type my Ip Address in my browser like(192.168.0.12) but it shows my CompterName The Image is given below,

<img alt="" src="http://postimg.org/image/sz9voz93r/" />

Click Me! To View the image.


Please help me....!
Thanks in advance
Posted
Comments
CBadger 9-Jan-14 6:27am    
Did you publish it to the service? If it shows your PC name chances are that you published to your pc and never the site itself. Thus your PC is the router to the site instead of the site itself in a way

1 solution

XML
<!-- Copyright (c) Microsoft Corporation.  All Rights Reserved. -->
<configuration>
	<system.servicemodel>
		<servicehostingenvironment multiplesitebindingsenabled="true">
		</servicehostingenvironment>

		<!--For debugging purposes set the includeExceptionDetailInFaults attribute to true-->
		<behaviors>
			<servicebehaviors>
				<behavior>
					<servicemetadata httpgetenabled="True" />
					<servicedebug includeexceptiondetailinfaults="False" />
				</behavior>
			</servicebehaviors>
		</behaviors>
	</system.servicemodel>
</configuration>


The above configuration solves authentication problem and IP address problen for wcf(using app pool 4.0)
 
Share this answer
 

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