RE: WCF on 2 machines



Thanks for your reply Salam,

Glad that you've found the cause and got the samples working now.

For the "enable Guest Account", I'm not sure what's the exact problem
scenario that require this. However, based on my WCF using experience,
single machine or multip machines, there is no need to enable the guest
account. Also, as this is a potential security hole, I'd suggest always not
do it :)

Have a good day!

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.




--------------------
Thread-Topic: WCF on 2 machines
thread-index: Acg2WIXd7GqecJ6SRsGsf73N5SQI3Q==
X-WBNR-Posting-Host: 82.225.56.11
From: =?Utf-8?B?U2FsYW1FbGlhcw==?= <eliassal@xxxxxxxxxxxxx>
Subject: RE: WCF on 2 machines
Date: Tue, 4 Dec 2007 01:32:01 -0800


So many thanks, very usefull links, However, It was a stupide error on my
side. I was copying the bad client from server to my laptop.
In fact, after working on the server, I added the project to TFS, so when
I
was compiling again and again, the new compiled assembly was in the
workspace
and not in the initial temporary directory where I firstly opened the
project
in VS.
Sorry for this, now all samples are working correctly.

Question : when I had the problems, one of the instructions I read on MS
WCF
site, was to enable the GUEST account on the server, is it always the case
or
can I disable it and not affect WCF functioning?

Best regards,


"Steven Cheng[MSFT]" wrote:

Hi Salam,

For WCF security related configuration and schema, you can have a look
at
the following articles:

#Windows Communication Foundation Configuration Schema
http://msdn2.microsoft.com/en-us/library/ms731734.aspx

#Security in Windows Communication Foundation
http://msdn.microsoft.com/msdnmag/issues/06/08/SecurityBriefs/

Also, you can try disabling security in your sample to see whether it
can
work correctly without security turned-on. Here is a web thread mentions
this:

#How to disable WCF security
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=911212&SiteID=1

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no
rights.



--------------------
From: =?Utf-8?B?U2FsYW1FbGlhcw==?= <eliassal@xxxxxxxxxxxxx>
References: <75C9F948-28C7-43FA-9B75-450FBD070F25@xxxxxxxxxxxxx>
<CxN2KIXNIHA.7908@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: WCF on 2 machines
Date: Mon, 3 Dec 2007 02:48:00 -0800


Thanks for this response. Yes, it is getting started sample
..\TechnologySamples\Basic\GettingStarted\CS
and the Binding, basic HTTP
..\TechnologySamples\Basic\Binding\Basic\Http\CS.
Both of them has a claculator service. The first one runs in Nettcp
protocol, the 2nd the service is hosted in IIS as an svc service.

It is non-domain environment (workgroup), administrator account on all
machine has the same password, the credentials I use on my laptop is
created
on the server as well and he is in the administrator group as well in
both
machines. I log to SQL 2005 using windows authentification with no
problem.

According to doc, especially the 2nd example I am talking is configured
for
anonymous access if I amnot mistaken,

As I said, I access any resource from machine to servers and servers to
my
machine.

2nd question, if I use config files for service and client, which tages
shoudl I use and where?

Thanks in advance

"Steven Cheng[MSFT]" wrote:

Hi Salam,

From your description, you're using the WCF built-in samples for test
and
found that some basic http samples can only work on single machine
but
not
work in client-server remote mode, correct?

According to the error message you pasted, it seems there is
something
about security verification that cause the error. Would you let me
know
which basic sample you're using(or ever do some customize on it)? And
the
important point is what security setting has been used for the client
and
server side. And what's your client and server machine's
network/security
environment. Some binding channels by default use windows security
may
need
client to forward security credential and in a non-domain
environment,
there may raise some error as local account is not forwarded between
machine.

BTW, for WCF specific problems, you can post them in webservice
newsgroup
or the MSDN forum:

#Windows Communication Foundation ("Indigo")
http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=118&SiteID=1

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to


http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent
issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each
follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach
the
most efficient resolution. The offering is not appropriate for
situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are
best
handled working with a dedicated Microsoft Support Engineer by
contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================


This posting is provided "AS IS" with no warranties, and confers no
rights.





.



Relevant Pages

  • Re: DCOM calls fails - access denied
    ... That's exactly how I understood the ASP.NET security. ... But why does one configuration work but not the other? ... should get the token from IIS. ... If you set there a domain account, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: WCF on 2 machines
    ... Here is the link which talks about the "guest" issue I came across while I ... "Default settings in the local security policy prevent samples from running ... However, based on my WCF using experience, ... For WCF security related configuration and schema, ...
    (microsoft.public.vsnet.general)
  • Re: How to Configure Qmail on Fedora Core 1 Server
    ... Proving that accessing mail from account foo or account root via POP3 ... > Also, be aware that once any security issues are removed, this ... The distro makes assumptions of best use. ... override some of these decisions via configuration and the rest by ...
    (Fedora)
  • RE: WCF on 2 machines
    ... sharing and security model for local accounts" has been ... Microsoft MSDN Online Support Lead ... For the "enable Guest Account", I'm not sure what's the exact problem ... However, based on my WCF using experience, ...
    (microsoft.public.vsnet.general)
  • RE: Converting an endpoint from a config file to code
    ... you have a WCF service which is consumed in a COM application. ... Now, you tried moving all the configuration based setting to code, but found something missing in the programmtic code, correct? ... \par Microsoft MSDN Online Support Lead ... \par where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.webservices)