I have installed OpenAcces in Visual studio 2008, and if I try to use it, I'l get this message <empty please enable and compile project first>. What is the meening of this?
I have compiled it and compiled it two times more still get this message. What is the meening of enable it?
What should I do to get it working?
Thanks
16 Answers, 1 is accepted
Since you are new to OpenAccess I'd strongly recommend you have an overview of the "Getting Started" header of our documentation. The message you reported is part of the wizard for OpenAccessDataSource in an ASP .Net page. Here is additional link from our KB on how to use the datasource for binding objects in web scenario.
All the best,
Zoran
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
1. Right click on your data project (not your consuming project)
2. Choose enable project.
3. Make sure DAL and Peristent is checked.
4. Right click on your solution and choose BUILD.
5. Go back to your datasource and try to reconfigure it again by clicking on the little arrow.
The message should go away and your data project should show up now.
Thanks for the hints provided.
Concerning your comment to Zoran, I want to mention that his answer is appropriate and helpful. As mentioned in my other post to you a minute ago, it is the best way to take some time and to learn more about the basics. So linking to documentation and examples is a good answer.
If the answer is not helpful for the customer who has posted the question, he would contact us again and receive help until he is satisfied.
Greetings,
Peter Brunner
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Again, we are sorry for your unusual disappointment.
Our customers tell us on a daily basis how well satisfied they are with the support provided. We spend extensive time on all our cases and again, we help the customer until he got a solution.
Our first priority is to support our customers, so please stop to spread very subjective stuff here which is just far from reality.
Please describe concrete issues in a proper way so that we can help you.
Kind regards,
Peter Brunner
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
I've exhausted all options that I know of & am looking for suggestions on to get this working.
Thanks.
I assume that the class library is holding your persistent classes as well. In such case you will need to rebuild your class library project in order to build the assembly that will be used by the OpenAccessDataSource control to resolve the Object Scope Provider. Please be sure that you have recompiled your class assembly before attempting to use our data source control.
Please feel free to contact us if any further difficulties arise.
All the best,
Petar
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
When using OA with websites the class library must also provide the ScopeProvider.
1) class library is OA Enabled + generates classes + generate DAL.
2) website is OA Enabled.
3) compile all and then you should be able to use the OpenAccessDataSource.
hth,
Al
I currently have:
- 1 class library that holds the DAL/Persistence code (OA Enabled)
- 1 class library that holds my domain model classes (OA Enabled)
- the web site.
I've added references to the two libraries to my site. Both have been rebuilt numerous times. Even when I enabled OA for the website it still does not find my ObjectScopeProvider in my DAL library. Enabling and rebuilding the web site still doesn't help the OpenAccessDataSource find the scope provider.
Make sure that you did the following:
- Open web.config and locate the references node inside the openAccess configuration section.
- Make sure there are references to the class libraries in the references node. It should have the following form:
<references> |
<reference assemblyname="ClassLibrary1" configrequired="True"/> |
<reference assemblyname="ClassLibrary2" configrequired="True"/> |
</references> |
- Recompile
- Locate and open the aspx page where you use an OpenAccessDataSource;
- Switch to the design view;
- Click on OpenAccessDataSource and choose Configure Data Source;
- Inside the OpenAccess Data Source Wizard you can choose the data context your application use to access the database(DAL/Persistence or Domain model class library) and which persistent type you want to retrieve;
If taking these actions does not solve your problem, please let us know so we can dig further in order to find the right solution.
Greetings,
Damyan Bogoev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Today I found out that a solution (1 data project containing a rlinq model and a webapplication proj) that resides on a network mapping, NEVER finds any rlinq models and always displays "<empty, please enable and compile project first>"
When I copied it to a local disk, the problem disappeared...
Erik
I reproduced the wrong behavior. The OpenAccessDataSource does not resolve the corresponding persistent types correctly. We will fix the cause for this issue and include the fix in the next internal build of the product.
Actually you could use the new OpenAccessLinqDataSource to achieve that goal. Helpful information regarding the data source can be found here.
I am sorry for the inconvenience caused. You could find your Telerik points updated.
Greetings,
Damyan Bogoev
the Telerik team
Q3’11 of Telerik OpenAccess ORM is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!
Indeed the new OpenAccessLinqDataSource (Since Q3 2011) does not have this problem. Found out yesterday and tested it, this control works fine.
I posted here because this was the first thread I found when googling, so others with the same problem can find it to.
Erik
I have heard alot of praise on your products and support and i have only good experience so far, but that doesnt make him wrong.
Good support can sometimes be done by just refering to good documentation. But that should only be done with a link to a step by step solution.
But, to finish of this... You have great products and support as far as i have seen so far.
So keep it up =)