Error 1 Could not load referenced assembly "\\KUBLAI\SMB Tracker\Telerik Samples\bestpracticewebdevelopmentonevb_BBCBE93B\BusinessLayerVB\bin\Debug\BusinessLayerVB.dll". Caught a FileNotFoundException saying "Could not load file or assembly '\\KUBLAI\SMB Tracker\Telerik Samples\bestpracticewebdevelopmentonevb_BBCBE93B\BusinessLayerVB\bin\Debug\BusinessLayerVB.dll' or one of its dependencies. The system cannot find the file specified.". \\KUBLAI\SMB Tracker\Telerik Samples\bestpracticewebdevelopmentonevb_BBCBE93B\BestPracticesHttpModuleVB\ResGen BestPracticesHttpModuleVB
9 Answers, 1 is accepted
Can you try to download and install the latest build of OpenAccess SDK? The sample you are looking for is updated there and it is now called Managing OpenAccess Context. I would highly recommend you to use the improved sample instead of the old one.
Give it a try and kindly let us know if the problem appears after re-installing the SDK.
Ivailo
the Telerik team
Are you able to see the Telerik-OpenAccess-SDK-2011.3.1320.1.zip internal build of the SDK on the download page I have sent you? If it's available please use it as it is the latest release - but uninstall your current version first. In case it is not visible, kindly let me know and I will send you the Managing OpenAccess Context sample itself in order for you to proceed.
Ivailo
the Telerik team
Server Error in '/' Application.
--------------------------------------------------------------------------------
The value for the 'compilerVersion' attribute in the provider options must be 'v4.0' or later if you are compiling for version 4.0 or later of the .NET Framework. To compile this Web application for version 3.5 or earlier of the .NET Framework, remove the 'targetFramework' attribute from the <compilation> element of the Web.config file.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Configuration.ConfigurationErrorsException: The value for the 'compilerVersion' attribute in the provider options must be 'v4.0' or later if you are compiling for version 4.0 or later of the .NET Framework. To compile this Web application for version 3.5 or earlier of the .NET Framework, remove the 'targetFramework' attribute from the <compilation> element of the Web.config file.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ConfigurationErrorsException: The value for the 'compilerVersion' attribute in the provider options must be 'v4.0' or later if you are compiling for version 4.0 or later of the .NET Framework. To compile this Web application for version 3.5 or earlier of the .NET Framework, remove the 'targetFramework' attribute from the <compilation> element of the Web.config file.]
System.Web.Compilation.MultiTargetingUtil.ValidateCompilerVersionFor40AndAbove(String compilerVersion) +325
System.Web.Compilation.MultiTargetingUtil.ValidateCompilerVersionFor40AndAbove() +55
System.Web.Compilation.MultiTargetingUtil.InitializeTargetFrameworkNameFor40AndAbove(String targetFrameworkMoniker) +35
System.Web.Compilation.MultiTargetingUtil.InitializeTargetFrameworkName() +222
System.Web.Compilation.MultiTargetingUtil.EnsureFrameworkNamesInitialized() +176
System.Web.Compilation.BuildManager.Initialize() +225
System.Web.Compilation.BuildManager.InitializeBuildManager() +363
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +605
[HttpException (0x80004005): The value for the 'compilerVersion' attribute in the provider options must be 'v4.0' or later if you are compiling for version 4.0 or later of the .NET Framework. To compile this Web application for version 3.5 or earlier of the .NET Framework, remove the 'targetFramework' attribute from the <compilation> element of the Web.config file.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +762
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +156
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +358
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Unfortunately this sample is indeed intended for Visual Studio 2010 and .NET Framework 4.0 (as specified also in the sample description). In case you click Run Sample and you don't have .NET 4.0 installed you should get a message box explaining that the prerequisites for the sample are not met.
In case you do have .NET 4.0 installed but you are getting this error, let me know and we can troubleshoot this further. On the other hand, if you have .NET 3.5 only and you do not want to install the 4.0 version we can send you a customized version of the sample application that will work on the older version but will lack some of the features - namely, the OpenAccessLinqDataSource data binding, since it is possible only when compiled with .NET 4.0.
Regards,
Ivailo
the Telerik team
Thanks.
Do you still have issues with the project? Do not hesitate to get back to us if there are any errors - we are going to assist you until everything is clarified.
Ivailo
the Telerik team
Here's the trace:
Generated by the method: EnvDTE.ProjectItem AddFromTemplate(System.String, System.String)
Stack Trace: at Microsoft.VisualStudio.TemplateWizard.Wizard.DisplayExtensionLoadError(String assemblyName)
at Microsoft.VisualStudio.TemplateWizard.Wizard.CreateManagedInstance(String assemblyName, String fullClassName, String templatePath)
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(MenuEntry entry)
at Telerik.OpenAccess.Sdk.Addin.VSAddin.Menu.MenuOperations.ExecuteCommand(String cmd)
at Telerik.OpenAccess.Sdk.Addin.VSAddin.OpenAccessAddin80.Exec(String longcommandName, vsCommandExecOption executeOption, Object& varIn, Object& varOut, Boolean& handled)
You are seeing this error message because one of our ItemTemplates was not correctly deployed and therefore is not found on your machine. Can you please make sure you have just one version of OpenAccess installed? It will be best if you can clean your machine from any OpenAccess versions you might have and then install a clean one. This should fix your problem.
Regards,Petar
the Telerik team