这个是配置文件 ,宿主 是一个winform , 百度了好多都不管用 谢谢
<appSettings>
<add key="ConnORA" value="Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=simdb))); User Id=sim;Password=hftt8888;"/>
</appSettings>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="NHibernate" publicKeyToken="AA95F207798DFDB4" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-1.2.1.4000" newVersion="1.2.1.4000"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="HFSIM.WcfClass.WcfShowBehavior">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
<behavior name="HFSIM.WcfClass.ShowResult.WcfShowBehavior">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service behaviorConfiguration="HFSIM.WcfClass.ShowResult.WcfShowBehavior" name="HFSIM.WcfClass.ShowResult.WcfShow">
<endpoint address="" binding="wsHttpBinding" bindingConfiguration="NoneSecurity" name="NoneSecurity" contract="HFSIM.WcfClass.ShowResult.IWcfShow">
<identity>
<dns value="192.168.6.106"/>
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
<host>
<baseAddresses>
<add baseAddress="http://192.168.6.106:7001/Design_Time_Addresses/HFSIM.WcfClass.ShowResult/WcfShow/"/>
</baseAddresses>
</host>
</service>
</services>
<bindings>
<wsHttpBinding>
<binding name="NoneSecurity" maxBufferPoolSize="12000000" maxReceivedMessageSize="12000000"
useDefaultWebProxy="false">
<readerQuotas maxStringContentLength="12000000" maxArrayLength="12000000" />
<security mode="None" />
</binding>
</wsHttpBinding>
<basicHttpBinding>
是不是要带端口了,127.0.0.1是有默认端口的!
没有 , 我没用过127.0.0.1在配置文件里
只是用过localhost和我本地IP 端口号也改过 , 这两种都只可以用127.0.0.1 和 localhost打开
本机防火墙有没有允许7001端口的访问
有没有部署在IIS里面呢?