C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

DataLibrary in VS2008

rated by 0 users
This post has 5 Replies | 1 Follower

Top 150 Contributor
Posts 43
MarkBonafe Posted: Tue, Mar 4 2008 12:32 PM

I am having a very - VERY - difficult time getting a DataLibrary setup in Visual Studio 20008.  I am using version 2.0.20073.191 of the controls.  I am following the instructions from the C1DataManual2007.pdf (tutorial 2).  The first problem I am having is that the template for creating the DataLibrary project does not exist!  Yet, I can get the example to run just fine.  So there MUST be a way to create DataLibrary project without using a template.

 Again. There must be a way to create a DataLibrary project without using a project template.  I have yet to figure out how.

 Can anyone provide instructions on setting up a DataLibrary for use on a Visual Studio 2008 web project?  Any help is greatly appreciated.

Thanks

Mark

Top 10 Contributor
Posts 1,645
Hi Mark,

Please download and use the following version of C1DataObjects and C1WebData:

http://download3.componentone.com/pub/Net/c1data/misc/C1DataObjects_2.0.20081.195.zip
http://download3.componentone.com/pub/Net/c1data/misc/C1WebDataObjects_2.0.20081.195.zip

This version of C1Data includes a DataLibrary setup for Visual Studio 2008.
You can use these wizards with C1Data builds prior to 195 if you want.
See the C1DataObjects_2.0.20081.195\how_to_setup.txt file for details.
The DataLibrary projects should always be created using the wizard.

Regards,

-Andrey
Top 150 Contributor
Posts 43

Andrey

 Thanks for the new files.  I created the library using the template with no problems.  Now, of course, I have progressed to a new problem.  I am able to drop a C1WebData object on a page and set it up using the DataLibrary and DataSetDef properties.  The C1WebGrid responds properly when I hook it up to the C1WebData object.  It shows the proper fields, etc.  But I receive a "Operation is not allowed when the object is closed or cannot be activated due to incorrect property settings." error when attempting to fill the dataset.  I have checked the connection string and it's fine.  I can fill the dataset using the DataLibrary schema editor.

Any ideas?

Thanks

Mark

Top 150 Contributor
Posts 43

Whoops!  Scratch that Andrey!

I reset all the properties in both the C1WebDataSet and the C1WebGrid and now everything seems to be working fine.  When I initially created the library, I created the business objects, but I neglected to create any datasets.  I found this out when I tried to hookup the C1WebDataSet in the web application.  After creating the datasets, recompiling, and then recompiling the web app (to copy the dll local) - then setting the properties in the C1WebDataSet and C1WebGrid, I got the "Operation not allowed..." error.

It seems that clearing and resetting the properties took care of the problem.  Do you have any ideas on what might have caused the issue in the first place?  I just want to tknow if I should be looking out for something in particular.

Thanks again

Mark

Not Ranked
Posts 2
gaelic replied on Sun, Jan 25 2009 4:21 AM

Hi,

I am having the same issue, so I am probably going to ask a totally dumb question, but in the "how_to_setup.txt" it says "- Remove the following dlls, xmls and exe (if any exist) from GAC and from C:\Program Files\ComponentOne Studio.NET 2.0\bin directory:" .

How do I do that, and where from?

 Rgds

Sean

Top 10 Contributor
Posts 1,645
C1_AndreyD replied on Sun, Jan 25 2009 10:54 AM
Hi Sean,

To see the contents of GAC you should navigate to "C:\Windows\assembly" folder
using the standard Windows Explorer. There you may right-click, for example,
C1.Data.2 assembly, then select "Uninstall" from the context menu. If you want
to install a new build into the GAC, just drag & drop the corresponding dll to the
above mentioned folder using the mouse.

> How do I do that, and where from?

It is expected that you will replace all necessary dlls, xmls, and exe in
C:\Program Files\ComponentOne Studio.NET 2.0\bin directory at first.
So, you may drag & drop the new dlls from this directory to GAC.

Regards,

-Andrey
Page 1 of 1 (6 items) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.