Wcf on IIS 7.0 vista

Wcf on IIS 7.0 vista

Old forum URL: forums.lhotka.net/forums/t/4891.aspx


Martin Sørensen posted on Friday, May 23, 2008

Hi all. Just a quick newbie question again ;o)

 

I’m trying to setup at project similar to ProjectTracker using Wcf dataportal. This works fine when I use ASP.NET developer server but when I try to get it working in IIS 7.0 I receive this error then hitting the data portal

 

The request for security token could not be satisfied because authentication failed

 

If I browse to http://localhost/TAHost/WcfPortal.svc is shows a page

 

In my Wcf host web.config I have

 

<appSettings>

<add key="CslaAuthentication" value="Csla" />

</appSettings>

 

------ cut ------------------------

<system.serviceModel>

<services>

                      <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>

                      <bindings>

                                 <wsHttpBinding>

                                 <binding name="Transport">

                                 <security mode="Transport">

                                 <transport clientCredentialType="None"/>

                                 </security>

                                 </binding>

                                 <binding name="NoSecurity">

                                 <security mode="None"/>

                                 </binding>

                                 </wsHttpBinding>

                      </bindings>

</system.serviceModel>

 

In my website using csla dataportal web.config

 

<appSettings>

<add key="CslaAuthentication" value="Csla"/>

           <add key="CslaDataPortalProxy" value="Csla.DataPortalClient.WcfProxy, Csla"/>

</appSettings>

--------------- cut -------------------------

 

<system.serviceModel>

<client>

<endpoint name="WcfDataPortal" address="htp://localhost/TAHost/WcfPortal.svc" inding="wsHttpBinding" contract="Csla.Server.Hosts.IWcfPortal"/>

           </client>

           <bindings>

           <wsHttpBinding>

                      <binding name="Transport">

                      <security mode="Transport">

                      <transport clientCredentialType="None"/>

                      </security>

                      </binding>

                      <binding name="NoSecurity">

                      <security mode="None"/>

                      </binding>

                      </wsHttpBinding>

                      </bindings>

</system.serviceModel>

 

Regards Martin

sergeyb replied on Friday, May 23, 2008

Did this part not paste correctly?

 

<endpoint name="WcfDataPortal" address="htp://localhost/TAHost/WcfPortal.svc" inding="wsHttpBinding" contract="Csla.Server.Hosts.IWcfPortal"/>

 

 

 

Sergey Barskiy

Senior Consultant

office: 678.405.0687 | mobile: 404.388.1899

Magenic ®

Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: Martin Sørensen [mailto:cslanet@lhotka.net]
Sent: Friday, May 23, 2008 10:28 AM
To: Sergey Barskiy
Subject: [CSLA .NET] Wcf on IIS 7.0 vista

 

Hi all. Just a quick newbie question again ;o)

 

I???m trying to setup at project similar to ProjectTracker using Wcf dataportal. This works fine when I use ASP.NET developer server but when I try to get it working in IIS 7.0 I receive this error then hitting the data portal

 

The request for security token could not be satisfied because authentication failed

 

If I browse to http://localhost/TAHost/WcfPortal.svc is shows a page

 

In my Wcf host web.config I have

 

<appSettings>

<add key="CslaAuthentication" value="Csla" />

</appSettings>

 

------ cut ------------------------

<system.serviceModel>

<services>

                      <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>

                      <bindings>

                                 <wsHttpBinding>

                                 <binding name="Transport">

                                 <security mode="Transport">

                                 <transport clientCredentialType="None"/>

                                 </security>

                                 </binding>

                                 <binding name="NoSecurity">

                                 <security mode="None"/>

                                 </binding>

                                 </wsHttpBinding>

                      </bindings>

</system.serviceModel>

 

In my website using csla dataportal web.config

 

<appSettings>

<add key="CslaAuthentication" value="Csla"/>

           <add key="CslaDataPortalProxy" value="Csla.DataPortalClient.WcfProxy, Csla"/>

</appSettings>

--------------- cut -------------------------

 

<system.serviceModel>

<client>

<endpoint name="WcfDataPortal" address="htp://localhost/TAHost/WcfPortal.svc" inding="wsHttpBinding" contract="Csla.Server.Hosts.IWcfPortal"/>

           </client>

           <bindings>

           <wsHttpBinding>

                      <binding name="Transport">

                      <security mode="Transport">

                      <transport clientCredentialType="None"/>

                      </security>

                      </binding>

                      <binding name="NoSecurity">

                      <security mode="None"/>

                      </binding>

                      </wsHttpBinding>

                      </bindings>

</system.serviceModel>

 

Regards Martin



Martin Sørensen replied on Friday, May 23, 2008

this is what i have in my config

<endpoint name="WcfDataPortal" address="http://Trading/TAHost/WcfPortal.svc" binding="wsHttpBinding" contract="Csla.Server.Hosts.IWcfPortal"/>

Missing a B ??????

 

Regards Martin

Copyright (c) Marimer LLC