OpenAccess Crashes Visual Studio

12 posts, 0 answers
  1. digitall
    digitall avatar
    169 posts
    Member since:
    Jun 2006

    Posted 18 Feb 2009 Link to this post

    I am starting to mess around with the OpenAccess system but am running into issues within Visual Studio. I have a solution that has fourteen projects (two WPF client pieces, one WCF server host and eleven class libraries). When I select any one of a group of six class libraries inside a solution folder and then hit the OpenAccess menu item the menu shows up instantly and I can do any configuration offered as expected. Unfortunately these libraries don't require data access. With any of the other projects inside this solution though, I select the project and hit the OpenAccess menu item and it takes 10+ seconds to load and the only menu options are Launch Telerik ORM Wizard, Configuration, Options and Help. If I launch the Wizard and select the option to Reverse Map a database, Visual Studio crashes and restarts.

    Any suggestions on solving this?
  2. Ady
    Admin
    Ady avatar
    589 posts

    Posted 19 Feb 2009 Link to this post

    Hello Scott,

     I tried to reproduce the crash by creating a similar scenario but everything worked fine. Can you narrow down to the problematic project by temporarily removing the projects for which everything works fine, from the solution?

    Alternatively you could send us a sample project where we can reproduce the crash.

    Greetings,
    Ady
    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.
  3. DevCraft banner
  4. digitall
    digitall avatar
    169 posts
    Member since:
    Jun 2006

    Posted 19 Feb 2009 Link to this post

    OK, now I am even more confused. Since some projects were able to work in the original solution when selected while others were not I decided to create a new solution and slowly add each project in until it broke. The new solution doesn't have the same problem even though the exact same projects are linked to it as the other solution. The only difference being one solution is under source control while the other isn't (but all child projects are).

    Is there a log somewhere that shows what happens when the OpenAccess menu item is selected to possibly see what is failing with my original solution? Based on the delay opening the menu I would say it is trying to do something in the background and that fails so the full menu option can't be displayed.
  5. Ady
    Admin
    Ady avatar
    589 posts

    Posted 19 Feb 2009 Link to this post

    Hello Scott,

    The available menu options are decided based on the current selection in the Solution Explorer - the type of project selected or, if no project is selected or the project is not OpenAccess enabled, then wizards that apply for the entire solution.

    I tried reproducing the crash with a solution under source control but again all went well. Currently there is no log that you could check for.

    Does the same problem occur on the source controlled solution if you restart Visual Studio? If yes, do you see the next set of 4 steps for Reverse Mapping or does it crash immediately on clicking 'Proceed' for 'Yes, generate classes for my tables'

    Greetings,
    Ady
    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. digitall
    digitall avatar
    169 posts
    Member since:
    Jun 2006

    Posted 19 Feb 2009 Link to this post

    I see the four steps but hitting Proceed on Step 1 crashes VS. I checked Event Viewer on the system and the error that is being generated is this:

    The remote debugger is unable to communicate with Visual Studio, and must abort the remote debugging session. Please restart debugging.

    Everytime I make VS crash by using the steps previously outlined that error is generated.



  7. Ady
    Admin
    Ady avatar
    589 posts

    Posted 19 Feb 2009 Link to this post

    Hello Scott,

    Can you use the CLR debugger to execute Visual Studio and try and reproduce the problem? Here is what you can do -
    1. Open the CLR debugger - dbgCLR.exe, and specify the Visual Studio executable as the 'Program to Debug'
    2. Go to the 'Debug->Exceptions' menu item and check the 'CLR exceptions thrown' checkbox
    3. In the debugging options (available via Tools->Options->Debugging) uncheck the 'Enable Just My Code' option.
    4. You can now start debugging and execute the steps that reproduce the error and send us the call stack after clicking 'Proceed' on Step1.

    Regards,
    Ady
    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.
  8. digitall
    digitall avatar
    169 posts
    Member since:
    Jun 2006

    Posted 19 Feb 2009 Link to this post

    The error being thrown is:

    A first chance exception of type 'System.ArgumentException' occurred in Telerik.OpenAccess.SDK.AddIn.dll
    Additional information: Value does not fall within the expected range.


    When I clicked Continue I receive this:

    A first chance exception of type 'System.NotImplementedException' occurred in Telerik.OpenAccess.SDK.AddIn.dll
    Additional information: The method or operation is not implemented.


    Clicking Continue there throws me into an infinite loop with the same error (or, I hit Continue 17 times before giving up and hitting Break). The callstack is this:

         [Managed to Native Transition]    
    >    Telerik.OpenAccess.SDK.AddIn.dll!Telerik.OpenAccess.Sdk.Addin.Model.VASolution.GetDTEProjectUniqueName(EnvDTE.Project project = {System.__ComObject}) + 0x45 bytes    
         Telerik.OpenAccess.SDK.AddIn.dll!Telerik.OpenAccess.Sdk.Addin.Model.VASolution.GetDTEProjectNameForComparison(EnvDTE.Project project = {System.__ComObject}, string projectUniqueName = "WestGate.Core\\WestGate.Core.csproj") + 0x3c bytes    
         Telerik.OpenAccess.SDK.AddIn.dll!Telerik.OpenAccess.Sdk.Addin.Model.VASolution.GetDTEProjectFromDTEProject(EnvDTE.Project prj = {System.__ComObject}, string projectName = "WestGate.Core\\WestGate.Core.csproj") + 0x5a bytes    
         Telerik.OpenAccess.SDK.AddIn.dll!Telerik.OpenAccess.Sdk.Addin.Model.VASolution.GetDTEProjectFromProjectItems(EnvDTE.ProjectItems pris = {System.__ComObject}, string projectName = "WestGate.Core\\WestGate.Core.csproj") + 0x235 bytes    
         Telerik.OpenAccess.SDK.AddIn.dll!Telerik.OpenAccess.Sdk.Addin.Model.VASolution.GetDTEProjectFromDTEProject(EnvDTE.Project prj = {System.__ComObject}, string projectName = "WestGate.Core\\WestGate.Core.csproj") + 0x1c2 bytes    
         Telerik.OpenAccess.SDK.AddIn.dll!Telerik.OpenAccess.Sdk.Addin.Model.VASolution.GetDTEProject(string projectName = "WestGate.Core\\WestGate.Core.csproj", bool isUniqueName = true) + 0x2e9 bytes    
         Telerik.OpenAccess.SDK.AddIn.dll!Telerik.OpenAccess.Sdk.Addin.Model.VASolution.GetProject(string projectName = "WestGate.Core\\WestGate.Core.csproj", bool isUniqueName = true) + 0x2dd bytes    
         Telerik.OpenAccess.SDK.AddIn.dll!Telerik.OpenAccess.Sdk.Addin.Model.VASolution.GetProject(EnvDTE.Project dteproject = {System.__ComObject}) + 0x8f bytes    
         Telerik.OpenAccess.SDK.AddIn.dll!Telerik.OpenAccess.Sdk.Addin.Model.VASolution.GetActiveProject() + 0xbe bytes    
         Telerik.OpenAccess.SDK.AddIn.dll!Telerik.OpenAccess.Sdk.Addin.VSAddin.BaseAddin.getCurrentProject() + 0x2e bytes    
         Telerik.OpenAccess.SDK.AddIn.dll!Telerik.OpenAccess.Sdk.Addin.VSAddin.VSHandlerCommon.isSupportedProjectTypeCQH(Telerik.OpenAccess.Sdk.Addin.VSAddin.BaseAddin addin = {Telerik.OpenAccess.Sdk.Addin.VSAddin.OpenAccessAddin80}, Telerik.OpenAccess.Sdk.Addin.VSAddin.MenuDesc md = {Telerik.OpenAccess.Sdk.Addin.VSAddin.MenuDesc}) + 0x32 bytes    
         Telerik.OpenAccess.SDK.AddIn.dll!Telerik.OpenAccess.Sdk.Addin.VSAddin.BaseAddin.QueryStatus(string longcommandName = "Telerik.OpenAccess.Sdk.Addin.VSAddin.OpenAccessAddin80.DatabaseCreate", EnvDTE.vsCommandStatusTextWanted neededText = vsCommandStatusTextWantedNone, ref EnvDTE.vsCommandStatus status = vsCommandStatusUnsupported, ref object commandText = null) + 0xde bytes    
         [Native to Managed Transition]    

  9. Ady
    Admin
    Ady avatar
    589 posts

    Posted 20 Feb 2009 Link to this post

    Hi Scott,

     Thanks for that. It helps a lot to get an insight into the actual problem. We have added better error handling for that case.

    Additionally can you provide some information about the WestGate.Core project , like the type of the project, language (cs,vb), whether it is OpenAccess enabled and any other setup information like whether it is placed under a 'Solution Folder' etc.

    Best wishes,
    Ady
    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.
  10. digitall
    digitall avatar
    169 posts
    Member since:
    Jun 2006

    Posted 20 Feb 2009 Link to this post

    Well, that's where things get weird. There are actually a number of projects in the solution that cause that error to arise (all prefixed with WestGate) such as Core (C# class library), Data (C# class library), Server (C# WCF Web Services), Client (C# WPF), SpeedPassClient (C# WPF) as well as some internal libraries that don't have any data elements in them. The menu fails on all of those and actually make it impossible for me to make them OpenAccess enabled. I have six other projects (WeightScale.Core - C# class library, WeightScale.SampleClient - C# console app, WeightScale.SampleHost - C# console app, WeightScale.Server - C# class library,WeightScale.ScaleService - C# Windows service and WeightScaleInstaller - Setup project) that all work fine inside the same solution. Everything is contained inside a few solution folders.

    Where it gets even stranger is I created a new solution and selected Add -> Existing Project and brought in all of the same projects to the new solution (recreating the solution folders) and every project works there with OpenAccess, including the ones that don't work in the original solution. I know it isn't something with that instance of Visual Studio as I've closed it and re-opened it multiple times and also restarted my entire system, all to no avail. I've tried comparing the solutions inside notepad to see if there was something weird in the one that wasn't working and, minus project reference paths (the new solution was in a temp directory) there didn't seem to be anything in one that wasn't in the other.
  11. Ady
    Admin
    Ady avatar
    589 posts

    Posted 20 Feb 2009 Link to this post

    Hi Scott,
     
    Yes, that sounds weird. And the only difference between the working and non-working version is that the working version's solution file is under source control?

    I am not sure whether this would help but can you try removing the problematic projects from your solution and adding them again one by one.

    Greetings,
    Ady
    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.
  12. digitall
    digitall avatar
    169 posts
    Member since:
    Jun 2006

    Posted 20 Feb 2009 Link to this post

    Yep, that was the only difference I could see. Due to time constraints I am going to have to stick with the dual solution option for now and hope for the best. As I said at the beginning, this is only a trial run anyway so it isn't a huge deal.

    Thanks for all the assistance.
  13. Ady
    Admin
    Ady avatar
    589 posts

    Posted 23 Feb 2009 Link to this post

    Hello Scott,

    We will continue to investigate further and try and reproduce and fix that problem.
    We'll keep you posted on the developments.

    All the best,
    Ady
    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.
Back to Top
DevCraft banner