Accessing webservice with Compact Framework with credentials

M

Mike Dole

I am working on an application using the compact framework.
This app calls a webservice on my develop machine to make some SQL
queries to an oracle database and this is working really well.

But here's the thing: I want to get rid of the 'anonymous access' in
IIS because it involves some update statements.

The minute I remove 'anonymous access' however, I get a 401 exception
(Unauthorized)!


I have the following in my web.config:
<authentication mode="Windows" />

<allow users="mydomain\myuser"/>
<deny users="*"/>

"I've tried <identity impersonate="true"/> in the web.config?"


And the following piece of code in the CF application

Public Shared credentials = New NetworkCredential("myuser",
"mypassword", "mydomain")

Also tried it with
("(e-mail address removed)", "mypassword", "mydomain")
(mydomain\myuser", "mypassword", "mydomain")

Dim objService As WS.OracleService = New WS.OracleService
objService.Credentials = credentials

I've set the Network ID on the handheld to use the username and
password +
domain but still no success...

In IIS - Verification: Integrated's selected Basic's not
(Realm=mydomain)
The IIS machine is a 'client', don't know if that makes a difference?

I guess there must be something wrong, if only...

Thanks in advance

Mike
 
C

Chris Botha

There are issues. Post this question on the compactframework newsgroup, I've
seen this question answered there before.
 

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

Members online

Forum statistics

Threads
473,995
Messages
2,570,225
Members
46,815
Latest member
treekmostly22

Latest Threads

Top