Hi,
This is my first try at running WCF samples. I installed everything, ran 'setupvroot.bat'.
When I try to run a sample, I get a "Error -- Connection Denied 405" on the client when calling the first remote call.
I guess this is a security issue -- but cant find the cause. I am running XP SP2 in Workgroup mode.
Any hint
Thanks.

Error 405 -- Cant run WCF samples
Nirvana
A quick fix is turn security off. To do this, add the following binding definition inboth the client and service app.config files:
<bindings>
<netTcpBinding>
<binding name="MyTcpBindingName">
<security mode="None"/>
</binding>
</netTcpBinding>
</bindings>
and augment the endpoints with the attribute
bindingConfiguration="MyTcpBinding"
This will turn off all wire security requirements. Just as an aside: a better fix is to align and setup security so that you know how to use it. This works fine to get the sample running, however.
RatOmeter
Definitely a security thing here.
Does this work when you have a local client
Can you get a trace on the client and server I think that would help a lot in gettng a better idea of narrowing down the cause.
Thanks!
Scott
shy_man
Are you able to repro this problem with simple selfhost and Gettingstarted sample
you can download these samples from winfx sdk
(1)
selfhost sample
http://windowssdk.msdn.microsoft.com/library/default.asp url=/library/en-us/wcf_samples/html/05e68661-1ddf-4abf-a899-9bb1b8272a5b.asp
(2)Getting started sample
http://windowssdk.msdn.microsoft.com/library/default.asp url=/library/en-us/WCF_samples/html/967a3d94-0261-49ff-b85a-20bb07f1af20.asp
If you can repro this problem with only your sample,you can enable trace to get more info about this error
Tracing and Logging Sample:
===========================
http://windowssdk.msdn.microsoft.com/library/en-us/WCF_samples/html/a4f39bfc-3c5e-4d51-a312-71c5c3ce0afd.asp frame=true
http://windowssdk.msdn.microsoft.com/library/en-us/WCF_samples/html/4c4058ae-17ca-4994-80f5-1a8b51840754.asp frame=true
If you have simple service,open the config file in svcconfigeditor,from wizard,you can enable tracing and logging
http://windowssdk.msdn.microsoft.com/library/en-us/wcf_tools/html/2db21a57-5f64-426f-89df-fb0dc2d2def5.asp frame=true
once you have log file,you can open client side trace and service side trace file in svctraceviewer and you can filter trace by different categories
http://windowssdk.msdn.microsoft.com/library/default.asp url=/library/en-us/WCF_tools/html/9027efd3-df8d-47ed-8bcd-f53d55ed803c.asp