473,770 Members | 6,105 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Database problem.....HEL P

DM
newbie trying to set up a Database and keep getting the same result. ERROR

An error occured while retrieving the information from the database:

Unable to cast COM object of type 'System._ComObj ect' to interface type
'Microsoft.Visu alStudio.OLE.In terop.IServiceP rovider'. This operation failed
because the QueryInterface call on th COM component for the interface with
IID '{65D5140C1-7436-11CE-8034-00aa006009FA}' failed with HRESULT: 0x80004002
(No such interface supported(Excep tion from HRESULT: 0x80004002
(E_NOINTERFACE) )).

any help would be greatly appreciated.

Thanks DM
Nov 17 '05 #1
3 4730
Much more info would be needed to help you.

What database? OS version? DB version? Configuration info?
Connection string? Is this happening when you connect, when you issue a
query, or someplace else? Sample code would be really useful here.

All I can tell from the error is you are probably using the OleDb client
library and something down in the basement plumbing has sprung a leak.

--Bob

DM wrote:
newbie trying to set up a Database and keep getting the same result. ERROR

An error occured while retrieving the information from the database:

Unable to cast COM object of type 'System._ComObj ect' to interface type
'Microsoft.Visu alStudio.OLE.In terop.IServiceP rovider'. This operation failed
because the QueryInterface call on th COM component for the interface with
IID '{65D5140C1-7436-11CE-8034-00aa006009FA}' failed with HRESULT: 0x80004002
(No such interface supported(Excep tion from HRESULT: 0x80004002
(E_NOINTERFACE) )).

any help would be greatly appreciated.

Thanks DM

Nov 17 '05 #2
DM
Sorry so short on info......novic e at work.....

I am just learing csharp and was going through a tutorial from microsoft and
learn visual studio.net .... there was no major code yet. Went to add a class
then seleceted SQL Database then set the name to MyCompany.mdf and clicked
add, then the Data Source Configuration Wizard window opens with this error.
the first part of the window says "Which database objects do you want in your
dataset?", the rest of the window has the error that I listed below. The only
choice that i have at the bottom of the window is the Previous or Cancel
button. I am sure that there is probably a whole procedure to setting up even
a basic database, but I know they did not show it in any of the tutorials so
far..... I have worked with other languages but never with csharp or c++ for
that matter...

Thanks for the POST.
DM
"Bob Grommes" wrote:
Much more info would be needed to help you.

What database? OS version? DB version? Configuration info?
Connection string? Is this happening when you connect, when you issue a
query, or someplace else? Sample code would be really useful here.

All I can tell from the error is you are probably using the OleDb client
library and something down in the basement plumbing has sprung a leak.

--Bob

DM wrote:
newbie trying to set up a Database and keep getting the same result. ERROR

An error occured while retrieving the information from the database:

Unable to cast COM object of type 'System._ComObj ect' to interface type
'Microsoft.Visu alStudio.OLE.In terop.IServiceP rovider'. This operation failed
because the QueryInterface call on th COM component for the interface with
IID '{65D5140C1-7436-11CE-8034-00aa006009FA}' failed with HRESULT: 0x80004002
(No such interface supported(Excep tion from HRESULT: 0x80004002
(E_NOINTERFACE) )).

any help would be greatly appreciated.

Thanks DM

Nov 17 '05 #3
Sorry, DM, I have never used the wizard, I've always created my own
connections / commands and executed them myself. In general I've found
the visually added DB objects and wizard-assisted setup creates code
that is either inefficient and/or not a scalable and maintainable
design, plus for me at least it's a poor way to learn how everything works.

I would suggest obtaining a valid connection string that works with this
DB (verified in Access or some other interactive tool), then
programmaticall y create and open a connection, create a command, add any
needed parameters, etc. I would Google for something like "ADO.NET
basic tutorial" for fundamental code examples. Then, create a console
app whose sole purpose is to create and open a connection, create a
command object, and then return a query result and display a couple of
fields of the first 5 records. Do this with a DataReader and then with
a DataAdapter so you get a feel for how both work. Trap all errors and
step through your code with a debugger until you are satisfied that (a)
you understand it and (b) it works correctly.

When you have accomplished this then you can work it into something more
generally useful like a Winforms or ASP.NET app with some bound
controls. Take it step by step.

In my opinion, for what it's worth, avoid the "drop a connection onto a
form" approach. It is really only appropriate for the most trivial apps
and does not provide you with deep understanding of what you're doing.
Same goes for relying on CommandBuilders and the like, at least until
you understand how to build commands yourself so you can understand the
quirks and limitations of the hand-holding provided by generated commands.

Best,

--Bob
DM wrote:
Sorry so short on info......novic e at work.....

