Sunday, February 12, 2012

Can''t use a Dataset in my script component...reference required...whats going on?

Hi

Finding this forum really useful...I wonder if you could help me with this.

I've got a very simple script component and I just want to use a Dataset in it.

When I declare the Dataset i get a warning and then consequently an error. herers an image grab of whats happening:

http://www5.webng.com/hopelist/error.jpg

If you can't see the image please let me know.

Essentially VS gives me a hint to add a required assembly which it needs....but when I click to add I get a 'Visaul Basic Compiler has encountered a problem and needs to close' type error.

Anyone got any idea whats going on and why I'm having such a hard time just accessing a Dataset?

thanks

Andy

Well, you do need to add a reference to the System.XML assembly, because datasets have a reference to it. Not sure why the environment is crashing, though. If you are using the add option on the error dialog, you might try adding the reference by using the project explorer, and going to the references folder, or Project..Add Reference from the menu bar.

No comments:

Post a Comment