VS 2008 and Service References

  • Thread starter Thread starter Marc S
  • Start date Start date
M

Marc S

I have a WCF service deployed on IIS. When I browse to the service
through IE everything is peachy. When I try to add a reference to the
service in Visual Studio 2008 "Add Service Reference" I get prompted
to login and the title of the login box reads "Discovery Credential".

I enter in my username and pass and it prompts me again. I enter an
admin user and pass and it still prompts me. What could be causing
this?

Our IIS requires us to use Windows authentication but we tested with
Anonymous and everything worked. Could it be a bug in VS that when you
attempt to add or update a service reference it does not pass any
credentials to the server?
 
I have a WCF service deployed on IIS. When I browse to the service
through IE everything is peachy. When I try to add a reference to the
service in Visual Studio 2008 "Add Service Reference" I get prompted
to login and the title of the login box reads "Discovery Credential".

I enter in my username and pass and it prompts me again. I enter an
admin user and pass and it still prompts me.  What could be causing
this?

Our IIS requires us to use Windows authentication but we tested with
Anonymous and everything worked. Could it be a bug in VS that when you
attempt to add or update a service reference it does not pass any
credentials to the server?

Same for "Add Web Reference".
 
1.) Execute the steps in the Workaround section of the following
article: http://support.microsoft.com/kb/871179. This forces the
services to use NTLM authentication.
2.) Modify the properties of the service and client projects to use
NTLM authentication.
3.) Modify the Web.config file of the service to force the http
binding transport to "Ntlm" for both client and proxy credential
types.

<basicHttpBinding>
<binding name="basicHttpBinding1">
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Ntlm"
proxyCredentialType="Ntlm"/>
</security>
</binding>
</basicHttpBinding>

Yay, I can write code now!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top