This is a migrated thread and some comments may be shown as answers.

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

3 Answers 315 Views
Data Access Free Edition
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Richard Rout
Top achievements
Rank 1
Richard Rout asked on 18 Oct 2010, 11:19 PM
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

3 Answers, 1 is accepted

Sort by
0
Serge
Telerik team
answered on 21 Oct 2010, 05:53 PM
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
0
Richard Rout
Top achievements
Rank 1
answered on 21 Oct 2010, 06:04 PM
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?
0
Serge
Telerik team
answered on 27 Oct 2010, 12:59 PM
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
Tags
Data Access Free Edition
Asked by
Richard Rout
Top achievements
Rank 1
Answers by
Serge
Telerik team
Richard Rout
Top achievements
Rank 1
Share this question
or