473,563 Members | 2,747 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web Service and VB6 COM Object using ADO 2.6

I have a VB 6 COM object that uses ADO 2.6 to connect to a database. I have
a Web Service that references this COM object and calls a method in this
objects that uses ADO 2.6 to connect. The Web Service gives the error
"connected[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist
or access denied."

I am using Windows Integrated Security. The connection string looks like
this: "Provider=SQLOL EDB; Data Source=serverna me;Initial
Catalog=dbname; Integrated Security=SSPI;p ersist security
info=False;Trus ted_Connection= Yes"

Is there anything that I need to change in web.config? Do I have to move to
ADO.NET?

I have the following in web.config:

<authenticati on mode="Windows" />

<identity impersonate="tr ue"/>

Thanks,

Kumar
Nov 21 '05 #1
2 3368
You might want to try logging in as an explicit user so that you can narrow
down whether it's an authentication problem or a connectivity problem. Is
SQL Server on the same machine as IIS? That is a requirement to use
integrated security. Check out this link:

Accessing SQL Server Using Windows Integrated Security
http://msdn.microsoft.com/library/de...edsecurity.asp
Thanks,

Sam

--
_______________ _______________ _
Sam Santiago
ss*******@n0spa m-SoftiTechture.c om
http://www.SoftiTechture.com
_______________ _______________ _
"Kumar" <ku***@nospam.i nteramerica.com > wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
I have a VB 6 COM object that uses ADO 2.6 to connect to a database. I have a Web Service that references this COM object and calls a method in this
objects that uses ADO 2.6 to connect. The Web Service gives the error
"connected[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist
or access denied."

I am using Windows Integrated Security. The connection string looks like
this: "Provider=SQLOL EDB; Data Source=serverna me;Initial
Catalog=dbname; Integrated Security=SSPI;p ersist security
info=False;Trus ted_Connection= Yes"

Is there anything that I need to change in web.config? Do I have to move to ADO.NET?

I have the following in web.config:

<authenticati on mode="Windows" />

<identity impersonate="tr ue"/>

Thanks,

Kumar

Nov 21 '05 #2
Thanks for pointing me in that direction. I figured it out.

Kumar

"Sam Santiago" <ss*******@n0sp am-SoftiTechture.c om> wrote in message
news:Oo******** ******@TK2MSFTN GP10.phx.gbl...
You might want to try logging in as an explicit user so that you can narrow down whether it's an authentication problem or a connectivity problem. Is SQL Server on the same machine as IIS? That is a requirement to use
integrated security. Check out this link:

Accessing SQL Server Using Windows Integrated Security
http://msdn.microsoft.com/library/de...edsecurity.asp

Thanks,

Sam

--
_______________ _______________ _
Sam Santiago
ss*******@n0spa m-SoftiTechture.c om
http://www.SoftiTechture.com
_______________ _______________ _
"Kumar" <ku***@nospam.i nteramerica.com > wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
I have a VB 6 COM object that uses ADO 2.6 to connect to a database. I

have
a Web Service that references this COM object and calls a method in this
objects that uses ADO 2.6 to connect. The Web Service gives the error
"connected[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied."

I am using Windows Integrated Security. The connection string looks like
this: "Provider=SQLOL EDB; Data Source=serverna me;Initial
Catalog=dbname; Integrated Security=SSPI;p ersist security
info=False;Trus ted_Connection= Yes"

Is there anything that I need to change in web.config? Do I have to move

to
ADO.NET?

I have the following in web.config:

<authenticati on mode="Windows" />

<identity impersonate="tr ue"/>

Thanks,

Kumar


Nov 21 '05 #3

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

Similar topics

3
19702
by: Steve Lutz | last post by:
Hi All, I have a Windows Service that runs well. The service hosts a remote object. The purpose of the object is so that I can "peak" into the service to see what it's doing. I wrote a small Windows Application that connects to the remote object and prints out status information. Everything works fine when I first start the service....
6
3793
by: Leonardo Curros | last post by:
Hello, I would like to know what's the best way to restart one service. I would like to do it from the service itself. Is this possible? I try it with ServiceController.stop() ServiceController.WaitForStatus(ServiceControllerStatus.Stopped) ServiceController.start() but doesn´t works. It seems waitforstatus instruction is the last
2
6881
by: deko | last post by:
When to use a privileged user thread rather than a windows service? That's the question raised in a previous post . It was suggested that if the service needs to interact with a WinForms app (which is the UI used to adjust the actions taken by, and the schedule of the service), then a privileged user thread should be used in the UI - no...
3
2206
by: lk | last post by:
I need some help regarding the mechanism to put in place to be able to dynamically update a remote object when the assembly where it is defined is modified, and this whitout having service interruption. Basically what I'm missing is how do we re-expose a remote object when assembly has changed, and this without any interruption to the...
0
1990
by: JDF | last post by:
I am trying to create a Windows service using SimpleXMLRPCServer and win32serviceutil. The service itself seems to be working properly (starts, stops, etc) and I can connect using an XMLRPC client from the localhost. However when I connect from a remote client, I either get a socket error or an xmlrpclib.ProtocolError error. If I use...
2
4940
by: Richard Collette | last post by:
Hi, I have a service, that runs perfectly when executed outside of the web service environment. When called as a web service I get the exception listed below sporadically. A call to the web method may succeed one time and not another. I cannot find any reason why it would work one time and not another. The exception occurs every two...
3
2501
by: Grant Schenck | last post by:
Hello, I have a Windows Service developed in C# .NET. I'm making it a remote server and I can, via an IPC Channel, expose methods and call them from a client. However, I now want my remoted object to be able to invoke a method on my server object and given that the object is built in a C# Class DLL shared between the client and server I'm...
9
12004
by: jsoques | last post by:
Hello, I created a Web Service using .Net 2.0 that has a function that returns a DataTable. I can test the function from the web page when I access the .asmx from a browser on localhost and it works. I can also test the function using VB6 and the xmlhttp activex object. The problem I have now is when using VS 2005 or VB.Net 2005 Express and...
0
1559
by: iprogrammer | last post by:
i have a problem when i try to run my windows service ..which is "Error 1053: The service did not respond to the start or control request in a timely fashion" >after this i cannot anything with the service and have to restart the computer inorder for the service to be deleted. >1) my service program is basically a client tht is listening on...
5
3283
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name? Why do I need to set a property within my code to the service name? Are all these required or am I just doing this for consistency purposes?
0
7664
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...
1
7638
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...
0
7948
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5484
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...
0
5213
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...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1198
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
923
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.