I am just learing csharp and was going through a tutorial from microsoft and
learn visual studio.net .... there was no major code yet. Went to add a class
then seleceted SQL Database then set the name to MyCompany.mdf and clicked
add, then the Data Source Configuration Wizard window opens with this error.
the first part of the window says "Which database objects do you want in your
dataset?", the rest of the window has the error that I listed below. The only
choice that i have at the bottom of the window is the Previous or Cancel
button. I am sure that there is probably a whole procedure to setting up even
a basic database, but I know they did not show it in any of the tutorials so
far..... I have worked with other languages but never with csharp or c++ for
that matter...

Thanks for the POST.
DM
"Bob Grommes" wrote:

Much more info would be needed to help you.

What database? OS version? DB version? Configuration info?
Connection string? Is this happening when you connect, when you issue a
query, or someplace else? Sample code would be really useful here.

All I can tell from the error is you are probably using the OleDb client
library and something down in the basement plumbing has sprung a leak.

--Bob

DM wrote:
newbie trying to set up a Database and keep getting the same result. ERROR

An error occured while retrieving the information from the database:

Unable to cast COM object of type 'System._ComObj ect' to interface type
'Microsoft.V isualStudio.OLE .Interop.IServi ceProvider'. This operation failed
because the QueryInterface call on th COM component for the interface with
IID '{65D5140C1-7436-11CE-8034-00aa006009FA}' failed with HRESULT: 0x80004002
(No such interface supported(Excep tion from HRESULT: 0x80004002
(E_NOINTERFA CE))).

any help would be greatly appreciated.

Thanks DM

Nov 17 '05 #4

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

Similar topics

0
3341
by: Cherrish Vaidiyan | last post by:
sir, The following are the steps that i followed in setting up standby database on Red hat Linux 9. i am using Oracle 9i. i have followed the steps in this site : http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96653/create_ps.htm#66206 Still i give the steps i followed. Preparing the Primary Database for Standby Database Creation
19
21226
by: dchow | last post by:
Our database size is currently 4G and is incrementing at a rate of 45M/day. What is the max size of a SQL database? And what is the size beyond which the server performance will start to go down?
4
1130
by: Grant Stanley | last post by:
I'm developing an application in VS.Net 2003 using C#, which uses Crystal Reports. When creating each report, crystal asks where the database to use is, so I specify our SQL server using the ADO option. The problem is that these database settings seem to get compiled into the report, so when we take the application to our client it won't work on their systems. Before running each report I run some code which is ment to reset the...
6
2381
by: g | last post by:
Hi, I have an MS Access 2000 Database on a network. When ever 2 people use it at the same time it crashes. The database size is 14 megs. I have another database just like it...and it has not experienced any problems like this. It is about 5 MB. I don't think that size will matter? Anyhow the crashes occur usually when someone is using a form, and another person opends up a database and then in a given ammount of time closes it. Afterwords...
3
11013
by: route_coder | last post by:
I am using access database to create a crystal report in VB.NET Everything works fine when I run on my machine. But when I am deploying it other windows machines. It is asking for database server name and logon information. The problem which I understood from this is that the path is hardcoded in the crystal report and the database is in my bin folder. when I run my app on other machines it is looking for the database in that folder and...
15
2562
by: philip | last post by:
On a form, I have a datagridview. This datagridview is constructed on a dataset filled by a tableadapter. The table adapter do very well what it must do when filling dataset. Insertions, modifications and deletions functions very well in the dataset. But impossible to transmit modifications in ACCESS database. Impossible to WRITE in database. Here is the code for data transmission from tableadapter to Access database :
9
3838
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web site for a small club I belong to and one of the features I would like to include is the ability to allow users to upload image files. unfortunately the servers web root www folder only allows READ and EXECUTE permissions, which makes it...
18
9151
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft page "How to: Connect to Data in an Access Database"
12
3945
by: grace | last post by:
i am wondering why my database retrieval becomes too slow...we set up a new server (ubuntu, breezy badger) machine where we transferred all our files from the old server.. Our new server uses Asus p5pe-vm motherboard and an Intel Pentium D 3.0Ghz processor, compared to the old one where we uses asrock motherboard and AMD Duron. Both has the same version of mysql installed... To summarized, both machine has the same configuration except...
39
5869
by: alex | last post by:
I've converted a latin1 database I have to utf8. The process has been: # mysqldump -u root -p --default-character-set=latin1 -c --insert-ignore --skip-set-charset mydb mydb.sql # iconv -f ISO-8859-1 -t UTF-8 mydb.sql mydb_utf8.sql mysqlCREATE DATABASE mydb_utf8 CHARACTER SET utf8 COLLATE utf8_general_ci;
0
9592
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
10231
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10059
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
7416
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
5313
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
5452
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3972
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
2
3576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2817
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.