473,503 Members | 1,687 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Database problem.....HELP

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._ComObject' to interface type
'Microsoft.VisualStudio.OLE.Interop.IServiceProvid er'. 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(Exception from HRESULT: 0x80004002
(E_NOINTERFACE))).

any help would be greatly appreciated.

Thanks DM
Nov 17 '05 #1
3 4700
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._ComObject' to interface type
'Microsoft.VisualStudio.OLE.Interop.IServiceProvid er'. 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(Exception from HRESULT: 0x80004002
(E_NOINTERFACE))).

any help would be greatly appreciated.

Thanks DM

Nov 17 '05 #2
DM
Sorry so short on info......novice 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._ComObject' to interface type
'Microsoft.VisualStudio.OLE.Interop.IServiceProvid er'. 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(Exception 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
programmatically 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......novice 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._ComObject' to interface type
'Microsoft.VisualStudio.OLE.Interop.IServicePro vider'. 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(Exception from HRESULT: 0x80004002
(E_NOINTERFACE))).

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
3314
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 : ...
19
21185
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...
6
2365
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...
3
10993
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...
15
2524
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,...
9
3815
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...
18
9104
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...
12
3911
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...
39
5823
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...
0
7202
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,...
0
7086
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7280
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,...
0
7462
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...
1
5014
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...
0
4673
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...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
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 ...
1
736
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.