![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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.
br> br> |
| |||||||
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| 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. |
| | #2 (permalink) |
| 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. > > |
| | #3 (permalink) |
| 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 |