|
|
|
date: Wed, 23 Jul 2008 19:52:42 +0200,
group: microsoft.public.dotnet.framework.webservices
back
RE: VS2008 creates a 2nd endpoint when actualising a web reference
{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang2052\f0\fs20 Hi Frank,
\par
\par From your description, you are developing an WCF service and a client through VS 2008. The service used to use wshttpbinding, and when you switch it to netTcpBinding and regenerate the service reference at client, you found the client generate two configuration section for the service endpoint , correct?
\par
\par Based on my experience, such behavior might occur at the following situation:
\par
\par * you have an WCF service endpoint using certain configuration(binding and behavior ...)
\par
\par * you change its binding or other settings
\par
\par * without remove the original client service reference(proxy class) in client project, you directly update the reference, it might keep the original reference setting and generate a new client endpoint entry.
\par
\par Therefore for this issue, I suggest you always first remove the existing client-side service reference(in solution explorer), this will make the IDE remove the proxy class and also clear the app.config file. Then, add the "service reference" again in the project.
\par
\par For the second issue you mentioned:
\par
\par =====================
\par but the name and
\par bindingConfiguration have the suffix "1" . Additional VS2008
\par creates this entry:
\par
\par <identity>
\par <userPrincipalName value="Domain\\Username" />
\par </identity>
\par =========================
\par
\par based on the document you can see that this element <identity> is used to set a predefined identiy for the expected server-side service(not for client):
\par
\par #<identity>
\par http://msdn.microsoft.com/en-us/library/ms731721.aspx
\par
\par Therefore, it is generated by the IDE according to the server-side service's identity. By default when using netTCPBinding, WCF service endpoint will use windows authentication and if you are using the VS IDE test server(instead of IIS), the service's running process identity is the current logon user(that should be the "domain\\username" for your case. You can manually specify another expected identity(but the default one is ok).
\par
\par Or if you do not need security feature for the current case, you can turn it off in your service configuration( in the NetTcpBinding configuration):
\par
\par For example:
\par ==============================
\par <system.serviceModel>
\par
\par <services>
\par <service behaviorConfiguration="WCFIDESvr.TestServiceBehavior"
\par .............
\par
\par <endpoint address="net.Tcp://localhost:8989/TestService"
\par binding="netTcpBinding"
\par bindingConfiguration="TSBinding"
\par contract="WCFIDESvr.ITestService">
\par </endpoint>
\par
\par ......................
\par </service>
\par </services>
\par
\par <bindings>
\par <netTcpBinding>
\par <binding name="TSBinding" >
\par <!-- i turn off the security here -->
\par <security mode="None" >
\par <transport clientCredentialType="None"/>
\par <message clientCredentialType="None"/>
\par </security>
\par
\par </binding>
\par </netTcpBinding>
\par </bindings>
\par ================================
\par
\par You can get more about the WCF configuration schema info here:
\par
\par #Windows Communication Foundation Configuration Schema
\par http://msdn.microsoft.com/en-us/library/ms731734.aspx
\par
\par and for WCF security programming:
\par
\par #Windows Communication Foundation Security
\par http://msdn.microsoft.com/en-us/library/ms732362.aspx
\par
\par If there is anything unclear, please feel free to post here.
\par
\par Sincerely,
\par
\par Steven Cheng
\par
\par Microsoft MSDN Online Support Lead
\par
\par
\par Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: msdnmg@microsoft.com.
\par
\par ==================================================
\par Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notifications.
\par
\par Note: The MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support
\par Engineer within 1 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support
\par professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations
\par 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.
\par ==================================================
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par
\par \pard\li720 --------------------
\par Date: Wed, 23 Jul 2008 19:52:42 +0200
\par From: Frank Hauptlorenz <ecstasy.tribe@nospam.nospam>
\par User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
\par MIME-Version: 1.0
\par Subject: VS2008 creates a 2nd endpoint when actualising a web reference
\par
\par Hello out there,
\par
\par I changed an existing and good working webservice from an wsHttpBinding
\par to an NetTcpBinding.
\par This is working (after trying some time) and has real a better performance!
\par
\par But one thing is strange: when I'm now actualising the web reference
\par from within VS2008, VS2008
\par creates a 2nd endpoint config in my app.conf.
\par The endpoint is exactly the same as the existing but the name and
\par bindingConfiguration have the suffix "1" . Additional VS2008
\par creates this entry:
\par
\par <identity>
\par <userPrincipalName value="Domain\\Username" />
\par </identity>
\par
\par Where Domain\\Username is my username in the domain.
\par The client does not run with these informations, I have to remove them
\par manually.
\par
\par
\par What's wrong with VS2008?
\par
\par
\par Thank you,
\par Frank
\par
\par \pard
\par
\par }
date: Thu, 24 Jul 2008 03:22:18 GMT
author: (Steven Cheng [MSFT])
Re: VS2008 creates a 2nd endpoint when actualising a web reference
Hi Steven,
okay I will try to remove and add the service reference again.
As for the identity: I think I want to use transport security.
So the question is:
If I remove the
<identity>
<userPrincipalName value="Domain\Username" />
</identity>
section the client uses my user name anyway, or?
More problematic If I leave this in, I can't connect to the service
(SSPI-Failure).
Frank
Steven Cheng [MSFT] schrieb:
> Hi Frank,
>
> From your description, you are developing an WCF service and a client
> through VS 2008. The service used to use wshttpbinding, and when you switch
> it to netTcpBinding and regenerate the service reference at client, you
> found the client generate two configuration section for the service
> endpoint , correct?
>
> Based on my experience, such behavior might occur at the following
> situation:
>
> * you have an WCF service endpoint using certain configuration(binding and
> behavior ...)
>
> * you change its binding or other settings
>
> * without remove the original client service reference(proxy class) in
> client project, you directly update the reference, it might keep the
> original reference setting and generate a new client endpoint entry.
>
> Therefore for this issue, I suggest you always first remove the existing
> client-side service reference(in solution explorer), this will make the IDE
> remove the proxy class and also clear the app.config file. Then, add the
> "service reference" again in the project.
>
> For the second issue you mentioned:
>
> =====================
> but the name and
> bindingConfiguration have the suffix "1" . Additional VS2008
> creates this entry:
>
> <identity>
> <userPrincipalName value="Domain\Username" />
> </identity>
> =========================
>
> based on the document you can see that this element <identity> is used to
> set a predefined identiy for the expected server-side service(not for
> client):
>
> #<identity>
> http://msdn.microsoft.com/en-us/library/ms731721.aspx
>
> Therefore, it is generated by the IDE according to the server-side
> service's identity. By default when using netTCPBinding, WCF service
> endpoint will use windows authentication and if you are using the VS IDE
> test server(instead of IIS), the service's running process identity is the
> current logon user(that should be the "domain\username" for your case. You
> can manually specify another expected identity(but the default one is ok).
>
> Or if you do not need security feature for the current case, you can turn
> it off in your service configuration( in the NetTcpBinding configuration):
>
> For example:
> ==============================
> <system.serviceModel>
>
> <services>
> <service behaviorConfiguration="WCFIDESvr.TestServiceBehavior"
> .............
>
> <endpoint address="net.Tcp://localhost:8989/TestService"
> binding="netTcpBinding"
> bindingConfiguration="TSBinding"
> contract="WCFIDESvr.ITestService">
> </endpoint>
>
> ......................
> </service>
> </services>
>
> <bindings>
> <netTcpBinding>
> <binding name="TSBinding" >
> <!-- i turn off the security here -->
> <security mode="None" >
> <transport clientCredentialType="None"/>
> <message clientCredentialType="None"/>
> </security>
>
> </binding>
> </netTcpBinding>
> </bindings>
> ================================
>
> You can get more about the WCF configuration schema info here:
>
> #Windows Communication Foundation Configuration Schema
> http://msdn.microsoft.com/en-us/library/ms731734.aspx
>
> and for WCF security programming:
>
> #Windows Communication Foundation Security
> http://msdn.microsoft.com/en-us/library/ms732362.aspx
>
> If there is anything unclear, please feel free to post here.
>
> Sincerely,
>
> Steven Cheng
>
> Microsoft MSDN Online Support Lead
>
>
> Delighting our customers is our #1 priority. We welcome your comments and
> suggestions about how we can improve the support we provide to you. Please
> feel free to let my manager know what you think of the level of service
> provided. You can send feedback directly to my manager at:
> msdnmg@microsoft.com.
>
> ==================================================
> 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.
>
>
> --------------------
> Date: Wed, 23 Jul 2008 19:52:42 +0200
> From: Frank Hauptlorenz <ecstasy.tribe@nospam.nospam>
> User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
> MIME-Version: 1.0
> Subject: VS2008 creates a 2nd endpoint when actualising a web reference
>
> Hello out there,
>
> I changed an existing and good working webservice from an wsHttpBinding
> to an NetTcpBinding.
> This is working (after trying some time) and has real a better performance!
>
> But one thing is strange: when I'm now actualising the web reference
> from within VS2008, VS2008
> creates a 2nd endpoint config in my app.conf.
> The endpoint is exactly the same as the existing but the name and
> bindingConfiguration have the suffix "1" . Additional VS2008
> creates this entry:
>
> <identity>
> <userPrincipalName value="Domain\Username" />
> </identity>
>
> Where Domain\Username is my username in the domain.
> The client does not run with these informations, I have to remove them
> manually.
>
>
> What's wrong with VS2008?
>
>
> Thank you,
> Frank
>
>
>
date: Fri, 25 Jul 2008 07:37:26 +0200
author: Frank Hauptlorenz am
Re: VS2008 creates a 2nd endpoint when actualising a web reference
Hi Steven,
a little follow up:
1. Removing and adding the service had no effect. The same issue happens
again.
2. The issue has exactly to do with the identity segment. If I leave it
in, the actualizing is working.
If I remove it and then actualise, VS2008 will create me a second client
entry.
I do still not know, for what I need the identy segment in the client.
(PS: I switched to security mode "none" now, this is working)
Thank you,
Frank
Frank Hauptlorenz schrieb:
> Hi Steven,
>
> okay I will try to remove and add the service reference again.
> As for the identity: I think I want to use transport security.
> So the question is:
> If I remove the
>
> <identity>
> <userPrincipalName value="Domain\Username" />
> </identity>
>
> section the client uses my user name anyway, or?
> More problematic If I leave this in, I can't connect to the service
> (SSPI-Failure).
>
>
> Frank
>
> Steven Cheng [MSFT] schrieb:
>> Hi Frank,
>>
>> From your description, you are developing an WCF service and a client
>> through VS 2008. The service used to use wshttpbinding, and when you
>> switch it to netTcpBinding and regenerate the service reference at
>> client, you found the client generate two configuration section for
>> the service endpoint , correct?
>>
>> Based on my experience, such behavior might occur at the following
>> situation:
>>
>> * you have an WCF service endpoint using certain
>> configuration(binding and behavior ...)
>>
>> * you change its binding or other settings
>>
>> * without remove the original client service reference(proxy class)
>> in client project, you directly update the reference, it might keep
>> the original reference setting and generate a new client endpoint
>> entry.
>> Therefore for this issue, I suggest you always first remove the
>> existing client-side service reference(in solution explorer), this
>> will make the IDE remove the proxy class and also clear the
>> app.config file. Then, add the "service reference" again in the
>> project.
>>
>> For the second issue you mentioned:
>>
>> =====================
>> but the name and bindingConfiguration have the suffix "1" .
>> Additional VS2008
>> creates this entry:
>>
>> <identity>
>> <userPrincipalName value="Domain\Username" />
>> </identity>
>> =========================
>>
>> based on the document you can see that this element <identity> is
>> used to set a predefined identiy for the expected server-side
>> service(not for client):
>>
>> #<identity>
>> http://msdn.microsoft.com/en-us/library/ms731721.aspx
>>
>> Therefore, it is generated by the IDE according to the server-side
>> service's identity. By default when using netTCPBinding, WCF service
>> endpoint will use windows authentication and if you are using the VS
>> IDE test server(instead of IIS), the service's running process
>> identity is the current logon user(that should be the
>> "domain\username" for your case. You can manually specify another
>> expected identity(but the default one is ok).
>> Or if you do not need security feature for the current case, you can
>> turn it off in your service configuration( in the NetTcpBinding
>> configuration):
>>
>> For example:
>> ==============================
>> <system.serviceModel>
>> <services>
>> <service
>> behaviorConfiguration="WCFIDESvr.TestServiceBehavior"
>> .............
>> <endpoint
>> address="net.Tcp://localhost:8989/TestService"
>> binding="netTcpBinding"
>> bindingConfiguration="TSBinding"
>> contract="WCFIDESvr.ITestService">
>> </endpoint>
>> ......................
>> </service>
>> </services>
>>
>> <bindings>
>> <netTcpBinding>
>> <binding name="TSBinding" >
>> <!-- i turn off the security here -->
>> <security mode="None" >
>> <transport clientCredentialType="None"/>
>> <message clientCredentialType="None"/>
>> </security>
>> </binding>
>> </netTcpBinding>
>> </bindings>
>> ================================
>>
>> You can get more about the WCF configuration schema info here:
>>
>> #Windows Communication Foundation Configuration Schema
>> http://msdn.microsoft.com/en-us/library/ms731734.aspx
>>
>> and for WCF security programming:
>>
>> #Windows Communication Foundation Security
>> http://msdn.microsoft.com/en-us/library/ms732362.aspx
>>
>> If there is anything unclear, please feel free to post here.
>>
>> Sincerely,
>>
>> Steven Cheng
>>
>> Microsoft MSDN Online Support Lead
>>
>>
>> Delighting our customers is our #1 priority. We welcome your comments
>> and suggestions about how we can improve the support we provide to
>> you. Please feel free to let my manager know what you think of the
>> level of service provided. You can send feedback directly to my
>> manager at: msdnmg@microsoft.com.
>>
>> ==================================================
>> 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.
>>
>>
>> --------------------
>> Date: Wed, 23 Jul 2008 19:52:42 +0200
>> From: Frank Hauptlorenz <ecstasy.tribe@nospam.nospam>
>> User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
>> MIME-Version: 1.0
>> Subject: VS2008 creates a 2nd endpoint when actualising a web reference
>>
>> Hello out there,
>>
>> I changed an existing and good working webservice from an
>> wsHttpBinding to an NetTcpBinding.
>> This is working (after trying some time) and has real a better
>> performance!
>>
>> But one thing is strange: when I'm now actualising the web reference
>> from within VS2008, VS2008
>> creates a 2nd endpoint config in my app.conf.
>> The endpoint is exactly the same as the existing but the name and
>> bindingConfiguration have the suffix "1" . Additional VS2008
>> creates this entry:
>>
>> <identity>
>> <userPrincipalName value="Domain\Username" />
>> </identity>
>>
>> Where Domain\Username is my username in the domain.
>> The client does not run with these informations, I have to remove
>> them manually.
>>
>>
>> What's wrong with VS2008?
>>
>>
>> Thank you,
>> Frank
>>
>>
>>
date: Fri, 25 Jul 2008 10:37:31 +0200
author: Frank Hauptlorenz am
Re: VS2008 creates a 2nd endpoint when actualising a web reference
Frank,
When using default setup with wsHttpBinding, the authentication will be done
via NTLM or SspiNegotiate.
The client, when generating a proxy will (most of the time) generate an
entry like:
<identity>
<userPrincipalName value=yourname@yourdomain.com />
</identity>
This is due to Kerberos and how clients reference the target they want to
access. A kerberos target can be referenced by a UPN (User Principal Name)
which is what you see above, or by an SPN (Service Principal Name) in the
format of:
<identity>
<servicePrincipalName value="http/yourhostname" />
</identity>
The SPN free the client from the knowing the account being used on the
backend and allows the target to be "moved" or "configured" with no impact
on the client side.
Now, going back to your issue, you're most probably suffering from the fact
that your client and your service are probably on the same box. And since I
did not mention NTLM here, its probably an option (in your specific case) to
make the client try to connect via NTLM like this:
<identity>
<servicePrincipalName />
</identity>
What this means is that a client without the value attribute will
automatically use NTLM when authenticating to the service.
Give it a try, and let us know how it goes.
cheers,
Tiago Halm
"Frank Hauptlorenz" <ecstasy.tribe@nospam.nospam> wrote in message
news:eX81iGj7IHA.4536@TK2MSFTNGP04.phx.gbl...
> Hi Steven,
>
> a little follow up:
>
> 1. Removing and adding the service had no effect. The same issue happens
> again.
> 2. The issue has exactly to do with the identity segment. If I leave it
> in, the actualizing is working.
> If I remove it and then actualise, VS2008 will create me a second client
> entry.
>
> I do still not know, for what I need the identy segment in the client.
> (PS: I switched to security mode "none" now, this is working)
>
> Thank you,
> Frank
>
> Frank Hauptlorenz schrieb:
>> Hi Steven,
>>
>> okay I will try to remove and add the service reference again.
>> As for the identity: I think I want to use transport security.
>> So the question is:
>> If I remove the
>>
>> <identity>
>> <userPrincipalName value="Domain\Username" />
>> </identity>
>>
>> section the client uses my user name anyway, or?
>> More problematic If I leave this in, I can't connect to the service
>> (SSPI-Failure).
>>
>>
>> Frank
>>
>> Steven Cheng [MSFT] schrieb:
>>> Hi Frank,
>>>
>>> From your description, you are developing an WCF service and a client
>>> through VS 2008. The service used to use wshttpbinding, and when you
>>> switch it to netTcpBinding and regenerate the service reference at
>>> client, you found the client generate two configuration section for the
>>> service endpoint , correct?
>>>
>>> Based on my experience, such behavior might occur at the following
>>> situation:
>>>
>>> * you have an WCF service endpoint using certain configuration(binding
>>> and behavior ...)
>>>
>>> * you change its binding or other settings
>>>
>>> * without remove the original client service reference(proxy class) in
>>> client project, you directly update the reference, it might keep the
>>> original reference setting and generate a new client endpoint entry.
>>> Therefore for this issue, I suggest you always first remove the existing
>>> client-side service reference(in solution explorer), this will make the
>>> IDE remove the proxy class and also clear the app.config file. Then,
>>> add the "service reference" again in the project.
>>>
>>> For the second issue you mentioned:
>>>
>>> =====================
>>> but the name and bindingConfiguration have the suffix "1" . Additional
>>> VS2008
>>> creates this entry:
>>>
>>> <identity>
>>> <userPrincipalName value="Domain\Username" />
>>> </identity>
>>> =========================
>>>
>>> based on the document you can see that this element <identity> is used
>>> to set a predefined identiy for the expected server-side service(not for
>>> client):
>>>
>>> #<identity>
>>> http://msdn.microsoft.com/en-us/library/ms731721.aspx
>>>
>>> Therefore, it is generated by the IDE according to the server-side
>>> service's identity. By default when using netTCPBinding, WCF service
>>> endpoint will use windows authentication and if you are using the VS IDE
>>> test server(instead of IIS), the service's running process identity is
>>> the current logon user(that should be the "domain\username" for your
>>> case. You can manually specify another expected identity(but the
>>> default one is ok).
>>> Or if you do not need security feature for the current case, you can
>>> turn it off in your service configuration( in the NetTcpBinding
>>> configuration):
>>>
>>> For example:
>>> ==============================
>>> <system.serviceModel>
>>> <services>
>>> <service
>>> behaviorConfiguration="WCFIDESvr.TestServiceBehavior"
>>> .............
>>> <endpoint
>>> address="net.Tcp://localhost:8989/TestService" binding="netTcpBinding"
>>> bindingConfiguration="TSBinding"
>>> contract="WCFIDESvr.ITestService">
>>> </endpoint>
>>> ......................
>>> </service>
>>> </services>
>>>
>>> <bindings>
>>> <netTcpBinding>
>>> <binding name="TSBinding" >
>>> <!-- i turn off the security here -->
>>> <security mode="None" >
>>> <transport clientCredentialType="None"/>
>>> <message clientCredentialType="None"/>
>>> </security>
>>> </binding>
>>> </netTcpBinding>
>>> </bindings>
>>> ================================
>>>
>>> You can get more about the WCF configuration schema info here:
>>>
>>> #Windows Communication Foundation Configuration Schema
>>> http://msdn.microsoft.com/en-us/library/ms731734.aspx
>>>
>>> and for WCF security programming:
>>>
>>> #Windows Communication Foundation Security
>>> http://msdn.microsoft.com/en-us/library/ms732362.aspx
>>>
>>> If there is anything unclear, please feel free to post here.
>>>
>>> Sincerely,
>>>
>>> Steven Cheng
>>>
>>> Microsoft MSDN Online Support Lead
>>>
>>>
>>> Delighting our customers is our #1 priority. We welcome your comments
>>> and suggestions about how we can improve the support we provide to you.
>>> Please feel free to let my manager know what you think of the level of
>>> service provided. You can send feedback directly to my manager at:
>>> msdnmg@microsoft.com.
>>>
>>> ==================================================
>>> 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.
>>>
>>>
>>> --------------------
>>> Date: Wed, 23 Jul 2008 19:52:42 +0200
>>> From: Frank Hauptlorenz <ecstasy.tribe@nospam.nospam>
>>> User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
>>> MIME-Version: 1.0
>>> Subject: VS2008 creates a 2nd endpoint when actualising a web reference
>>>
>>> Hello out there,
>>>
>>> I changed an existing and good working webservice from an wsHttpBinding
>>> to an NetTcpBinding.
>>> This is working (after trying some time) and has real a better
>>> performance!
>>>
>>> But one thing is strange: when I'm now actualising the web reference
>>> from within VS2008, VS2008
>>> creates a 2nd endpoint config in my app.conf.
>>> The endpoint is exactly the same as the existing but the name and
>>> bindingConfiguration have the suffix "1" . Additional VS2008
>>> creates this entry:
>>>
>>> <identity>
>>> <userPrincipalName value="Domain\Username" />
>>> </identity>
>>>
>>> Where Domain\Username is my username in the domain.
>>> The client does not run with these informations, I have to remove them
>>> manually.
>>>
>>>
>>> What's wrong with VS2008?
>>>
>>>
>>> Thank you,
>>> Frank
>>>
>>>
>>>
date: Sat, 26 Jul 2008 15:14:35 +0100
author: Tiago Halm
Re: VS2008 creates a 2nd endpoint when actualising a web reference
{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang2052\f0\fs20 Hi Frank,
\par
\par Thanks for your followup.
\par
\par So currently, what's the error message/exception you got, is it an exception about "security negotiate"? Seems the VS will generate different client proxy class based on different service credential setting. Would you let me know what's your WCF service's current running process identity? Is it an system account(such as network service ) or a normal domain user account?
\par
\par here are some threads and article mentioned how the service process idneity will affect the client-side's negotiate with server-side(when using windows authentication):
\par
\par #Moving Services and User Principals
\par http://blogs.msdn.com/drnick/archive/2007/04/16/moving-services-and-user-principals.aspx
\par
\par #serPrincipalName element generated in client config
\par http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=404622&SiteID=1
\par
\par I suggest you also try Tiago's suggestion. If there is any other findings or questions, please feel free to post here.
\par
\par Sincerely,
\par
\par Steven Cheng
\par Microsoft MSDN Online Support Lead
\par
\par Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: msdnmg@microsoft.com.
\par
\par ==================================================
\par Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notifications.
\par ==================================================
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par \pard\li720 --------------------
\par Date: Fri, 25 Jul 2008 10:37:31 +0200
\par From: Frank Hauptlorenz <ecstasy.tribe@nospam.nospam>
\par User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
\par MIME-Version: 1.0
\par Subject: Re: VS2008 creates a 2nd endpoint when actualising a web reference
\par References: <#RF8izO7IHA.1204@TK2MSFTNGP04.phx.gbl> <#EEL9hh7IHA.5024
\par
\par Hi Steven,
\par
\par a little follow up:
\par
\par 1. Removing and adding the service had no effect. The same issue happens
\par again.
\par 2. The issue has exactly to do with the identity segment. If I leave it
\par in, the actualizing is working.
\par If I remove it and then actualise, VS2008 will create me a second client
\par entry.
\par
\par I do still not know, for what I need the identy segment in the client.
\par (PS: I switched to security mode "none" now, this is working)
\par
\par Thank you,
\par Frank
\par
\par }
date: Mon, 28 Jul 2008 02:46:03 GMT
author: (Steven Cheng [MSFT])
Re: VS2008 creates a 2nd endpoint when actualising a web reference
{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang2052\f0\fs20 Hi Frank,
\par
\par Have you got any progress on this issue or have you tried something mentioned in previous messages?
\par
\par If there is still anything unclear or need help, please feel free to post here.
\par
\par Sincerely,
\par
\par Steven Cheng
\par Microsoft MSDN Online Support Lead
\par
\par Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: msdnmg@microsoft.com.
\par
\par ==================================================
\par Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notifications.
\par
\par ==================================================
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par \pard\li720 --------------------
\par
\par From: stcheng@online.microsoft.com (Steven Cheng [MSFT])
\par Organization: Microsoft
\par Date: Mon, 28 Jul 2008 02:46:03 GMT
\par Subject: Re: VS2008 creates a 2nd endpoint when actualising a web reference
\par
\par
\par Hi Frank,
\par
\par Thanks for your followup.
\par
\par So currently, what's the error message/exception you got, is it an exception about "security negotiate"? Seems the VS will generate different client proxy class based on different service credential setting. Would you let me know what's your WCF service's current running process identity? Is it an system account(such as network service ) or a normal domain user account?
\par
\par here are some threads and article mentioned how the service process idneity will affect the client-side's negotiate with server-side(when using windows authentication):
\par
\par #Moving Services and User Principals
\par http://blogs.msdn.com/drnick/archive/2007/04/16/moving-services-and-user-principals.aspx
\par
\par #serPrincipalName element generated in client config
\par http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=404622&SiteID=1
\par
\par I suggest you also try Tiago's suggestion. If there is any other findings or questions, please feel free to post here.
\par
\par Sincerely,
\par
\par Steven Cheng
\par Microsoft MSDN Online Support Lead
\par
\par Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: msdnmg@microsoft.com.
\par
\par ==================================================
\par Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notifications.
\par ==================================================
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par }
date: Wed, 30 Jul 2008 07:22:56 GMT
author: (Steven Cheng [MSFT])
Re: VS2008 creates a 2nd endpoint when actualising a web reference
Hi Steven, Tiago,
thank you both for your suggestions. I will try them later, I will now
fill the WCF services with life.
If this is finished and the project goes to the implementation state, I
will specify the correct endpoint settings.
Thank you,
Frank
Steven Cheng [MSFT] schrieb:
> Hi Frank,
>
> Have you got any progress on this issue or have you tried something
> mentioned in previous messages?
>
> If there is still anything unclear or need help, please feel free to post
> here.
>
> Sincerely,
>
> Steven Cheng
> Microsoft MSDN Online Support Lead
>
> Delighting our customers is our #1 priority. We welcome your comments and
> suggestions about how we can improve the support we provide to you. Please
> feel free to let my manager know what you think of the level of service
> provided. You can send feedback directly to my manager at:
> msdnmg@microsoft.com.
>
> ==================================================
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
> ications.
>
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.
> --------------------
>
> From: stcheng@online.microsoft.com (Steven Cheng [MSFT])
> Organization: Microsoft
> Date: Mon, 28 Jul 2008 02:46:03 GMT
> Subject: Re: VS2008 creates a 2nd endpoint when actualising a web reference
>
>
> Hi Frank,
>
> Thanks for your followup.
>
> So currently, what's the error message/exception you got, is it an
> exception about "security negotiate"? Seems the VS will generate different
> client proxy class based on different service credential setting. Would
> you let me know what's your WCF service's current running process identity?
> Is it an system account(such as network service ) or a normal domain user
> account?
>
> here are some threads and article mentioned how the service process idneity
> will affect the client-side's negotiate with server-side(when using windows
> authentication):
>
> #Moving Services and User Principals
> http://blogs.msdn.com/drnick/archive/2007/04/16/moving-services-and-user-pri
> ncipals.aspx
>
> #serPrincipalName element generated in client config
> http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=404622&SiteID=1
>
> I suggest you also try Tiago's suggestion. If there is any other findings
> or questions, please feel free to post here.
>
> Sincerely,
>
> Steven Cheng
> Microsoft MSDN Online Support Lead
>
> Delighting our customers is our #1 priority. We welcome your comments and
> suggestions about how we can improve the support we provide to you. Please
> feel free to let my manager know what you think of the level of service
> provided. You can send feedback directly to my manager at:
> msdnmg@microsoft.com.
>
> ==================================================
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
> ications.
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
date: Mon, 04 Aug 2008 09:55:02 +0200
author: Frank Hauptlorenz am
Re: VS2008 creates a 2nd endpoint when actualising a web reference
{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang2052\f0\fs20 Thanks for your reply Frank,
\par
\par No problem. If you need any further help later, please feel free to post here.
\par
\par Sincerely,
\par
\par Steven Cheng
\par Microsoft MSDN Online Support Lead
\par
\par
\par Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: msdnmg@microsoft.com.
\par
\par ==================================================
\par Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notifications.
\par
\par ==================================================
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par \pard\li720 --------------------
\par Date: Mon, 04 Aug 2008 09:55:02 +0200
\par Subject: Re: VS2008 creates a 2nd endpoint when actualising a web reference
\par
\par
\par Hi Steven, Tiago,
\par
\par thank you both for your suggestions. I will try them later, I will now
\par fill the WCF services with life.
\par If this is finished and the project goes to the implementation state, I
\par will specify the correct endpoint settings.
\par
\par Thank you,
\par Frank
\par
\par
\par Steven Cheng [MSFT] schrieb:
\par > Hi Frank,
\par >
\par > Have you got any progress on this issue or have you tried something
\par > mentioned in previous messages?
\par >
\par > If there is still anything unclear or need help, please feel free to post
\par > here.
\par >
\par > Sincerely,
\par >
\par > Steven Cheng
\par > Microsoft MSDN Online Support Lead
\par >
\par > Delighting our customers is our #1 priority. We welcome your comments and
\par > suggestions about how we can improve the support we provide to you. Please
\par > feel free to let my manager know what you think of the level of service
\par > provided. You can send feedback directly to my manager at:
\par > msdnmg@microsoft.com.
\par >
\par > ==================================================
\par > Get notification to my posts through email? Please refer to
\par > http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
\par > ications.
\par \pard =
\par }
date: Mon, 04 Aug 2008 08:37:39 GMT
author: (Steven Cheng [MSFT])
|
|