When adding a Graph crashes Visual Studio 2013 HELP

6 posts, 0 answers
  1. t
    t avatar
    11 posts
    Member since:
    Jan 2015

    Posted 07 Jan 2015 Link to this post

    Visual Studio 2013 Ultimate Update 3
    Telerik Reporting - Q3 2014 SP1 - 8.2.14.1204

    1. Create a new Telerik Report Q3 2014 Wizard in UI project
    2. select graph wizard
    3. Clustered column
    4. add new object data source. objectdatasource is a class method in the business project returning a list of an object like users. choose a datasource member (simple one that returns a list of Users)
    5. click finish
    6. you can see the telerik report automatically say "generating report..." as soon as finish is clicked. Visual Studio then crashes and stops working.

    If I add a simple data using the exact same method there is no issue.
    If I add using a SQLDataSource there is not issue so its an issue with the ObjectDataSource. For some reason it tries to render it right away as well.

    I tried rebooting, adding a graph numerous ways but nothing works.

  2. Ivan Hristov
    Admin
    Ivan Hristov avatar
    191 posts

    Posted 08 Jan 2015 Link to this post

    Hello,

    We followed the exact steps you have listed, but unfortunately we were unable to reproduce the issue you are having. We would like to ask you to elaborate further and send us a runnable example of your report along with the business objects you are using so we could test it on our side.

    As a suggestion you can try to set this ObjectDataSource instance as a DataSource of another DataItem (i.e. Table or CrossTab) to see if the issue persists.

    You can also try to attach a second Visual Studio Instance to your first one and see if there are any exceptions thrown when the wizard finishes. It might be helpful if you can send us the exception messages, if any.

    Regards,
    Ivan Hristov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. t
    t avatar
    11 posts
    Member since:
    Jan 2015

    Posted 09 Jan 2015 in reply to Ivan Hristov Link to this post

    What appears to be the problem is that automatically the Telerik Graph specifically, tries to call the business layer objectdatasource directly once you add it. As with any enterprise application the business layer object can never be called directly as there is no way for it to be executed directly without going through the UI. When the Graph tries to call this method as it would appear, Telerik crashes as the method cannot be called from a reporting tool directly which in turns crashes Visual Studio. This is not an issue with the non graph reports, it would seem Telerik needs to add logic when the method cannot be called directly it should just not show a preview instead of crashing.

    Work around is to create a stub method that only returns a list, this way Telerk will not crash.

    Please fix asap.
  4. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 12 Jan 2015 Link to this post

    Hello,

    I believe you are discussing the same question with my colleague in a support thread #894935 Reporting Crashing Visual Studio when using graphs.

    We will appreciate it if you provide the requested details in the ticket.


    For anyone concerned, below is quote from the mentioned support ticket:
    "...The Graph item calls the specified ObjectDataSource data retrieval method in order to obtain the data, process it and create a live preview out of it. This behavior is by design and it is one of the main characteristics of the Graph item. However, even if the Graph is unable to load your business objects types and their methods, it shouldn't crash the designer, but just inform you that the types/methods cannot be loaded/executed. That's why we would like to ask you to create a small sample reproducing the behavior and send it to us so we could investigate it on our side.

    Please check again the configuration of your project and make sure all the assemblies are present and can be loaded from the Visual Studio designer. If your scenario doesn't allow to connect to your data in design-time, you can bind the Graph at runtime, using the NeedDataSource() event or the Bindings collection (which is the recommended approach). As you suggested in the forum thread, you can create a mockup method or even a mockup business class just to be used in the designer and then replace it during runtime with the class/method that will obtain the real data to be processed...
    "

    Regards,
    Stef
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  5. t
    t avatar
    11 posts
    Member since:
    Jan 2015

    Posted 23 Feb 2015 in reply to Stef Link to this post

    Solution is to comment out all exception handling. Telerik was trying to execute our code within the IDE and our methods cannot be executed. The methods were trying to connect through our data layers to the database. Which of course will not work when the code is not running then our default exception handling was hit. We commented out all our .net exception handling classes and Telerik finally works.

    Major pain, telerik should be more graceful in catching its errors.

  6. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 26 Feb 2015 Link to this post

    Hello T,

    This is the designed behavior of both Report Designers as the goal is to present visual items in WYSIWYG mode. Data items as the Graph and the Map are complex and have many settings which makes it preferable to be validated before running the report in an application.

    When you use the VS Report Designer the start application is VS, and if the created data access layer uses authentication or other, it most probably will fail. Thus for design purposes you can work with the data objects just to retrieve the object's schema, not requiring all settings for executing the data retrieval method.

    Sharing more details about the existing data access layer will help us understand better the issue and provide you more accurate suggestions.

    Regards,
    Stef
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top