CRM Demo

7 posts, 0 answers
  1. Jason
    Jason avatar
    2 posts
    Member since:
    Jul 2011

    Posted 18 Nov 2011 Link to this post

    I am attempting to rebuild the crm demo from scratch to get a better understanding of how prism is being implimented. When ever I have a module with any region controls in the view  I recieve an
    UpdateRegionsException
    An exception occurred while trying to create region objects.
        - The most likely causing exception was: 'System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.Practices.Prism.Regions.Behaviors.RegionCreationException: An exception occurred while creating a region with name 'ContactListRegion'.

    {Microsoft.Practices.Prism.Regions.Behaviors.DelayedRegionCreationBehavior.CreateRegion(DependencyObject targetElement, String regionName).  ---> Microsoft.Practices.ServiceLocation.ActivationException: Activation error occured while trying to get instance of type AutoPopulateExportedViewsBehavior, key "" ---> System.InvalidOperationException: Sequence contains more than one element
       at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
  2. Stanislav
    Admin
    Stanislav avatar
    9 posts

    Posted 21 Nov 2011 Link to this post

    Hello Jason,

    At first glance it seems that you have several copies of AutoPopulateExportedViewsBehavior in memory and MEF can’t decide which one to use.

    If you have an Infrastructure project with the behavior inside, which you reference among your other projects, make sure you have CopyLocal=false set on the project reference and on Prism & MEF assemblies too.

    If you want to use the AutoPopulateExportedViews behavior, check out Prism’s StockTrader Reference Implementation.
    They are using a very nice architecture we tried to follow.
    You can view it by running the “Desktop & Silverlight - Open RI - StockTrader Reference Implementation.bat” file in Prism’s root folder. Their help describes the views/region registration process too.

    Also, check out our LOB Chronicles series, especially posts #7 and #8. Evan has described our approach on views and regions there.

    Please contact us if there are any more problems.

    All the best,
    Stanislav
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. Gonzalo
    Gonzalo avatar
    76 posts
    Member since:
    Oct 2012

    Posted 21 Nov 2011 Link to this post

    Greetings,

    Would it be possible to get the SQL scripts to install the database for the CRM demo. I am getting conflicts because I have the latest version SQL Server 2008 SP2 and the demo comes with database version 661 my instance of SQL supports 662...

    Thanks.
  4. Stanislav
    Admin
    Stanislav avatar
    9 posts

    Posted 22 Nov 2011 Link to this post

    Hello Gonzalo,

    I have attached the generation script.
    It will also be available in one of the next CRM source code uploads.

    If there are any problems with the database, you can change the script.

    Feel free to contact us if you have any more issues.


    Greetings,
    Stanislav
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  5. Gonzalo
    Gonzalo avatar
    76 posts
    Member since:
    Oct 2012

    Posted 22 Nov 2011 Link to this post

    Excellent!

    Have a great day!
  6. Jason
    Jason avatar
    2 posts
    Member since:
    Jul 2011

    Posted 22 Nov 2011 Link to this post

    Thank you, that solved that problem.
  7. Mike
    Mike avatar
    2 posts
    Member since:
    Apr 2012

    Posted 13 Apr 2012 Link to this post

    Hi,

    Were you successful in getting the SQL pieces to work from the sample?  I am attempting to reference the sample CRM during the trial period to see how challenging it will be to create some other dashboards after the trial concludes.

    Thanks in advance.
Back to Top