SOAP security negotiation - please helpSOAP security negotiation - please help
Old forum URL: forums.lhotka.net/forums/t/3793.aspx
janigorse posted on Sunday, October 28, 2007
Hi,
I have a following situation:
- WCF host with clsa.dll and aplicaiton dll on workstation machine, it is hosted on IIS5
- WinForms application I tried to run, is on my laptop machine
I'm trying to use workstation machine as a server.
config files are:
server web.config:
<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="CslaAuthentication" value="Csla"/>
</appSettings>
<connectionStrings>
<add
name="Reservations"
connectionString="Data Source=APOLOSERVER\APOLO;Initial Catalog=Reservations;Integrated Security=True;User Instance=False"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.serviceModel>
<services>
<!-- Before deployment, you should remove the returnFaults behavior configuration to avoid disclosing information in exception messages -->
<service name="Csla.Server.Hosts.WcfPortal" behaviorConfiguration="returnFaults">
<endpoint contract="Csla.Server.Hosts.IWcfPortal" binding="wsHttpBinding"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="returnFaults">
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
client app.config:
<?xml version="1.0"?>
<configuration>
<configSections>
</configSections>
<appSettings>
<add key="CslaAuthentication" value="Csla"/>
<add key="CslaDataPortalProxy" value="Csla.DataPortalClient.WcfProxy, Csla"/>
</appSettings>
<system.serviceModel>
<client>
<endpoint name="WcfDataPortal"
address="http://apolo.getmyip.com:80/ReservationsWCFHost/ReservationsWCFService.svc"
binding="wsHttpBinding"
contract="Csla.Server.Hosts.IWcfPortal" />
</client>
</system.serviceModel>
<system.diagnostics>
<sources>
<!-- This section defines the logging configuration for My.Application.Log -->
<source name="DefaultSource" switchName="DefaultSwitch">
<listeners>
<add name="FileLog"/>
<!-- Uncomment the below section to write to the Application Event Log -->
<!--<add name="EventLog"/>-->
</listeners>
</source>
</sources>
<switches>
<add name="DefaultSwitch" value="Information"/>
</switches>
<sharedListeners>
<add name="FileLog" type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" initializeData="FileLogWriter"/>
<!-- Uncomment the below section and replace APPLICATION_NAME with the name of your application to write to the Application Event Log -->
<!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->
</sharedListeners>
</system.diagnostics>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Csla" publicKeyToken="93BE5FDC093E4C30" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-3.0.2.0" newVersion="3.0.2.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
When I run WinForms application i get this error:
SOAP security negotiation with 'http://apolo.getmyip.com/ReservationsWCFHost/ReservationsWCFService.svc' for target 'http://apolo.getmyip.com/ReservationsWCFHost/ReservationsWCFService.svc' failed. See inner exception for more details.
Could you please help me identifying what's wrong, couse when I run a WCF host on my laptop it works just fine.
Jani
Copyright (c) Marimer LLC