Problems when creating a kendo mvc project with VS extension

6 posts, 0 answers
  1. Danilo
    Danilo avatar
    2 posts
    Member since:
    Mar 2013

    Posted 16 Aug 2013 Link to this post

    Hi!

    I am trying to start a kendo mvc project with VS extension. However, when I use the wizard, it fails and I get this error:

    An error occured while running the wizard.

    Error executing custom action Telerik.KendoUI.Mvc.VSX.Actions.CopyResourcesAction: System.IO.FileLoadException: Could not load file or assembly 'Kendo.Mvc, Version=2013.2.716.340, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The keyset is not defined. (Exception from HRESULT: 0x80090019)
    File name: 'Kendo.Mvc, Version=2013.2.716.340, Culture=neutral, PublicKeyToken=121fae78165ba3d4' ---> System.Runtime.InteropServices.COMException (0x80090019): The keyset is not defined. (Exception from HRESULT: 0x80090019)
       at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
       at System.Reflection.Assembly.LoadFrom(String assemblyFile)
       at Telerik.KendoUI.Mvc.VSX.Actions.CopyResourcesAction.GetKendoVersionedFolder(String mainAssemblyLoadInfo)
       at Telerik.KendoUI.Mvc.VSX.Actions.CopyResourcesAction.ModifyResources()
       at Telerik.KendoUI.Mvc.VSX.Actions.CopyResourcesAction.Execute(WizardContext wizardContext, IPropertyDataDictionary arguments, IProjectWrap project)
       at Telerik.VSX.Actions.ProjectActionBase.Execute(WizardContext wizardContext, IPropertyDataDictionary arguments)
       at Telerik.VSX.WizardEngine.Actions.ActionBase.Telerik.WizardFramework.IAction.Execute(IWizardContext wizardContext, IPropertyDataDictionary arguments)
       at Telerik.VSX.WizardEngine.ActionManager.ExecActions()

    Does anyone know what it is happening?

    Thanks!
  2. Vesko
    Admin
    Vesko avatar
    97 posts

    Posted 19 Aug 2013 Link to this post

    Hi Danilo,

    Did you try to reinstall the extensions? Use the Extension Manager (Tools | Extensions Manager...) to uninstall and install them in case you didn't.

    Please let me know if that helps.

    Regards,
    Vesko
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Alex M
    Alex M avatar
    3 posts
    Member since:
    Apr 2010

    Posted 23 Nov 2013 Link to this post

    I have the similar issue.

    When I creating new Kendo project in VS 2012 I getting the following error:

    Error occured while running wizard.

    System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
       at EnvDTE80.Solution2.GetProjectTemplate(String TemplateName, String Language)
       at Telerik.VSX.Helpers.ProjectTemplateHelper.GetProjectTemplatePath(String templateZipFileName, DTE dte, ProjectLanguage projectLanguage, TargetFramework targetFramework)
       at Telerik.KendoUI.Mvc.VSPackage.VSTemplateEntryPointWizard.RunFinished()
       at Telerik.VSX.VSPackage.WizardBase.<Microsoft.VisualStudio.TemplateWizard.IWizard.RunFinished>b__3()
       at Telerik.VSX.VSPackage.WizardBase.CatchExceptionAndSendReport(Action action)

    In VS 2010 all work fine.

    Uninstall and reinstall the extension is not helped.

    P.S.
    You have misspell in error message "Error occured while running wizard." Correct variant is "Error occurred while running wizard."
  5. Rick Hubka
    Rick Hubka avatar
    33 posts
    Member since:
    Apr 2006

    Posted 25 Nov 2013 Link to this post

    I get the same error.  I can not create a VS Kendo MVC project in VS 2012 Ult  (Win 8.1) using latest Nov 20 release.  I tried it at work and at home.  Same result.  I  uninstalled and re-installed. Same.   I have no problems creating a project with Telerik ASP.Net or Reporting or WinForms.  Just Kendo MVC.

    Thanks
  6. Dimitar
    Admin
    Dimitar avatar
    45 posts

    Posted 26 Nov 2013 Link to this post

    Hi Rick and Alex,

    The error that Danilo has observed is different.

    For the error that Alex posted, the most probable cause is that the target framework of the project was set to .NET Framework 4.5.1. The Visual Studio Extensions for Kendo UI for ASP.NET MVC are currently not supporting it. We will implement and release .NET Framework 4.5.1 support in the Visual Studio Extensions for Kendo UI for ASP.NET MVC soon. Meanwhile I would suggest you using .NET 4.5 as a target framework for your Kendo projects.

    Alex, thank you very much for showing us the typo. We will correct it in the next VSExtensions builds.

    Let me know if you need further assistance.

    Regards,
    Dimitar
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  7. Rick Hubka
    Rick Hubka avatar
    33 posts
    Member since:
    Apr 2006

    Posted 26 Nov 2013 Link to this post

    Yup...  I was set to Framework 4.5.1
    I switched to 4.5 and life is good again.

    Thanks
Back to Top
UI for ASP.NET MVC is VS 2017 Ready