Using OpenAccess with SilverLight and Ado.Net Data Services

Thread is closed for posting
31 posts, 0 answers
  1. F4416E10-5631-48DB-BEF1-E702EDF96DF5
    F4416E10-5631-48DB-BEF1-E702EDF96DF5 avatar
    1 posts
    Member since:
    Mar 2005

    Posted 16 Dec 2008 Link to this post

    Requirements

      Version

    2009.1.423.2
    .NET version

    3.5 SP1
    Visual Studio version 2008
    programming language

    C#, VB

    PROJECT DESCRIPTION
    Have you ever thought how easy is to feed data to a SilverLight application using Ado.Net Data Services? It is even easier if you have OpenAccess O/R mapper ontop of your database. Check out the SilverLight and ADS integration demo.

    In this simple example we demostrate creation of model using OpenAcees, then exposing the model through an Ado.Net data service. The example addresses also how to create a data context for the service and how to read and push data back to the server from a SilverLight front-end application. Also some interesting descisions on the SL side are discussed.

    Key Highlights: 
    • Model creation with Telerik OpenAccess  – Having great Visual Studio integration and interactivity allows the customer to build the model in minutes.
       
    • Handling updates on the SilverLight side – the asynchronous model of execution through callbacks, implementation of INotifyPropertyChanged, and enhancmenet of the entities to report changes are demonstrated in the example.
       
    • Implementing the ADS data context – you can see the implementation of IUpdateable that returns the data from the client-side, as well as how to setup OpenAccess IObjectScope, handle transactions, and how to dispose.
  2. 7EEDBA7C-C5D9-43D3-A6EA-A3C717B5491B
    7EEDBA7C-C5D9-43D3-A6EA-A3C717B5491B avatar
    21 posts
    Member since:
    Sep 2012

    Posted 02 Jun 2009 Link to this post


  3. 6AEC8389-A418-4852-A8AC-962E7E454383
    6AEC8389-A418-4852-A8AC-962E7E454383 avatar
    2 posts
    Member since:
    May 2009

    Posted 04 Jun 2009 Link to this post

    Hello Dimitar,

    I am trying the hardest to get your Silverlight project with Ado.Net DataServices up 'n running...

    This is the bugger I bump into, I tried your project on two different Vista machines. No luck so far.
    Where can I get this PublicKeyToken ?
    Something to do with license ?

    Please have a look, I would love to see this baby rocking.

    Thanx in advance.

    Regards from Amsterdam,
    Arthur van Rijn

     

    Server Error in '/WebSite5' Application.

    Configuration Error

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Could not load file or assembly 'Telerik.OpenAccess, Version=2009.1.325.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The system cannot find the file specified.

    Source Error:

    Line 42:         <add assembly="Microsoft.Data.Services, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    Line 43:         <add assembly="Telerik.OpenAccess, Version=2009.01.0405.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342" />
    Line 44: <add assembly="Telerik.OpenAccess, Version=2009.1.325.1, Culture=neutral, PublicKeyToken=7CE17EEAF1D59342" />Line 45:         <add assembly="Telerik.OpenAccess.Query, Version=2009.1.325.1, Culture=neutral, PublicKeyToken=7CE17EEAF1D59342" />
    Line 46:       </assemblies>

    Source File: C:\Users\fah\Downloads\131621_silverlightintegrationwithoa\SilverlightIntegrationWithOA\WebSite5\web.config    Line: 44

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.OpenAccess, Version=2009.1.325.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' could not be loaded.

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074
  4. 7EEDBA7C-C5D9-43D3-A6EA-A3C717B5491B
    7EEDBA7C-C5D9-43D3-A6EA-A3C717B5491B avatar
    21 posts
    Member since:
    Sep 2012

    Posted 04 Jun 2009 Link to this post

    Hi Arthur
    I had the same problem yesterday.  I believe the sample application was built with an earlier version of the Telerik Open Access ORM.  What I did was remove the references from the project and web.config file.  Then I added the latest dll's which updated my Web.config and rebuilt the project..   Hope this helps.
    Reggie
  5. FE15F0A5-A91F-452D-8BA0-D31FC2E0DD13
    FE15F0A5-A91F-452D-8BA0-D31FC2E0DD13 avatar
    754 posts
    Member since:
    Apr 2017

    Posted 04 Jun 2009 Link to this post

    Hi Arthur,
    Reggie Tyler is absolutely right. We have used an internal build to prepare the application. What is required for this application to be run is to change the version to your local version of OpenAccess. You should follow the steps provided by Reggie Tyler and everything should work out fine.

    Greetings,
    Petar
    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.
  6. 6AEC8389-A418-4852-A8AC-962E7E454383
    6AEC8389-A418-4852-A8AC-962E7E454383 avatar
    2 posts
    Member since:
    May 2009

    Posted 04 Jun 2009 Link to this post

    Hello Reggie,
    Your response is faster then the speed of sound!
    Thanx, I will try your suggestion.
    Regards,
    Arthur
  7. AE7C0A29-9140-4EF5-9166-6C494C7C9AC1
    AE7C0A29-9140-4EF5-9166-6C494C7C9AC1 avatar
    6 posts
    Member since:
    Jun 2007

    Posted 08 Jun 2009 Link to this post

    I downloaded both OpenAccess and this sample app today (June 8, 2009) and can't get the web project to build even after removing references and rebuilding the data app per the other answers.  The build complains about the web.config:

    Message 1 Could not find schema information for the element 'http://www.telerik.com/OpenAccess:openaccess'.
    (three messages like #1 just different line/columns)
    Message 4 Could not find schema information for the attribute 'assemblyname'. 

    I'm using SQL2008 running as an instance on my local machine.  I attached the adventure works db since SQL2008 doesn't support attaching as a connection parm (like SQL express does).  I can test the connection from the OpenAccess wizard and it works and that app builds.  Just the web site app won't build.

    Any ideas?
  8. 1513C4E2-3569-4310-9CED-FC16E3047B1E
    1513C4E2-3569-4310-9CED-FC16E3047B1E avatar
    632 posts
    Member since:
    Jan 2017

    Posted 09 Jun 2009 Link to this post

    Hello Phil Kimbrough,

    There is custom section in the web.config like:

        <openaccess xmlns="http://www.telerik.com/OpenAccess">  
            <references> 
                <reference assemblyname="Model" configrequired="True"/>  
            </references> 
            <connections/> 
        </openaccess> 

    which could not be interpreted in your web.config. The most possible reaqson is that during upgrade the Telerik.OpenAccess.Config.dll was removed from your bin folder. If you add the assembly to the bin folder the problem should be resolved.

    Sincerely yours,
    Dimitar Kapitanov
    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.
  9. AE7C0A29-9140-4EF5-9166-6C494C7C9AC1
    AE7C0A29-9140-4EF5-9166-6C494C7C9AC1 avatar
    6 posts
    Member since:
    Jun 2007

    Posted 10 Jun 2009 Link to this post

    Yes, the DLL was NOT in my bin for the sample app nor does it get copied when I try adding OpenAccess to my own app.  Seems like a bug to me.

    Additionally, when trying to get the other sample "OpenAccessSimpleApplication" to build (not the Silverlight one) I get the exact same error when trying to build (also missing the config dll but after adding it still failed to build).  That solution doesn't have the Telerik.Web.UI.dll in it's references even though it physically existed in the bin directory.  Once I added that, it built but gets runtime errors.  No Products show up and when you click on "Schedules" it throws this:

    Server Error in '/' Application.
    --------------------------------------------------------------------------------

    line 1:306: unexpected char: '@'
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: Telerik.OpenAccess.Exceptions.QueryException: line 1:306: unexpected char: '@'

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

    Stack Trace:

    [QueryException: line 1:306: unexpected char: '@']
       Telerik.OpenAccess.SPI.Backends.ThrowException(Exception e) +28
       Telerik.OpenAccess.RT.ExceptionWrapper.Throw() +34
       OpenAccessRuntime.storagemanager.logging.LoggingStorageManager.compileQuery(ImmutableQueryDetails query) +239
       OpenAccessRuntime.DataObjects.OpenAccessQueryImp.compile() +106
       Telerik.OpenAccess.RT.QueryImpl.Compile() +34
       Telerik.OpenAccess.RT.QueryImpl.Execute(Object[] args) +91
       Telerik.OpenAccess.RT.DataSource.OpenAccessDataSourceView.ExecuteOqlQuery(IQuery oqlQuery, Object[] queryArguments, Int32 startRowIndex, Int32 maximumRows) +136
       Telerik.OpenAccess.RT.DataSource.OpenAccessDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +636
       System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +19
       Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.GetAppointments(RadScheduler owner) +238
       Telerik.Web.UI.RadScheduler.PerformSelect() +236
       System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
       System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
       Telerik.Web.UI.RadScheduler.EnsureDataBound() +30
       Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +135
       Telerik.Web.UI.RadScheduler.CreateChildControls() +34
       System.Web.UI.Control.EnsureChildControls() +87
       System.Web.UI.Control.PreRenderRecursiveInternal() +44
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

     

    Why isn't there a sample app for this product that will actually build and run?  It's becoming increasingly frustrating to try and evaluate it when the help files aren't useful, the sample apps won't build and the entire process seems convoluted at best.  For example, I have a db with almost 900 tables and over 500 stored procedures.  The reverse mapping window doesn't seem to have the ability to de-select the generate checkbox for all rows so that I can just select one or two tables for a test (or I can't figure out how to only generate selected tables) and if I try to grab all objects, it runs out of memory (on a new machine with 4 gig of memory).

    I see why others have complained about how difficult it is to get a handle on this product.
  10. FE15F0A5-A91F-452D-8BA0-D31FC2E0DD13
    FE15F0A5-A91F-452D-8BA0-D31FC2E0DD13 avatar
    754 posts
    Member since:
    Apr 2017

    Posted 17 Jun 2009 Link to this post

    Hello Phil Kimbrough,
    can you please be more specific. Which example exactly is failing for you. Our SL integration example is being improved every day so it should not be the source of any problems. 

    Kind regards,
    Petar
    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.
  11. AE7C0A29-9140-4EF5-9166-6C494C7C9AC1
    AE7C0A29-9140-4EF5-9166-6C494C7C9AC1 avatar
    6 posts
    Member since:
    Jun 2007

    Posted 20 Jun 2009 Link to this post

    I downloaded the latest internal builds (2009.1.605.1) and was able to get my own Silverlight app to work with OpenAccess but haven't gone back to your demos.  However, the new step-by-step learning guide was definitely a welcome 'step' in the process.  More of these would be great.

    Now on to the complaints :-)

    I wish that the Reverse Mapping wizard had a way to uncheck/check both the lock checkbox and the generate checkbox for all selected rows in the same way the namespace can be group-edited (and that means on both the Simple tab and the Advanced tab).  I have 1100 plus tables and hundreds of stored procedures to setup but for testing or generating more manageable class libraries, I have to manually uncheck the generate checkbox.  At least the wizard should have a way to uncheck/check all (since it defaults to Checked).

    Also, most of our tables use a SQL Server TIMESTAMP column for concurrency.  The wizards by default, include that column in the mapping but don't let you check the "Version" checkbox on the Advanced view.  Only datetime and numeric fields can be set as the versioning column.

    If I generate the class from the wizard, it includes the TIMESTAMP column in the app.config for the class as well as the <class>.Telerik.OpenAccess.cs partial class but doesn't include it in the <class>.cs file.  This means I can't write a LINQ query that returns the class since OpenAccess will include the TIMESTAMP column in the select from the db table and it will get an exception (reporting it as a integer overflow on the TIMESTAMP column).  This means I have to go through 1100 tables and either manually unmap the TIMESTAMP column (which doesn't make sense since it should be the concurrency column) or I have to write out all the columns in the LINQ query in the order (I assume) that they are in the class.  So if I have a class that has a lot of fields (some have over 100), I can't write this if I'm returning LIST<MyClass>:

    var query = from c in scope.Extent<MyClass>()
        select c;

    return query;

    --phil
  12. FE15F0A5-A91F-452D-8BA0-D31FC2E0DD13
    FE15F0A5-A91F-452D-8BA0-D31FC2E0DD13 avatar
    754 posts
    Member since:
    Apr 2017

    Posted 25 Jun 2009 Link to this post

    Hi Phil,
    we support changing the checkbox for both lockign and generating for group of classes. What you need to do is mark the selected classes you wish to check/uncheck and click one of the following Checkboxes:
    - Lock selected classes will either lock or unlock the classes that you have selected. This option is depending on the previous state of the selected classes.
    - Generate selected classes - this option does absolutely the same as the above but for the generate check box.

    Can you please open a Feature request thread for your other requests as it is not related to the SilverLight thread.

    Greetings,
    Petar
    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.
  13. 40B2B9C0-6AC1-44FB-97CE-F35DDDAC2C18
    40B2B9C0-6AC1-44FB-97CE-F35DDDAC2C18 avatar
    17 posts
    Member since:
    Oct 2007

    Posted 30 Jan 2010 Link to this post

    I am evaluating telerik OA, and am pretty new to .net too. I am not able to get this demo app to compile, even though I've tried to emulate the hints mentioned above. I tried adding every of the telerik reference. I also moved Telerik.OpenAccess.Config.dll to the bin of the web project. I still get 37 errors.

    I have to wonder why you guys don't just recompile the sample app with a current version of OA and put it up on your website for download? Why would you still be offering a 'tutorial' app built on an internal, pre-release version of OA, a year or so after the fact? You know ever single person that downloads it is going to immediately run into issues, as can be see here with these posts. Honestly, it's completely senseless.

    I am curious too, why does this app need to be converted at all? According to the original post by Dimitar, this is vs 2008 and .net 3.5 sp1. That's what I'm using to open it. Is the conversion attempt focused on the out of date OA?

  14. FE15F0A5-A91F-452D-8BA0-D31FC2E0DD13
    FE15F0A5-A91F-452D-8BA0-D31FC2E0DD13 avatar
    754 posts
    Member since:
    Apr 2017

    Posted 01 Feb 2010 Link to this post

    Hi deneb,

    Our users use different version of Telerik OpenAccess ORM and because of that it will be impossible for us to have examples compiled with each version of the product. For your ease we have implemented an upgrade wizard that is available since Q3 2009. This upgrade wizard would let you to convert the version used in the project to your local copy in less than 10 seconds. Additional information regarding the upgrade wizard can be found in our online documentation. I believe that this wizard should let you run our examples without any further obstacles. If you, however, face any further difficulties please do not hesitate to contact us again.

    Greetings,
    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.
  15. 40B2B9C0-6AC1-44FB-97CE-F35DDDAC2C18
    40B2B9C0-6AC1-44FB-97CE-F35DDDAC2C18 avatar
    17 posts
    Member since:
    Oct 2007

    Posted 01 Feb 2010 Link to this post

    OK, now that I know about the upgrade wizard, I started over. So far no success. Here is what I tried, please tell me what else has to be done.

    Starting with a fresh unzip of the solution provided here, and after the vs20008 conversion, I had 38 errors out of the box. Based on earlier tips in this tread I copied two files to the bin folder Telerik.OpenAccess.dll and Telerik.OpenAccess.Config.dll. I got those two files from your other sample project OpenAccssExamples\ExamplesWeb35\bin

    I found the upgrade wizard in the telerik vs menu under Telerik-OpenAccess-Configuration-Check Settings. Running the check found one error. I ran the fix button, and the list was looking good.

    I close the wizard and recompile. I have 38 errors just as before. What do I try next?

    I am sure it's a good product...but it'd be nice if the eval phase was a little more straightforward.
  16. FE15F0A5-A91F-452D-8BA0-D31FC2E0DD13
    FE15F0A5-A91F-452D-8BA0-D31FC2E0DD13 avatar
    754 posts
    Member since:
    Apr 2017

    Posted 04 Feb 2010 Link to this post

    Hello deneb,

    Can you please share with us what exactly do the errors say? It will be best if you can copy them in a text file and send it to us in a separate support ticket. A possible cause of errors might be incorrect version of Astoria data services being referenced. Can you please confirm that you have the same version of Astoria Data services installed on your machine as the one that is used by the example (v1.5 CTP1)? We have reviewed the example and it works fine using the latest version of Telerik OpenAccess ORM and Astoria v1.5. The only step we did to run the project was to execute the check settings wizard which automatically resolved our reference issues.

    All the best,
    Petar
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  17. 40B2B9C0-6AC1-44FB-97CE-F35DDDAC2C18
    40B2B9C0-6AC1-44FB-97CE-F35DDDAC2C18 avatar
    17 posts
    Member since:
    Oct 2007

    Posted 04 Feb 2010 Link to this post

    I'm not sure how to check the version of ado.net data services. I'm using vs2008 sp1, and a couple of days before I tried out your software I installed the update to ado.net data services that is listed here:

    http://www.microsoft.com/downloads/details.aspx?familyid=4B710B89-8576-46CF-A4BF-331A9306D555&displaylang=en

    Maybe that's contributing to this issue. Here are the first two errors, I can send the rest to a support ticket but most are of a kind.

    Error    1    Could not load file or assembly 'Telerik.OpenAccess, Version=2009.1.605.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)    D:\vs9\projects\silverlightintegrationwithoa-vbversion\WebSite5\web.config    43    
      Error    3    Type 'OADataContext' is not defined.    D:\vs9\projects\silverlightintegrationwithoa-vbversion\SilverlightFront\Page.xaml.vb    21    31    OASilverlightTestApp






  18. FE15F0A5-A91F-452D-8BA0-D31FC2E0DD13
    FE15F0A5-A91F-452D-8BA0-D31FC2E0DD13 avatar
    754 posts
    Member since:
    Apr 2017

    Posted 08 Feb 2010 Link to this post

    Hello deneb,

    Can you please try to manually update the reference to Telerik OpenAccess ORM in your web project. You can achieve this by right clicking on the web project and selecting Property Pages. From the pop-up window select all the Telerik OpenAccess references and remove them. Using the Add menu add the same reference from your local installation of Telerik OpenAccess ORM. Rebuild your project. This should fix the compilation errors that you have provided. Please feel free to contact us if any further difficulties arise.


    Best wishes,
    Petar
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  19. 40B2B9C0-6AC1-44FB-97CE-F35DDDAC2C18
    40B2B9C0-6AC1-44FB-97CE-F35DDDAC2C18 avatar
    17 posts
    Member since:
    Oct 2007

    Posted 08 Feb 2010 Link to this post

    I tried that and it's not working...not sure if you can troubleshoot this or not.

    First, for that project there were three telerik refs listed:

    telerik.openaccess gac 2009.1.605.1
    telerik.openaccess gac 2009.01.605.1
    telerik.openaccess.query gac 2009.1.605.1

    the gac info is not presented in the add dialog, but only in the property pages dialog.

    I removed them all. I clicked the add button on the same dialog, and on the .net tab scrolled to the telerik listings. I chose two entries:

    telerik.openaccess bin 2009.3.1119.2
    telerik.openaccess.query bin 2009.3.1119.2

    After adding those, the only telerik entry in the property pages listing is telerik.openaccess.query bin 2009.3.1119.2. The other entry will not 'stick' even though I've tried to add it a couple of times.

    The project failes to compile with 37 errors, the first entry I posted before is gone.







  20. 303F18BD-4DC2-410F-8E35-7CA441BB4DC1
    303F18BD-4DC2-410F-8E35-7CA441BB4DC1 avatar
    23 posts
    Member since:
    Feb 2009

    Posted 09 Feb 2010 Link to this post

    Hi Telerik team,
    your sample application in this thread works just fine.
    However, when I try to use ADO.Net Dataservice with OA in my own application I just can't get it to work. I've tryed to keep my app as close as possible to your sample app. I used the same Microsof...Service.(Client) assemblies, I use the same implementation of your DataContext classes, web.config, ...everything.
    But at the point when I want to add the service reference to the SL-app (after the service is discovered) VS tells me "...Bad Request...Error 400..." I already spent 2 nights ( :-) ) to get it to work. No luck. I don't know what I'm missing.
    May-be you could provide a little "walkthrough" for your example? (Please consider that some people might you Web-Applications instead of Websites)

    Thanks a lot!!
    Michael
  21. 303F18BD-4DC2-410F-8E35-7CA441BB4DC1
    303F18BD-4DC2-410F-8E35-7CA441BB4DC1 avatar
    23 posts
    Member since:
    Feb 2009

    Posted 10 Feb 2010 Link to this post

    Never mind!!!
    ...my ObjectScopeProvder just threw an exception at AdjustForDynamicLoad(). That's it! Sorry!
  22. FE15F0A5-A91F-452D-8BA0-D31FC2E0DD13
    FE15F0A5-A91F-452D-8BA0-D31FC2E0DD13 avatar
    754 posts
    Member since:
    Apr 2017

    Posted 11 Feb 2010 Link to this post

    Hello ,

    @Michael Proepster: We are happy that you could successfully locate and fix your problem and thus continue working. Please if you face any difficulties do not hesitate to contact us for assistance.
    @deneb: We are unable to reproduce the behavior you have described even though we have tried numerous times. Can you please share with us the version of Telerik OpenAccess ORM which you are using so that we can test the upgrade functionality with it. Maybe it is a false behavior of your version. In the meantime can you please  try reinstalling Telerik OpenAccess ORM. Maybe that will fix you problem. As you can see lots of users are running this example successfully and none has experienced the problems you described. We are looking forward for your replay.

    All the best,
    Petar
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  23. 40B2B9C0-6AC1-44FB-97CE-F35DDDAC2C18
    40B2B9C0-6AC1-44FB-97CE-F35DDDAC2C18 avatar
    17 posts
    Member since:
    Oct 2007

    Posted 11 Feb 2010 Link to this post

    I am using Telerik_OpenAccess_ORM_Express_2009_3_1119.zip

    I did a repair on OA, the removed the existing silverlightintegrationwithoa-vbversion folder, and replaced it with a fresh copy of your provided download. I ran check settings and fixed the refs there. 37 errors, ie exactly as the original solution.


  24. 40B2B9C0-6AC1-44FB-97CE-F35DDDAC2C18
    40B2B9C0-6AC1-44FB-97CE-F35DDDAC2C18 avatar
    17 posts
    Member since:
    Oct 2007

    Posted 11 Feb 2010 Link to this post

    Now I've tried to install OA on a windows 7 box. The install seems to go ok but when I start vs2008, immediately there is a dialog stating that the OA addin failed to load (error 80004005). It offers to remove the addin and rename it.

    So I uninstalled OA Express and installed the OA trial. That brought up the exact same addin failure message.

    Too bad. This is the first telerik product to experiment with. I can't see how I'm doing anything wrong with this...I know others are using it, but why on two machines it's doa for me? Well, I don't think it's doa on the first machine, just that the sample app fails.
  25. 4020BB9C-4785-482C-9A31-D4D7B55A39AA
    4020BB9C-4785-482C-9A31-D4D7B55A39AA avatar
    707 posts
    Member since:
    Nov 2016

    Posted 12 Feb 2010 Link to this post

    Hi deneb,
    We have sometimes problems if the product is not installed with admin rights. Can you reinstall by right click on the setup.exe and choosing 'run as administrator'?

    You can also have a look here:

    http://www.telerik.com/help/openaccess-orm/troubleshooting.html

    Greetings,
    Jan Blessenohl
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  26. 40B2B9C0-6AC1-44FB-97CE-F35DDDAC2C18
    40B2B9C0-6AC1-44FB-97CE-F35DDDAC2C18 avatar
    17 posts
    Member since:
    Oct 2007

    Posted 12 Feb 2010 Link to this post

    Hi Jan - I uninstalled and reinstalled using 'run as admin' and it didn't make any difference. The original account has full admin rights but it was worth a try.
  27. 4020BB9C-4785-482C-9A31-D4D7B55A39AA
    4020BB9C-4785-482C-9A31-D4D7B55A39AA avatar
    707 posts
    Member since:
    Nov 2016

    Posted 16 Feb 2010 Link to this post

    Hi deneb,
    That is really weird. Did you look into the troubleshooting steps? Did you see a missing entry?

    You can also try to use the Telerik.OpenAccess.AddinInstaller.exe, start it, click uninstall/install.

    To give us more information about the failing installer can you please start the installer via command line?

    msiexec /l* log.txt /i OpenAccess.msi 

    and send us the log file?

    Kind regards,
    Jan Blessenohl
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  28. E1B6EF54-02E3-4BCE-B6F0-E2D46E744B11
    E1B6EF54-02E3-4BCE-B6F0-E2D46E744B11 avatar
    29 posts
    Member since:
    Jan 2010

    Posted 08 Mar 2010 Link to this post

    I've got some problems running this too, but at least can get it to build. Using the latest ORM download (2009.3.1119.2) I re-referenced the dlls and added the above to my web.config:

    <compilation debug="true"
                <assemblies> 
                    ... 
                    <add assembly="Telerik.OpenAccess, Version=2009.3.1119.2, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342"/>                
                    <add assembly="Telerik.OpenAccess.Query, Version=2009.3.1119.2, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342"/></assemblies> 

    Ok so far so good, but when I set the website project as startup and run the application in debug mode, I get this:

    Directory Listing -- /WebSite5/ 
     
           Monday, March 08, 2010 08:34 AM        <dir> App_Code 
          Wednesday, May 20, 2009 07:56 PM        <dir> App_Data 
           Monday, March 08, 2010 08:58 AM        <dir> Bin 
           Monday, March 08, 2010 08:34 AM        <dir> ClientBin 
           Monday, March 08, 2010 08:34 AM        <dir> Images 
           Monday, March 08, 2010 08:34 AM          115 OADataService.svc 
           Monday, March 08, 2010 08:34 AM        1,096 OASilverlightTestAppTestPage.aspx 
           Monday, March 08, 2010 08:34 AM       15,533 Silverlight.js 
           Monday, March 08, 2010 08:34 AM          199 StyleSheet.css 
           Monday, March 08, 2010 08:34 AM          375 vwd.webinfo 
           Monday, March 08, 2010 09:04 AM        9,217 web.config 
    Version Information: ASP.NET Development Server 9.0.0.0 


    Err :/

    Ok granted this is probably a silverlight setup issue not Telerik, but wondering if anyone has any ideas as I don't (since I'm a relative newbie to SL).

    Cheers!
  29. E1B6EF54-02E3-4BCE-B6F0-E2D46E744B11
    E1B6EF54-02E3-4BCE-B6F0-E2D46E744B11 avatar
    29 posts
    Member since:
    Jan 2010

    Posted 08 Mar 2010 Link to this post

    Edit, sorry, Im being thick. I fixed this in less time to write the above post :\

    I right clicked properties on the web project, changed the startup page in to "OASilverlightTestAppTestPage.aspx" and it worked. 

    Hurrah! 
  30. C1C527A2-82E1-4749-9693-A284181AE4C8
    C1C527A2-82E1-4749-9693-A284181AE4C8 avatar
    20 posts
    Member since:
    Nov 2007

    Posted 11 Sep 2010 Link to this post

    I was able to replicate and solve this with the OpenAccess 2010 Q2 release.  I have verified that my Telerik.OpenAccess.40.Extensions.dll version is 2010.2.714.1.

    To reproduce the warning:

    1. Set up a fresh copy of Windows (XP Professional in my case - I use a new VMware box for each project).  Install Visual Studio 2010 along with the latest version of Telerik OpenAccess and RadControls for Silverlight.

    2. Start a new Telerik Silverlight application.  Have it build an ASP.NET appication and enable RIA services.  Build the project.

    3. Add an OpenAccess Entity Diagram to the project.  Point it to NorthwindOA.  Just select the "Employee" table - it is sufficient.  Build the project.

    4. Add an OpenAccess Domain Service to the project.  Enable the Employee class.  

    5. Build the project, by this point you'll get the error as a warning in the output window.

    To make the warning go away:

    1. Download and install ADO.NET Data Services v1.5 CTP1

    2. Download and install ADO.NET Data Services Update for .NET Framework 3.5 SP1

    3. At some point (I cannot remember where), I also had to install .NET Framework 3.5 SP1.
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.