Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

WCF Security

 
 
Thread Tools Display Modes
Old 06-19-2006   #1 (permalink)
Daniel
Guest


 

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.


Old 06-20-2006   #2 (permalink)
Daniel
Guest


 

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

Old 06-20-2006   #3 (permalink)
Daniel
Guest


 

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

 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Security discussion regarding hubs, firewalls, anti-virus and Vista Security eganders System Security 3 2 Weeks Ago 06:11 AM
Re: Vista Security Center and Norton Internet Security 2008 PA Bear [MS MVP] Vista security 1 04-01-2008 05:47 AM
Norton Internet Security 2008 and Vista's Security Center howardavatar Vista security 12 01-23-2008 10:03 PM
Security Matters — Microsoft 2006 Security Summits Provide Security Training for Detroit Businesses z3r010 Vista News 0 06-26-2006 09:02 AM
Security Matters — Microsoft 2006 Security Summits Provide Security Training for Detroit Businesses z3r010 Vista News 0 06-26-2006 09:01 AM








Vistax64.com 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 2005-2008

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 47 48 49 50