unable to generate Dataset using OledbDataAdapter in VB.net

G

Guest

i am using Visual Studio.net professional 2003 (VisualBasic.net).I am
building a very very simple project where i need to connect to Microsoft
access database through OledbDataAdapter in design mode by Dragging the
OledbDataAdapter Control from the Data tab on the ToolBox and then generate
the DataSet.

I am able to connect to MS ACCESS and test connection is succedded.Now when
i try to generate the Dataset by Right Clicking The Data Adapter Object in
the Component Tray and Click Generate Datset,and then Select the New Radio
Button from Geneate Dataset Daialog box and click OK i get this Error.....

*****ERROR:There were Problems Generating the StartUp08.Dataset1 .To resolve
this problem,build the Project, fix any Error, and then generate the dataset
again.*******(startUp08 is the Name i have given to the Project)

I see that when the above operation of Generating a dataset is done a file
Named "Dataset1.xsd" is being added to the Solution Explorer, and i am able
to open the Dataset1.xsd file and view the contents.

So, My Question is why is this Specific Error happening inspite of building
the project again where really i dont need to... and unable to find any
Errors where i need to fix.Everything Looks good from my end.
Look Forward for your Reply i have been tying to fix this problem for long
time and ultimately writing this to you.
 
G

geert.dehaes

i am using Visual Studio.net professional 2003 (VisualBasic.net>
I am able to connect to MS ACCESS and test connection is succedded.Now when
i try to generate the Dataset by Right Clicking The Data Adapter Object
<snip> i get this Error.....

*****ERROR:There were Problems Generating the StartUp08.Dataset1 .To resolve
this problem,build the Project, fix any Error, and then generate the dataset
again <snip>

Hi, I hope this helps: I've had the exact same problem and found four
causes (three of which could be found through google groups, of course
they didn't solve my very own problem:).

1) The database you try to access contains illegal characters in its
path name (for example the & sign).

2) The fields in your database contain .Net reserved words (like e)

3) The System-account doesn't have full rights on the map where your
..Net application is located.

4) (My very own :) The user doesn't have full rights on the
"\Application Data\Microsoft" folder and its submaps in his profile
map. My problem was quite obviously a permission problem since the
administrator account could create a dataset.

If this was at all helpful for anyone, please post a "thank you" note
to geert.dehaes@gmail***nospam***.com :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top