Best Practices Demo - File not Found

10 posts, 1 answers
  1. John
    John avatar
    12 posts
    Member since:
    Jul 2006

    Posted 13 Feb 2012 Link to this post

    I using the latest ASP.net demo and OpenAccess SDK.  When I install the best practices demo and select the option to update to the latest ASP.Net version it installs with no errors.  When I build the application i get an error "file not found".  How do I resolve this problem?

    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
  2. Ivailo
    Admin
    Ivailo avatar
    318 posts

    Posted 13 Feb 2012 Link to this post

    Hello John,

    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.

    All the best,
    Ivailo
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft banner
  4. John
    John avatar
    12 posts
    Member since:
    Jul 2006

    Posted 13 Feb 2012 Link to this post

    Thanks for the quick reply.  There appears to be a problem installing the latest SDK.  When I tried to install Telerik_OpenAccess_ORM_2011_3_1129_SDK  it said it was already installed.  So I uninstalled it, reboot, reinstall and I get the same version I had.   Most of the ASP samples are dated November 2010 and a couple on 3/22/2011.  I do not see anything called "Managing OpenAccess Context"
  5. Answer
    Ivailo
    Admin
    Ivailo avatar
    318 posts

    Posted 13 Feb 2012 Link to this post

    Hello John,

    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.


    Greetings,
    Ivailo
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  6. John
    John avatar
    12 posts
    Member since:
    Jul 2006

    Posted 13 Feb 2012 Link to this post

    OK.  I found it and installed the SDK and the new sample app. The app Builds with no errors or warnings.   I now get a compile error about using .net 4 when I run the app.  Do you know how to fix this?  The web.config ask for 3.5 but 4.0 should be OK.

    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



  7. Ivailo
    Admin
    Ivailo avatar
    318 posts

    Posted 16 Feb 2012 Link to this post

    Hello John,

    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
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  8. John
    John avatar
    12 posts
    Member since:
    Jul 2006

    Posted 16 Feb 2012 Link to this post

    I am using VS2010 and .net 4.   It has started to work but fails again after making almost any change (just add a new blank page).  I will work on it some more and let you know if I need more assistance.

    Thanks.
  9. Ivailo
    Admin
    Ivailo avatar
    318 posts

    Posted 21 Feb 2012 Link to this post

    Hi John,

    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.

    Kind regards,
    Ivailo
    the Telerik team
    Telerik OpenAccess ORM Q1 2012 release is here! Check out what's new or download a free trial >>
  10. Isilme
    Isilme avatar
    2 posts
    Member since:
    Aug 2011

    Posted 26 Feb 2012 Link to this post

    I also have problem installing OpenAccess ORM. After the first attampt to install it failed as a result of connection error, I found the product had already been installed on the system, at least partly installed. I uninstalled it and installed it again. Everything went fine.  However, when I used it to create a Data Model in VS2010, it said "System.IO.FileNotFoundException occurred" and it failed to load Telerik.OpenAccess.Dsl.Design. Having tried many times, I'm still not able to kick the problem.

    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)
  11. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 29 Feb 2012 Link to this post

    Hi Isilme,

    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
    Telerik OpenAccess ORM Q1 2012 release is here! Check out what's new or download a free trial >>
Back to Top
DevCraft banner