473,406 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

WCF: Passing Windows-credentials to service

I have created a WCF-service running on IIS. The virtual directory has
anonymous access disabled and requires integrated windows authentication.

The proxy to the service is auto-generated using Visual Studio 2008's
"Add Service reference".

My problem is that when I try to execute a method on the service, I get
the following exception:

The HTTP request is unauthorized with client authentication scheme
'Anonymous'. The authentication header received from the server was
'Negotiate,NTLM'

How do I solve this? I can't seem to get my head around passing the
correct windows-credentials to my channel, so any help will be greatly
appreciated.

My instatiation of my client in code is this:

BWServiceClient BWClient = new BWServiceClient();

List<BathingwaterStationlist = new List<BathingwaterStation>();
list.AddRange(
BWClient.GetBathingWaterStationList(
year_, stationNumber_, stationName_, municipalityCode_
)
);

Thanks,

--
Jesper ____ Stocholm
MVP - in something totally different ... :o)
Nov 7 '08 #1
0 2834

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

Similar topics

2
by: MuZZy | last post by:
Hi, I am starting a new Smart Client project and wanted to employ th enew WF techniques, Communication Foundation in particular, but i can't find a good book - seems like all are scheduled to go...
7
by: =?Utf-8?B?TW9iaWxlTWFu?= | last post by:
Hello everyone: I am looking for everyone's thoughts on moving large amounts (actually, not very large, but large enough that I'm throwing exceptions using the default configurations). We're...
10
by: ochocki | last post by:
Hi, Reading about WCF I had this feeling that .net remoting has been left behind. There's a lot about webservices but nothing about remoting which suprises me as MS was encouraging to use it in...
1
by: John Cosmas | last post by:
I need an example of a project where by WCF Host passes a known DATATABLE to the CLIENT. Can someone please do me a big favor. The examples posted by MSFT is just too basic and passes simple...
0
by: mlaanti | last post by:
Hello, I asked this couple weeks ago but didn't get answers. So, does Silverlight 2 Beta 2 understand anything about WCF's Exceptions? Trying to passing a fault reason as Exceptions...
1
by: =?Utf-8?B?QnJhZA==?= | last post by:
Generally on a Windows system the services file (located in Windows\System32\Drviers\Etc\Services) would specify port allocation to different applications. It contains registered ports and...
0
by: bramoin | last post by:
Hi, We are trying to decide if we should use Sockets or WCF for our project. We have two type of clients: 1. Users with IE accessing the server and so we know the answer there is WCF. 2. Processes...
5
by: ....DotNet4Ever.... | last post by:
OK here the big problem... My organization is not yet ready to move to .NET 3.5 and even .NET 3.0 is still seen as something "not quite stable" (don't ask me why). For those reasons the project...
1
by: lmod | last post by:
I am developing an application using WPF and WCF. This app on the server side will need for WCF services hosted in IIS6 to communicate with WCF services that are hosted as Windows services on the...
0
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi misters, i have an app.config of my App that uses WCF. I need change the configuration servicemodel, and I want update somes values.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.