Click here to Skip to main content
11,410,379 members (54,964 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++/CLI VS2010
When I configure sqlDataAdapter and then run command from Data->Generate Dataset the IDE generates xsd and h file for dataset, but then ends with error.

An exception occurred while attempting to set the data source generator property.
The same operation work without error in C# project. What's wrong ? Thanks
Posted 22-Aug-10 6:19am
kvidox165
Edited 14-Dec-10 23:12pm
v2
Comments
Dalek Dave at 15-Dec-10 4:12am
   
Edited for Grammar and Readability.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Microsoft is not supporting C++/CLI well in VS2010. They also disabled Intellisense for it. Have you tried this in an older version of VS such as 2008?
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

To Ted2102:

Thank for your answer, this problem i have encountered in VS2010 when i make test migrating from VS2008 to VS2010.
C++/CLI with VS2010 is not good combination.
C# is not interresting for me, i remain in not managed world...
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

yes. It is my problem too. Microsoft is trying to
drop CLI/C++ and substitute it with C# and that is the first step.

oleDbDataAdapter1->Fill(dataSet1,L"Authors");

dataTable1=dataSet1->Tables->default[0];
String^ x=dataTable1->Rows->default[0]->default[1]->ToString();

an exception will occur!!!
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 8,755
1 OriginalGriff 6,915
2 Maciej Los 3,390
3 Abhinav S 3,248
4 Peter Leow 3,059


Advertise | Privacy | Mobile
Web04 | 2.8.150414.5 | Last Updated 15 Jun 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100