Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...it was ingeniously designed and all those clicks were for my own good... and that was even before I got my speedy and useful answer to my tekkie question that I eventually posted..."

Geography

Where in the world do Tek-Tips members come from?
Diodin (Programmer)
25 Feb 02 5:14
Hello,

I'm building an application to access a database through the intranet. I need a n-tier application so I wanted to use web services. The data trail is webpage->web service->DLL->SQL Database. Here is the problem:

I have a database server (SQl 2000) and a webserver (Win2K server & IIS 5) with the .Net framework installed. When I build an web application without a web service I get the data from the database. When I build a web service and directly open the webservice in IE6 I get the data from the database. But when I use a webpage that calls the webservice then the access to the database is denied. The problem is that the authentication isn't forwarded.
Impersonation is set to true in the machine configuration, I tried Kerberos authentication and even certificates, but nothing helps. I'm running out of ideas.
There must be a simple way to get this to work.

Arjan Meskers
Winthesis B.V.
The Netherlands
Diodin (Programmer)
25 Feb 02 7:34
I found the solution:

1. Set impersonate (in the machine.config file) to true
2. Set the nextline to your WebService:
   ws.Credentials = System.Net.CredentialCache.DefaultCredentials
3. Set delegation true for all machines on the domain controller.

Arjan

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close