473,657 Members | 2,655 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VS 2008 and Service References

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?
Jun 27 '08 #1
2 3235
On Apr 30, 5:02*pm, Marc S <msci...@osmose .comwrote:
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".
Jun 27 '08 #2
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.

<basicHttpBindi ng>
<binding name="basicHttp Binding1">
<security mode="Transport CredentialOnly" >
<transport clientCredentia lType="Ntlm"
proxyCredential Type="Ntlm"/>
</security>
</binding>
</basicHttpBindin g>

Yay, I can write code now!!!
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1175
by: Dave Rayment | last post by:
Hi, We have a multiple-project solution in VS.NET 2003, including a single web service. A couple of projects in the solution have references to this web service and everything was working OK until we added some methods and changed the signatures for some existing methods on the service. We changed the version number of the service assembly to reflect the update. We did an update on the existing references within Visual Studio, which...
11
2712
by: =?Utf-8?B?QXNhZg==?= | last post by:
Hello, I have just installed VISTA Enterprise and VS.NET 2008. When pressing F5 to debug my test ASP.NET website, IE 7 display the message "Internet Explorer cannot display the webpage". The local URL that VS.NET 2008 generates is http://localhost:49705/aaa/Default.aspx. In IIS7 Manager, ASP.NET V2.0… is "Allowed" in the ISAPI and CGI Restrictions. Also IIS7 is working and display ASP.NET web sites if I convert them to IIS7...
3
919
by: cj | last post by:
I know there is a menu somewhere in 2008 that lets you set the version of .net to build the app to. Where is it? I'm building a windows app if that makes a difference.
4
2455
by: Ken Fine | last post by:
I've been living with a frustrating issue with VS.NET for some months now and I need to figure out what the problem is. Hopefully someone has run into the same issue and can suggest a fix. I suspect some permissions problem. I'm running VS.NET 2008 in Vista. Symptoms and observations: * ASP.NET's native ImageMap and Image controls work just fine and provide a design-time preview of images that are referenced via the ImageUrl property *...
3
1452
by: Lloyd Sheen | last post by:
The text below is from the immediate window: ?DownloadZipFile.Attributes.Count 1 ?DownloadZipFile.Attributes(0) Nothing Now that makes no sense. Why when I add an attribute to a element cannot I not see what it is. I am trying to trace something and this
4
12689
by: =?Utf-8?B?TWlrZSBHYWxl?= | last post by:
VS 2008 initially didn't debug classic ASP. SP1 fixes this in some ways. You can debug if you select the debug option to "Start Without Debugging, then either attach the debugger manually or place a stop directive in the code which ends up doing the same thing. The problem with this is that you can't debug browser side Javascript in the same debug run. You get a "The breakpoint will not currently be hit. The document is not loaded." if...
1
3765
by: =?Utf-8?B?QW50amU=?= | last post by:
I need product keys for Terminal Server Windows Server 2008 access (CALs) under MSDN - TSLM Service said they cannot provide product keys for the access.
1
2168
by: Puja Patel | last post by:
hi all, am not sure if this is the right place for this post. I created a website on .net framework 2.0 using visual studio 2005 and web service software factory. I created all my business components and data access classes using web service software factory. Now my problem is there is a new version of web service software factory available for visual studio 2008 and it creates data access classes in a
2
8096
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I have a server 2008 IIS 7.0 with indexing service installed. I have created the catalog and have a test page using these posts: http://kbalertz.com/954822/install-configure-Indexing-Service-Windows-Server-computer.aspx http://kbalertz.com/820105/Application-Query-Indexing-Service-Catalog-Using-Visual-Basic.aspx I can search some files .xls .doc and others but It will not find anything in .pdf
0
8385
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8303
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8821
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8502
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8602
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7316
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1941
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.