Pending Review
Last Updated: 10 Apr 2019 14:05 by ADMIN
Stacy
Created on: 03 Apr 2019 21:51
Category: UI for ASP.NET MVC
Type: Bug Report
3
Telerik UI ASP.NET MVC Visual Studio Extension

Using Visual Studio Enterprise 16.0.0.

Created MVC Project 4.6.1

Run Telerik utility to "Convert to Telerik Web Application" from Project context menu. On a clean project just created from the VS Template.

Since previous step errors out and doesn't complete an attempt was made to use the Telerik Upgrade Wizard.

This produced the following error: 


An error occurred while running the wizard.

Error executing custom action Telerik.VSX.Actions.ShowConversionLogAction: Could not instantiate a TextTransformation object from the compiled assembly. The following Exception was thrown:
System.InvalidCastException: Unable to cast object of type 'Microsoft.VisualStudio.TextTemplating3e7341780e3e4a17bdabe17b447cd796.GeneratedTextTransformation' to type 'Microsoft.VisualStudio.TextTemplating.TextTransformation'.
   at Microsoft.VisualStudio.TextTemplating.TransformationRunner.CreateTextTransformation(String fullClassName, ITextTemplatingEngineHost host, Assembly assembly, ITextTemplatingSession userSession)

 

 

 

Attached Files:
2 comments
ADMIN
Nikola
Posted on: 10 Apr 2019 14:05
Hello Stacy,

I have posted a reply in the more recent thread here. I suggest to continue the conversation in that thread to avoid any confusion.

I appreciate your understanding.

Regards,
Nikola
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Stacy
Posted on: 04 Apr 2019 21:37

Manually edited the ../Views/Web.config adding Kendo.MVC.UI namespace reference seems to have fixed the project where the VS Extension failed.

 

Added: <add namespace="Kendo.Mvc.UI" />

 To:

 

<system.web.webPages.razor>
    <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <pages pageBaseType="System.Web.Mvc.WebViewPage">
      <namespaces>
        <add namespace="System.Web.Mvc" />
        <add namespace="System.Web.Mvc.Ajax" />
        <add namespace="System.Web.Mvc.Html" />
        <add namespace="System.Web.Optimization"/>
        <add namespace="System.Web.Routing" />
        <add namespace="ASOVTC.Internal.Web" />
<add namespace="Kendo.Mvc.UI" />
      </namespaces>
    </pages>
  </system.web.webPages.razor>

 

Also added to the application level Web.config

 

<system.web>
    <compilation debug="true" targetFramework="4.6.1" />
    <httpRuntime targetFramework="4.6.1" />
    <authentication mode="Windows" />
    <authorization>
      <deny users="?" />
    </authorization>
    <pages>
      <namespaces>
        <add namespace="Kendo.Mvc.UI" />
      </namespaces>
    </pages>
  </system.web>