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

Vista - HowTo: disable WCF security

Reply
 
Old 04-16-2008   #1 (permalink)
herbert


 
 

HowTo: disable WCF security

Question 1: How do I turn off WCF security to get my apps out the door quickly?
Question 2: Where can I find a step by step article/flowchart how to
configure WCF security (the WCF books miss this point)?

Background:
I have a WCF client / WCF host pair running fine on the same machine.
Metadata is offered both via basicHttp and netTcp.
Services are offered via netTcp.

When distributing the WCF client on the intranet, everybody (my fellow
programmers) can access the Metadata and "Add Service Reference" to their
client apps. However nobody can then access the services.
The error message/exception on the client is something like "host rejected"
without further info.

The WCF host runs under administrator, firewall etc. disabled.

WinXP on all computers.

Since the WCF host does not provide anything secret I'd like to turn off all
security checks on the WCF host altogether.

And the security chapters in the five+ WCF books in front of me give me lots
of lectures on security principles however no step by step guidance about how
to implement it.

thank you very much. herbert

My System SpecsSystem Spec
Old 04-16-2008   #2 (permalink)
sloan


 
 

Re: HowTo: disable WCF security

You can config do it via binding information:

Some examples:

Of course the key is "security mode"...This should be enough to google on at
least.



<bindings>

<netMsmqBinding>

<binding name ="NoMSMQSecurity" >

<security mode = "None">

</security>

</binding>

</netMsmqBinding>



<wsHttpBinding>

<binding name="WSHttpBindingName1" maxReceivedMessageSize="1000000" >

<security mode="None">

<transport clientCredentialType="None" />

<message establishSecurityContext="false" />

</security>

</binding>

</wsHttpBinding>





</bindings>



Here is one: I'm not sure what Transport is offhand. I could probably put
"none" in here as well.


<netNamedPipeBinding>

<binding name="NamedPipeBindingName1"

hostNameComparisonMode="StrongWildcard"

maxBufferSize="1000000"

maxConnections="255"

maxReceivedMessageSize="1000000"

receiveTimeout="00:59:00"

transactionFlow="false">

<security mode="Transport">

</security>

</binding>

</netNamedPipeBinding>



Then your end point needs to associate the binding:

example:


<endpoint name="WSHttpEndPoint"

address = "http://localhost:8001/ZebraControllerFascade"

binding = "wsHttpBinding" bindingConfiguration="WSHttpBindingName1"

contract =
"MeasInc.Applications.ScoringCenter.Interfaces.Zebra.Controllers.IZebraController"
Quote:

>


</endpoint >



"herbert" <herbert@xxxxxx> wrote in message
news:A2E38213-1171-4DA1-8FAF-BC7D4DE33857@xxxxxx
Quote:

> Question 1: How do I turn off WCF security to get my apps out the door
> quickly?
> Question 2: Where can I find a step by step article/flowchart how to
> configure WCF security (the WCF books miss this point)?
>
> Background:
> I have a WCF client / WCF host pair running fine on the same machine.
> Metadata is offered both via basicHttp and netTcp.
> Services are offered via netTcp.
>
> When distributing the WCF client on the intranet, everybody (my fellow
> programmers) can access the Metadata and "Add Service Reference" to their
> client apps. However nobody can then access the services.
> The error message/exception on the client is something like "host
> rejected"
> without further info.
>
> The WCF host runs under administrator, firewall etc. disabled.
>
> WinXP on all computers.
>
> Since the WCF host does not provide anything secret I'd like to turn off
> all
> security checks on the WCF host altogether.
>
> And the security chapters in the five+ WCF books in front of me give me
> lots
> of lectures on security principles however no step by step guidance about
> how
> to implement it.
>
> thank you very much. herbert

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Disable outlook security? .NET General
HOWTO: Disable and Turn Off Windows Vista Search Indexer and Indexing Service Vista General
HOWTO: Disable Zip Folders Vista General
Disable security to use WFI adapter? Vista hardware & devices
Disable Security Centre Vista General


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