0
我们已将WPF应用程序(.NET 4)部署到公司网络。应用程序不能直接访问数据库。应用程序使用WCF服务与数据库对话。如果用户试图登录到他会得到一个错误WCF - 未找到端点 - 公司网络中的错误
有没有终点在 http://oururl/dataportal/wcfportal.svc是可以接受的消息监听的应用。 这通常是由不正确的地址或SOAP操作引起的。查看内部 异常(如果存在),以获取更多详细信息。
但是,如果客户试图在Fiddler在后台运行时登录,那么它一切正常。请参阅下面的app.config
文件。任何帮助诊断问题将不胜感激。
<configuration>
<system.serviceModel>
<!-- ZIP Enabled Dataportal -->
<extensions>
<bindingElementExtensions>
<add name="gzipMessageEncoding"
type="Microsoft.ServiceModel.Samples.GZipMessageEncodingElement, GZipEncoder, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
</bindingElementExtensions>
</extensions>
<client>
<endpoint name="WcfDataPortal"
address="http://oururl/dataportal/wcfportal.svc"
binding="customBinding"
bindingConfiguration="dataportalCompressed"
contract="Csla.Server.Hosts.IWcfPortal" />
<metadata>
<policyImporters>
<extension type="Microsoft.ServiceModel.Samples.GZipMessageEncodingBindingElementImporter, GZipEncoder, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
</policyImporters>
</metadata>
</client>
<bindings>
<customBinding>
<binding name="dataportalCompressed">
<gzipMessageEncoding innerMessageEncoding="textMessageEncoding"/>
<httpTransport hostNameComparisonMode="StrongWildcard"
manualAddressing="False" maxReceivedMessageSize="6553600"
authenticationScheme="Anonymous" bypassProxyOnLocal="False"
realm="" useDefaultWebProxy="True" />
</binding>
</customBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="SSL_ServiceBehavior">
<serviceMetadata httpsGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
是的,可以从浏览器访问SVC文件。只是为了澄清,如果您尝试从客户的公司网络外部访问,该应用程序就可以工作。从网络内部,只有当你在后台运行提琴手时才能使用。 – user1244754 2012-03-02 11:56:12