Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - WCF Security

 
 
Old 06-19-2006   #1 (permalink)
Daniel


 
 

WCF Security

Hello, everybody

I am a WCF beginner and trying to learn to build an application wich
contains a
service host and a service client using some security features of WCF.

I followed the steps as telled by windows SDK. I created a service host, and
following is the app.config,

////////////////////////////////////////////////////////////////////////////////////////////
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<!-- use appSetting to configure base address provided by host -->
<add key="baseAddress" value="https://localhost:8000/Library/service" />
</appSettings>

<system.serviceModel>
<services>
<service
name="WinCF.Library" behaviorConfiguration="LibraryServiceBehavior">
<!-- use base address provided by host -->
<endpoint address=""
binding="wsHttpBinding"
bindingConfiguration="UsernameWithTransport"
contract="WinCF.ILibrary" />
</service>
</services>

<bindings>
<wsHttpBinding>
<binding name="UsernameWithTransport">
<security mode="Transport">
<transport clientCredentialType="None"/>
</security>
</binding>
</wsHttpBinding>
</bindings>

<!--For debugging purposes set the returnUnknownExceptionsAsFaults
attribute to true-->
<behaviors>
<behavior
name="LibraryServiceBehavior"
returnUnknownExceptionsAsFaults="False" >
</behavior>
</behaviors>
</system.serviceModel>
</configuration>
////////////////////////////////////////////////////////////////////////////////////////////

Then I created a client, in order to have Visual Studio 2005 create a proxy
for me,
I used [Add Service Reference] and I input
https://localhost:8000/Library/service
in the [Service URI] textbox,
then an error [The service reference code generation failed. Please look in
the output window for details] occurred.

I am not familiar with network programming, can anyone tell me how to resolve
this error?

Thanks a lot.



My System SpecsSystem Spec
Old 06-20-2006   #2 (permalink)
Daniel


 
 

RE: WCF Security

Hello, everybody

I've resolved the problem.
Sorry to disturb you!

"Daniel" wrote:

> Hello, everybody
>
> I am a WCF beginner and trying to learn to build an application wich
> contains a
> service host and a service client using some security features of WCF.
>
> I followed the steps as telled by windows SDK. I created a service host, and
> following is the app.config,
>
> ////////////////////////////////////////////////////////////////////////////////////////////
> <?xml version="1.0" encoding="utf-8" ?>
> <configuration>
> <appSettings>
> <!-- use appSetting to configure base address provided by host -->
> <add key="baseAddress" value="https://localhost:8000/Library/service" />
> </appSettings>
>
> <system.serviceModel>
> <services>
> <service
> name="WinCF.Library" behaviorConfiguration="LibraryServiceBehavior">
> <!-- use base address provided by host -->
> <endpoint address=""
> binding="wsHttpBinding"
> bindingConfiguration="UsernameWithTransport"
> contract="WinCF.ILibrary" />
> </service>
> </services>
>
> <bindings>
> <wsHttpBinding>
> <binding name="UsernameWithTransport">
> <security mode="Transport">
> <transport clientCredentialType="None"/>
> </security>
> </binding>
> </wsHttpBinding>
> </bindings>
>
> <!--For debugging purposes set the returnUnknownExceptionsAsFaults
> attribute to true-->
> <behaviors>
> <behavior
> name="LibraryServiceBehavior"
> returnUnknownExceptionsAsFaults="False" >
> </behavior>
> </behaviors>
> </system.serviceModel>
> </configuration>
> ////////////////////////////////////////////////////////////////////////////////////////////
>
> Then I created a client, in order to have Visual Studio 2005 create a proxy
> for me,
> I used [Add Service Reference] and I input
> https://localhost:8000/Library/service
> in the [Service URI] textbox,
> then an error [The service reference code generation failed. Please look in
> the output window for details] occurred.
>
> I am not familiar with network programming, can anyone tell me how to resolve
> this error?
>
> Thanks a lot.
>
>

My System SpecsSystem Spec
Old 06-20-2006   #3 (permalink)
Daniel


 
 

RE: WCF Security

I am sorry in fact the problem has not been resolved yet.
Your help is appreciated.

"Daniel" wrote:

> Hello, everybody
>
> I've resolved the problem.
> Sorry to disturb you!
>
> "Daniel" wrote:
>
> > Hello, everybody
> >
> > I am a WCF beginner and trying to learn to build an application wich
> > contains a
> > service host and a service client using some security features of WCF.
> >
> > I followed the steps as telled by windows SDK. I created a service host, and
> > following is the app.config,
> >
> > ////////////////////////////////////////////////////////////////////////////////////////////
> > <?xml version="1.0" encoding="utf-8" ?>
> > <configuration>
> > <appSettings>
> > <!-- use appSetting to configure base address provided by host -->
> > <add key="baseAddress" value="https://localhost:8000/Library/service" />
> > </appSettings>
> >
> > <system.serviceModel>
> > <services>
> > <service
> > name="WinCF.Library" behaviorConfiguration="LibraryServiceBehavior">
> > <!-- use base address provided by host -->
> > <endpoint address=""
> > binding="wsHttpBinding"
> > bindingConfiguration="UsernameWithTransport"
> > contract="WinCF.ILibrary" />
> > </service>
> > </services>
> >
> > <bindings>
> > <wsHttpBinding>
> > <binding name="UsernameWithTransport">
> > <security mode="Transport">
> > <transport clientCredentialType="None"/>
> > </security>
> > </binding>
> > </wsHttpBinding>
> > </bindings>
> >
> > <!--For debugging purposes set the returnUnknownExceptionsAsFaults
> > attribute to true-->
> > <behaviors>
> > <behavior
> > name="LibraryServiceBehavior"
> > returnUnknownExceptionsAsFaults="False" >
> > </behavior>
> > </behaviors>
> > </system.serviceModel>
> > </configuration>
> > ////////////////////////////////////////////////////////////////////////////////////////////
> >
> > Then I created a client, in order to have Visual Studio 2005 create a proxy
> > for me,
> > I used [Add Service Reference] and I input
> > https://localhost:8000/Library/service
> > in the [Service URI] textbox,
> > then an error [The service reference code generation failed. Please look in
> > the output window for details] occurred.
> >
> > I am not familiar with network programming, can anyone tell me how to resolve
> > this error?
> >
> > Thanks a lot.
> >
> >

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
in DEPTH help on how to set up security for linksys WRT54G2 wireless routers security System Security
Security discussion regarding hubs, firewalls, anti-virus and Vista Security System Security
Norton Internet Security 2008 and Vista's Security Center Vista security
Security Matters — Microsoft 2006 Security Summits Provide Security Training for Detroit Businesses Vista News
Security Matters — Microsoft 2006 Security Summits Provide Security Training for Detroit Businesses Vista News


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46