This is a migrated thread and some comments may be shown as answers.

[Solved] Executing APP with ASP.NET MVC Extensions without having installed it fails

5 Answers 166 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Marc Gibian
Top achievements
Rank 1
Marc Gibian asked on 08 Apr 2010, 10:31 PM
I have a large ASP.NET MVC application that uses the Telerik ASP.NET MVC Extensions. Everything works great on developer systems, even those where the product was not installed. I now have built the application and copied it to a lab system for more formal testing. Trying to run the application results in the following error:

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1061: 'System.Web.Mvc.HtmlHelper' does not contain a definition for 'Telerik' and no extension method 'Telerik' accepting a first argument of type 'System.Web.Mvc.HtmlHelper' could be found (are you missing a using directive or an assembly reference?)

Source Error:

Line 14:     <script src="<%= ResolveClientUrl("~/Scripts/Hat.js") %>" type="text/javascript"></script>   
Line 15:     <asp:ContentPlaceHolder ID="ScriptIncludeContent" runat="server" />
Line 16:     <%= Html.Telerik().StyleSheetRegistrar()
Line 17:         .DefaultGroup(group => group.Add("telerik.common.css")
Line 18:                                     .Add("telerik.vista.css"))

This sure looks like the Telerik assembly was not present, but I see it in the application's bin directory along with the other assemblies it depends on.

Anyone have any thoughts on what is missing/wrong?

Thanks,
Marc

5 Answers, 1 is accepted

Sort by
0
Accepted
IQworks
Top achievements
Rank 1
answered on 09 Apr 2010, 01:25 AM
Hi,
    Since it was a true copy, then it sounds like everything should be the same. Here is what I would double check.
    1 -  Namespaces element in web.config should still contain. 

      <

 

add namespace="Telerik.Web.Mvc.UI" />
    2 -  Your Telerik.Web.mvc.dll is still in your references and/or Bin. (sounds like you did that)
 just something to check.   

0
Marc Gibian
Top achievements
Rank 1
answered on 09 Apr 2010, 04:38 PM
The problem was the web.config file... due to the method used for deployment a different web.config file was used deploying to lab than when developers work with the product.

Thank you very much for your help.
0
IQworks
Top achievements
Rank 1
answered on 09 Apr 2010, 04:53 PM
Hi Marc,
  Glad your issue was taken care of. If my suggestion helped, could you do me a favor and "Mark as answered" for me ?
thanks for your time
0
alice adams
Top achievements
Rank 1
answered on 13 Apr 2010, 05:51 AM
If you pass the mouse over the first item of the menu and then move the mouse up, the menu will close, but when you move the mouse out passing by another item than the first, the menu stays open. Check the close function on the files...


[url=http://www.rajagiriworld.com]Yoga Massage[/url]

0
IQworks
Top achievements
Rank 1
answered on 13 Apr 2010, 03:33 PM
Hi Alice,
    Are you in the correct forum topic ?
    If you are, excuse me. 
    But for MVC extension Menu topics, you might try reposting here?
    http://www.telerik.com/community/forums/aspnet-mvc/menu.aspx 
Tags
General Discussions
Asked by
Marc Gibian
Top achievements
Rank 1
Answers by
IQworks
Top achievements
Rank 1
Marc Gibian
Top achievements
Rank 1
alice adams
Top achievements
Rank 1
Share this question
or