473,624 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQL server didn't exist or access denied

I can't connect to our database (seperate database server) from within my
webservice. I cannot understand why.!!!

* I have configured IIS not to allow anonymous access and to use "windows
integrated authentication"
* I have configured the webService to use "windows" authentication and to
impersonate whomeever uses it.
* In the client (the one that consumes the webservice) I have specified the
network credentials (DefaultCredent ials) that the webService is to use.
* The database is configured to let me (my user) access the database.
* The connection string specifies integrated security
- In the webService I get the CurrentUser and check if it is my account: It
is

This setup didn't let me access the database nor did it allow me to write
debug files so I did a explicit impersonation of my user account (uid, pass
adn domain); result: I can write files whereever I want but I still cannot
access the database.

I tried to change the ProcessModel of IIS in machine.config to run as System
instead (higher privilegies). To no avail...

What to do.???

I know that I could login to the database using SQL authentication but that
is less secure and it doesn't answer this question.
Nov 21 '05 #1
2 3146
Hi Johan,

Have you had a chance to look at the SQL server log? The log might give
more information on what is going on.

Thanks,
Yuri

"Johan Johansson (Sweden)" <Jo************ ******@discussi ons.microsoft.c om>
wrote in message news:2B******** *************** ***********@mic rosoft.com...
I can't connect to our database (seperate database server) from within my
webservice. I cannot understand why.!!!

* I have configured IIS not to allow anonymous access and to use "windows
integrated authentication"
* I have configured the webService to use "windows" authentication and to
impersonate whomeever uses it.
* In the client (the one that consumes the webservice) I have specified
the
network credentials (DefaultCredent ials) that the webService is to use.
* The database is configured to let me (my user) access the database.
* The connection string specifies integrated security
- In the webService I get the CurrentUser and check if it is my account:
It
is

This setup didn't let me access the database nor did it allow me to write
debug files so I did a explicit impersonation of my user account (uid,
pass
adn domain); result: I can write files whereever I want but I still cannot
access the database.

I tried to change the ProcessModel of IIS in machine.config to run as
System
instead (higher privilegies). To no avail...

What to do.???

I know that I could login to the database using SQL authentication but
that
is less secure and it doesn't answer this question.

Nov 21 '05 #2
Hi,

Without some information on the specific error you are getting, it's hard
to fathom a guess. Does the connect to SQL step return an error? What
does it say?

Regards

Dan Rogers
Microsoft Corporation
--------------------
Thread-Topic: SQL server didn't exist or access denied
thread-index: AcTNWgAAq5OnvEe JSkGEecQA0ZhaKQ ==
X-WBNR-Posting-Host: 139.58.232.1
From: =?Utf-8?B?Sm9oYW4gSm9 oYW5zc29uIChTd2 VkZW4p?=
<Jo************ ******@discussi ons.microsoft.c om>
Subject: SQL server didn't exist or access denied
Date: Thu, 18 Nov 2004 02:33:10 -0800
Lines: 26
Message-ID: <2B************ *************** *******@microso ft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.1.29
Path: cpmsftngxa10.ph x.gbl!TK2MSFTNG XA01.phx.gbl!TK 2MSFTNGXA03.phx .gbl
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :7523
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

I can't connect to our database (seperate database server) from within my
webservice. I cannot understand why.!!!

* I have configured IIS not to allow anonymous access and to use "windows
integrated authentication"
* I have configured the webService to use "windows" authentication and to
impersonate whomeever uses it.
* In the client (the one that consumes the webservice) I have specified
the
network credentials (DefaultCredent ials) that the webService is to use.
* The database is configured to let me (my user) access the database.
* The connection string specifies integrated security
- In the webService I get the CurrentUser and check if it is my account:
It
is

This setup didn't let me access the database nor did it allow me to write
debug files so I did a explicit impersonation of my user account (uid, pass
adn domain); result: I can write files whereever I want but I still cannot
access the database.

I tried to change the ProcessModel of IIS in machine.config to run as
System
instead (higher privilegies). To no avail...

What to do.???

I know that I could login to the database using SQL authentication but that
is less secure and it doesn't answer this question.

Nov 23 '05 #3

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

Similar topics

2
2133
by: Jay Chan | last post by:
We have just installed a SQL Server 2000 (SP 3A) onto a computer that has Windows-2003 Server on it. Now, we cannot get access to that database server from other computers. Seem like this may be an issue with Active Directory. Our network consists of Windows-2000 Servers (SP 4) and Windows-2000 workstations and Windows-XP workstations. We also have SQL Server 2000 (SP2) in three Windows-2000 servers. All work fine. Recently, we get a...
2
1596
by: Chris Stewart | last post by:
We're having an issue here at school with trying to access a SQL Server database from a .NET application. As a department, we roll out a generic image to all of our lab computers. For some reason we were getting "SQL Server does not exist or access denied" errors ( http://www.isy.vcu.edu/~cstewart/sqlerror.jpg ). One of the lab machines in the lab worked fine and could connect without any issues. As a quick fix, we re-imaged 3 of the...
6
467
by: Bob | last post by:
Having trouble getting started. I created an instance of MSDE called VSDOTNET on a computer with the name of sysdev. Using MS SQL Web Adminstrator I created a database called temp with a table called customer. In Visual Studio .NET I can see and access the data in the table. The dataconnection is called sysdev\vsdotnet\temp.dbo
3
567
by: Olivogt | last post by:
Hello, I was just puting an application on the web server but it did not work as usual... - I do develop on my notebook and move released applications to the Web server - both have Sql Server 2000 - In this particular application I have a form login based on Username/Password from a database table - the start page of the application has a datagrid, both pages are accessing ONE database but an other table - It seems that the username and...
9
2127
by: Steven Ung | last post by:
Hello all, I'm having the following error dump from an ASP.net application. The program is to calculate MRP and it involves complex queries looping thru hundreds of records in an few SQL 2000 table. After running for 2~3 minutes, the below error is shown. I've search high and low, but can't find anything close to solving this problem. The same ASP page, with less data however works without any issue and is still on test on our local...
5
1794
by: Dave Dudley | last post by:
Hi, I have a new ASP .Net project that has been developed on our development machine and connects to SQL Server 2000 on the same machine. It is connecting via a connection string similiar to: Data Source=;Initial Catalog=;uid=;Password=
1
2058
by: ssp | last post by:
G'Day All, I have a web application sitting on my laptop and a Sql Server 2000 database on our INTRANET server running Windows 2003. Up until recently I was able to access the database using my application. But recently it started to give me the error as below: **************** SQL Server does not exist or access denied. Exception Details: System.Data.SqlClient.SqlException: SQL Server does
1
4184
by: Atia Amin | last post by:
Hi, I am a new member. Hello to every one. I am new in ASP.NET area. I wrote an ASP.NET web application which was running ok with my old laptop. Currently I have given a new laptop. Now I copied my application to the new laptop and I am experiencing as SQL Server connection error: "SQL Server does not exist or access denied". Following is a simply ASP.NET application to test the connection and I am getting following error: For your...
0
8236
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
8621
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8335
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
7159
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...
1
6110
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5563
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4079
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
4174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1785
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.