Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Component Services / August 2003

Tip: Looking for answers? Try searching our database.

InvalidCastException

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pieter - 04 Aug 2003 15:16 GMT
I'm trying to do an insert and update of a record in a serviced component.
When I call these methods, I get an InvalidCastException: Unable to cast
object of type System.__ComObject to type System.Data.DataSet. Inside these
methods, there's really just the basic insert/update stuff. Attaching to my
component doesn't work anymore. So I can't step through the code. Executing
a select works well.

I'm using framework 1.1.

Where does this error come from? Is this some problem with datasets and
serviced components?

Thanks in advance,
Pieter
Pieter - 05 Aug 2003 09:07 GMT
I've just discovered that when I call a method of a serviced component with
a dataset as parameter I always get an error, even if this method contains
some dummy code.

Is this a bug in .Net?

Pieter

> I'm trying to do an insert and update of a record in a serviced component.
> When I call these methods, I get an InvalidCastException: Unable to cast
[quoted text clipped - 10 lines]
> Thanks in advance,
> Pieter

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.