473,804 Members | 2,249 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"Object must implement IConvertible. "

dan
I am using VB.NET 2003 and SQL Server 2000.
My program inserts new rows in a SQL table based on data read from a file.
I generated the commands and the stored procedures with the DataAdapter
wizard.
The execution of the Insert Command throws the exception: "Object must
implement IConvertible. "
1. What object does it refer to? The Command itself?
2. On the other hand, in the VS Help file all IConvertible members have this
warning: "This member supports the .NET Framework infrastructure and is not
intended to be used directly from your code."

Your help will be much appreciated.
Thanks, Dan

Nov 20 '05 #1
3 2635
Please post your code

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

"dan" <de*@deamon.com > wrote in message
news:e2******** *****@TK2MSFTNG P12.phx.gbl...
I am using VB.NET 2003 and SQL Server 2000.
My program inserts new rows in a SQL table based on data read from a file.
I generated the commands and the stored procedures with the DataAdapter
wizard.
The execution of the Insert Command throws the exception: "Object must
implement IConvertible. "
1. What object does it refer to? The Command itself?
2. On the other hand, in the VS Help file all IConvertible members have this warning: "This member supports the .NET Framework infrastructure and is not intended to be used directly from your code."

Your help will be much appreciated.
Thanks, Dan

Nov 20 '05 #2
Hi,

What is the type of objReservation. r?
Ken

-------------------------------

"dan" <de*@deamon.com > wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Here it is. Thanks, Dan


"One Handed Man ( OHM - Terry Burns )" <news.microsoft .com> wrote in
message
news:O$******** ******@TK2MSFTN GP09.phx.gbl...
Please post your code

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

"dan" <de*@deamon.com > wrote in message
news:e2******** *****@TK2MSFTNG P12.phx.gbl...
> I am using VB.NET 2003 and SQL Server 2000.
> My program inserts new rows in a SQL table based on data read from a file. > I generated the commands and the stored procedures with the DataAdapter
> wizard.
> The execution of the Insert Command throws the exception: "Object must
> implement IConvertible. "
> 1. What object does it refer to? The Command itself?
> 2. On the other hand, in the VS Help file all IConvertible members have

this
> warning: "This member supports the .NET Framework infrastructure and is

not
> intended to be used directly from your code."
>
> Your help will be much appreciated.
> Thanks, Dan
>
>
>



Nov 20 '05 #3
dan
Hello Ken,
objReservation is an object of class Reservation. But it is not used in the
current version of the program. All references to it were actually
outcommented and
are now completely removed, see new source file attached to a separate
message.
Thanks, Dan

"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Hi,

What is the type of objReservation. r?
Ken

-------------------------------

"dan" <de*@deamon.com > wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Here it is. Thanks, Dan


"One Handed Man ( OHM - Terry Burns )" <news.microsoft .com> wrote in
message
news:O$******** ******@TK2MSFTN GP09.phx.gbl...
Please post your code

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

"dan" <de*@deamon.com > wrote in message
news:e2******** *****@TK2MSFTNG P12.phx.gbl...
> I am using VB.NET 2003 and SQL Server 2000.
> My program inserts new rows in a SQL table based on data read from a

file.
> I generated the commands and the stored procedures with the DataAdapter > wizard.
> The execution of the Insert Command throws the exception: "Object must > implement IConvertible. "
> 1. What object does it refer to? The Command itself?
> 2. On the other hand, in the VS Help file all IConvertible members have this
> warning: "This member supports the .NET Framework infrastructure and is not
> intended to be used directly from your code."
>
> Your help will be much appreciated.
> Thanks, Dan
>
>
>




Nov 20 '05 #4

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

Similar topics

11
2484
by: Florian Loitsch | last post by:
I'm currently writing a JS->Scheme compiler (which, using Bigloo, automatically yields a JS->C, JS->JVM, JS->.NET compiler), and have a question concerning the function-parameters: According to the spec (10.1.6) the activation-object already contains the the parameters-object when the variables are instantiated (10.1.3). The question is now: does a parameter "parameters" overwrite the "parameters"-object or not? All three implementations...
7
36720
by: deko | last post by:
I'm getting intermittent "Object Invalid or No Longer Set" errors in my Access 2002 mdb. What causes these errors? Has anyone dealt with this before? I can't trace it because it's not easy to duplicate -- it just show up... I've heard that spurious queries that use Now() or Date() or some other date
3
2734
by: Nak | last post by:
Hi there, I am trying to make a collection that will work in the "Object collection editor" dialog. I have implimeneted ICollection, IList and IEnumerable and now I have an "unnamed" collection, so the collection just contains "objects". I would like it to contain my own objects "myItem" so that I can edit the individual properties via the dialog but when I change the types in the class from object to "myItem" it breaks the interface...
18
28761
by: Microsoft | last post by:
When I try this in my code I alwas get an errormessage: "Object reference not set to an instance of an object" Dim g As System.Drawing.Graphics g.DrawString("Test", New Font("Arial", 12, FontStyle.Bold), Brushes.Black, 0, 0) Why is this? Marc
1
2441
by: dan | last post by:
I am using VB.NET 2003 and SQL Server 2000. My program inserts new rows in a SQL table based on data read from a file. I generated the commands and the stored procedures with the DataAdapter wizard. The execution of the Insert Command throws the exception: "Object must implement IConvertible. " 1. What object does it refer to? The Command itself? 2. On the other hand, in the VS Help file all IConvertible members have this warning:...
1
1144
by: jk | last post by:
Hi, I'm trying to add an object to a checked listbox using VC++2005 Express. I tries adding a managed String (String ^) and objects that implement their own version of the ToString() method. I always get the same error message: "object reference not set to an instance of an object". The objects are initialized and I can see them and their content in the debugger - everything's fine until I hit the myListBox->Items->Add(myString,false);...
16
47704
by: Steve Chapel | last post by:
When I load the page <https://bugzilla.mozilla.org/attachment.cgi?id=237739with Internet Explorer 7 RC 1, I get the error "Object Expected" at line 174. When I click on the button, I also get the same error on line 186. This same HTML and JavaScript works perfectly in Firefox and Opera. How can I make the code work in IE?
4
2181
by: My Pet Programmer | last post by:
Ok guys, I'm really looking for someone to tell me how bad a hack this is, and if I'm close to where I should be with it. The basic situation is that I have a class which creates a basic calendar control, the only difference is I stole the navigation scheme from Vista (e.g., if you click on the year you zoom out to the months list, then out to the decade, and back in when you click a year, then a month). I ran into some trouble...
0
1996
by: dan | last post by:
Hi, I've been using a GridView for some time but this is the first time I need to delete a row in the grid whose primary key consists of 2 fields (table columns). I have a table with primary key set to c1,c2 where c1 is a uniqueidentifier and c2 is int. The DataKeyNames in the gridview is defined as follows: DataKeyNames="c1,c2".
0
9714
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
9594
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10347
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
10090
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6863
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
5531
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
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3832
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
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.