System.ArgumentException:Value does not fall within the expected range.

4 posts, 0 answers
  1. Richard Rout
    Richard Rout avatar
    13 posts
    Member since:
    Sep 2009

    Posted 18 Oct 2010 Link to this post

    Hi,

    We have a website, and whenever I try to add my Domain Model to our project we get this error:

    Exception:  Value does not fall within the expected range.

    Generated by the method: EnvDTE.ProjectItem AddFromTemplate(System.String, System.String)

    Stack Trace:    at EnvDTE.Properties.Item(Object index)
       at Telerik.VS.Data.Design.CommonHelpers.DteHelper2.GetProjectNamespace(Project project)
       at Telerik.VS.Data.Design.ModelBuilderWizardFormController..ctor(IServiceProvider serviceProvider, Project project, WizardSettings modelBuilderSettings, WizardMode wizardMode, VisualStudioProjectSystem applicationType, IConnectionManager connectionManager)
       at Telerik.VS.Data.Design.ModelItemWizard.RunStarted(Object automationObject, Dictionary`2 replacementsDictionary, WizardRunKind runKind, Object[] customParams)
       at Telerik.VS.Data.Design.TemplateItemWizardBase.Microsoft.VisualStudio.TemplateWizard.IWizard.RunStarted(Object automationObject, Dictionary`2 replacementsDictionary, WizardRunKind runKind, Object[] customParams)
       at Microsoft.VisualStudio.TemplateWizard.Wizard.Execute(Object application, Int32 hwndOwner, Object[]& ContextParams, Object[]& CustomParams, wizardResult& retval)
       at EnvDTE.ProjectItems.AddFromTemplate(String FileName, String Name)
       at Telerik.OpenAccess.Sdk.Addin.Model.VAProject.AddProjectItemFromTemplate(ProjectItem parent, String source, String dest)
       at Telerik.OpenAccess.Sdk.Addin.VSAddin.VSHandler.executeAddNewItemWizard(VAProject activeProject, String extension, String projectItemName, String templateName)
       at Telerik.OpenAccess.Sdk.Addin.VSAddin.VSHandler.AddDomainModelCEH(BaseAddin addin, MenuDesc md, Object& varIn, Object& varOut)
       at Telerik.OpenAccess.Sdk.Addin.VSAddin.BaseAddin.Exec(String longcommandName, vsCommandExecOption executeOption, Object& varIn, Object& varOut, Boolean& handled)

    Exception Type: System.ArgumentException

    It works with a web app, but our site is half classic asp half .net - so it's just a standard website.

    Cheers,
    Rich
  2. Serge
    Admin
    Serge avatar
    375 posts

    Posted 21 Oct 2010 Link to this post

    Hello Richard Rout,

     Usually you should not be able to even see the new designer template in a web site project. As it is not compiled it cannot be enhanced and thus is not a viable scenario for OpenAccess. Can you please provide some information about your setup meaning : OpenAccess version, Visual Studio version and so on. 

    I am looking forward to resolving issue.

    Best wishes,
    Serge
    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
  3. DevCraft banner
  4. Richard Rout
    Richard Rout avatar
    13 posts
    Member since:
    Sep 2009

    Posted 21 Oct 2010 Link to this post

    Hi Serge,

    I just downloaded the trial of open access, so it looks like 2010.2.714.1
    And I am using Visual Studio 2008 version 9.0.30729.1 SP with Microsoft .NET Framework Version 3.5 SP1

    So the ORM needs to be compiled? Why is that?
  5. Serge
    Admin
    Serge avatar
    375 posts

    Posted 27 Oct 2010 Link to this post

    Hi Richard Rout,

    OpenAccess itself does not need to be compiled. However any project you have that has been either enhancer or it has an rlinq file in it needs to pre-processed (enhanced) after compilation. In the case of a web site, it is not possible as this project does not output an assembly (it is not compiled by Visual Studio but dynamically by the web server).


    I hope this is helpful, and thank you for the input.

    Kind regards,
    Serge
    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
Back to Top