Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Unable to connect to database via webservce

Reply
Thread Tools

Unable to connect to database via webservce

 
 
Saira
Guest
Posts: n/a
 
      02-20-2006
Hi all
I have taken on a project from another developer and am experiencing some
problems.
To give some background, the application was running smoothly (client talks
to web service, web service goes to database, web service returns data,
client displays data).
We then upgraded to SQL Server 2005. The machine is a new box.
Now when I run the application, if the web service is running on my local
machine, under localhost, I do not have a problem, if it is running on a
webserver, it does not seem to connect to the database at all.
A query accessing the database from the client application works fine, and a
trace shows it up.
When the web service queries the database, nothing appears in the trace on
the SQL Server box.
I am running in a mixed mode, Windows 2003 environment. The connection from
the web service is via a SQL login. I have setup delegation between the web
server and the SQL box. I have checked the permissions and these seem fine
(as testified by the fact that it works when the web service is running
locally)
Anyone have any thoughts? I'll try pretty much anything at the moment.

TIA
Saira


 
Reply With Quote
 
 
 
 
Stu
Guest
Posts: n/a
 
      02-20-2006
I don't use SQL Server 2005, but I vaguely remember from the Road Show
that remote access is turned off by default; perhaps the following web
link will help:

http://www.aquesthosting.com/HowTo/S...QLError26.aspx

Stu

 
Reply With Quote
 
 
 
 
Saira
Guest
Posts: n/a
 
      02-20-2006
Thanks Stu
remote access is on for TCPIP and Named Pipes.
Any other thoughts?


"Stu" <> wrote in message
news: oups.com...
>I don't use SQL Server 2005, but I vaguely remember from the Road Show
> that remote access is turned off by default; perhaps the following web
> link will help:
>
> http://www.aquesthosting.com/HowTo/S...QLError26.aspx
>
> Stu
>



 
Reply With Quote
 
Josh Twist
Guest
Posts: n/a
 
      02-20-2006
Hi Saira,

Do you not see any error in your application?

Are you sure the web server is pointing to the correct Sql box (i.e.
the one that you are tracing?)

Josh
http://www.thejoyofcode.com/

 
Reply With Quote
 
Saira
Guest
Posts: n/a
 
      02-20-2006
I am pretty sure it is pointing to the correct location. like i said, the
webservice works fine and gets data out of the database correctly when it
runs as local host, it's just when i put it on the server that i have a
problem. this is why i am wondering whether it is a delegation issue.
however, the delegation seems fine. i am runnign teh database and the web
server using the local system account (so no need to register SPNs) and have
delegated in Active Directory to the SQL Server service.
I had anonymous access and integrated security enabled on the web server and
was not getting any error messages, just a time out. when i changed this to
remove anonymous access, i got 401.2. I thought that i had to disallow
anonymous access if i was enabling delegation, is that correct?

Tearing my hair out here, it's so frustrating!!!

Saira


"Josh Twist" <> wrote in message
news: ups.com...
> Hi Saira,
>
> Do you not see any error in your application?
>
> Are you sure the web server is pointing to the correct Sql box (i.e.
> the one that you are tracing?)
>
> Josh
> http://www.thejoyofcode.com/
>



 
Reply With Quote
 
Praveen
Guest
Posts: n/a
 
      02-23-2006
hai Saira

Are you poienting to correctly to database ??(I mean by speciying IP address
only not using localhost) and
is your server system is containing MDAC components ??? .... (Sql client
Components To get data from SQL server system to ur webservice)

"Saira" wrote:

> I am pretty sure it is pointing to the correct location. like i said, the
> webservice works fine and gets data out of the database correctly when it
> runs as local host, it's just when i put it on the server that i have a
> problem. this is why i am wondering whether it is a delegation issue.
> however, the delegation seems fine. i am runnign teh database and the web
> server using the local system account (so no need to register SPNs) and have
> delegated in Active Directory to the SQL Server service.
> I had anonymous access and integrated security enabled on the web server and
> was not getting any error messages, just a time out. when i changed this to
> remove anonymous access, i got 401.2. I thought that i had to disallow
> anonymous access if i was enabling delegation, is that correct?
>
> Tearing my hair out here, it's so frustrating!!!
>
> Saira
>
>
> "Josh Twist" <> wrote in message
> news: ups.com...
> > Hi Saira,
> >
> > Do you not see any error in your application?
> >
> > Are you sure the web server is pointing to the correct Sql box (i.e.
> > the one that you are tracing?)
> >
> > Josh
> > http://www.thejoyofcode.com/
> >

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Database Database Database scott93727@gmail.com Computer Information 0 09-27-2012 02:43 AM
DataBase DataBase DataBase DataBase scott93727@gmail.com Computer Information 0 09-26-2012 09:40 AM
connect a database in remote server (can connect to the server via SSH) zhangxiaoyu912@gmail.com Perl Misc 2 07-18-2007 07:20 PM
Unable to connect to internet...via wireless Fred Wireless Networking 3 06-25-2007 12:04 AM
Unable to renew IP address/unable to connect to wireless network =?Utf-8?B?SmFzZXlCb3k=?= Wireless Networking 1 12-22-2005 04:28 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57