Grasshopper

algorithmic modeling for Rhino

I'm trying to write a function to read an Excel file via OleDB connection using System.Data. I've Referenced the System.Data assembly and can see the correct method in Intellisense (image attached). However, when I exit the IDE, I have the error:

"Error: An assembly with the same identity 'System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' has already been imported. Try removing one of the duplicate references. (line -130)"

Is there any way to use System.Data through grasshopper?

Views: 307

Attachments:

Replies to This Discussion

Scott,
I ran into the same issue. Try removing the System.data reference. The intellisense will not work but the methods associated with "system.data" will still work.

I don't know why this is so.
Hi Kermin,

you are right... it's working now. I do have to reference System.dll though and live with a Warning... but that's better than Error.

Thanks a lot for your quick response!

S

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service