Telerik MVC Extensions Intellisence

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 лет назад
Hi guys,

I want to use Telerik MVC Extensions in my plugin. So I add reference to Telerik.Web.Mvc.dll.
Modify web.config (in my plugin folder) to:


      <namespaces>
        ...
        <add namespace="Telerik.Web.Mvc" />
        <add namespace="Telerik.Web.Mvc.UI" />
      </namespaces>
      <assemblies>
        ...
        <add assembly="Telerik.Web.Mvc"/>
      </assemblies>


When I test the plugin, it works very well. However, I didn't get any intellisence for the Telerik extensions in my cshtml views. Visual studio says: Could not load file or assembly "Telerik.Web.Mvc" or one of its dependencies. Could not find the specified file.

Any ideas? Thanks!
12 лет назад
I am not sure about the solution of this problem. But I made it work once by creating a plugin as a web application project instead of using a simple class library.

I don't know why all the existing plugins are class libraries. You will need to create a new Web Application project and copy all the files from your plugin to it. Only then, the intellisence will work.
12 лет назад
I had the same issue and found that adding the Telerik.Web.Mvc.dll to the plugin's bin folder (in the project itself, not the Nop.Web.Plugin) gave me intellisense.

My plugin is a C# library and altering the web.config did not give me any joy.
11 лет назад
I've add the namespace and the assembly but still have error:


Could not load file or assembly 'Telerik.Web.Mvc, Version=2012.3.1018.340, Culture=neutral, PublicKeyToken=29ac1a93ec063d92' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
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.IO.FileLoadException: Could not load file or assembly 'Telerik.Web.Mvc, Version=2012.3.1018.340, Culture=neutral, PublicKeyToken=29ac1a93ec063d92' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

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.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Web.Mvc, Version=2012.3.1018.340, Culture=neutral, PublicKeyToken=29ac1a93ec063d92' could not be loaded.


11 лет назад
The problem is solved now. The reason is because the reference in the plugin and the core is different. They should point to the same dll file.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.