WCF 外网部署映射 问题。
WCF程序部署在本地局域网都没问题。但是一旦部署在通过花生壳映射到外网的服务器上,IIS主机头我也设置了相应的域名,从外网调用WCF接口就出现异常了。请教下熟悉WCF配置的牛人 帮忙解决或提示下这个问题。
配置文件如下。
<system.serviceModel>
		<bindings>
			<basicHttpBinding>
				<binding name="myWcfTest" maxReceivedMessageSize="2000000" maxBufferSize="2000000" >
					<readerQuotas maxDepth="50" maxArrayLength="2000000" maxStringContentLength="2000000"/>
				</binding>
			</basicHttpBinding>
		</bindings>
		<behaviors>
			<serviceBehaviors>
				<behavior name="WcfTest.TestDataServiceBehavior">
					<serviceMetadata httpGetEnabled="true"/>
					<serviceDebug includeExceptionDetailInFaults="false"/>
				</behavior>
			</serviceBehaviors>
		</behaviors>
		<services>
			<service behaviorConfiguration="WcfTest.TestDataServiceBehavior" name="WcfTest.TestData">
				<endpoint address="" binding="basicHttpBinding" bindingConfiguration="myWcfTest" contract="WcfTest.TestData"/>
				<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
			</service>
		</services>  
	</system.serviceModel>
------解决方案--------------------
endpoint address="" ???这个没写?
------解决方案--------------------
厉害!!!!!!!!!!!!!!!