Problem with MVCToolkithttp://forums.asp.net/t/1192523.aspx/1?Problem+with+MVCToolkitMon, 01 Dec 2008 11:03:59 -050011925232051697http://forums.asp.net/p/1192523/2051697.aspx/1?Problem+with+MVCToolkitProblem with MVCToolkit <p>First of all congrats on getting this released. Must have been a lot of work, and panicked work over the weekend I guess.</p> <p>Now for the problem. I have the VS2008 Pro RTM trial installed on Vista Ultimate. The only add-on installed is Resharper.</p> <p>I created a new MVC Web Application (also tried it with an MVC Web Application and Test) and added a reference to the MVCToolkit dll. I opened the Index.aspx file, and typed &lt;%= Html. and the dropdown only had ActionLink, Encode, and ViewContext options.</p> <p>I tried adding a reference to the MVCToolkit project, and rebuilding the solution, but it didn't make a difference.</p> <p>I have also tried using HtmlHelper instead of Html, and still didn't make a difference.</p> <p>I'm assuming it's something I've done wrong, but can't figure out what it is. Anyone have any ideas?<br> &nbsp;</p> 2007-12-10T22:37:42-05:002051791http://forums.asp.net/p/1192523/2051791.aspx/1?Re+Problem+with+MVCToolkitRe: Problem with MVCToolkit <p>&nbsp;ctrl &#43; shift &#43; b (rebuild) will give you some intellisense :)<br> </p> 2007-12-11T00:32:23-05:002051811http://forums.asp.net/p/1192523/2051811.aspx/1?Re+Problem+with+MVCToolkitRe: Problem with MVCToolkit <p>Thanks for the suggestion, but rebuilding doesn't help.<br> </p> 2007-12-11T00:49:28-05:002052100http://forums.asp.net/p/1192523/2052100.aspx/1?Re+Problem+with+MVCToolkitRe: Problem with MVCToolkit <p>I had the same problem as you till I rebuilt.<br> &nbsp;can you see the toolkit HtmlHelper in the code behind after &quot;using System.Web.Mvc&quot;?</p> <p>tried restarting VS?</p> <p><br> <br> &nbsp;</p> 2007-12-11T05:23:16-05:002052710http://forums.asp.net/p/1192523/2052710.aspx/1?Re+Problem+with+MVCToolkitRe: Problem with MVCToolkit <p>&nbsp;In the code behind I do see the HtmlHelper class. I tried creating a new method, and manually creating an instance of HtmlHelper</p> <p>&nbsp;</p> <p>HtmlHelper hh = new HtmlHelper(ViewContext);</p> <p>&nbsp;</p> <p>But the hh object, still isn't picking up any of the extensions (and a restart didn't help, will try a full system restart tonight).&nbsp;</p> 2007-12-11T11:31:37-05:002053527http://forums.asp.net/p/1192523/2053527.aspx/1?Re+Problem+with+MVCToolkitRe: Problem with MVCToolkit <p>&nbsp;Can you check your web.config and make sure that the namespace &quot;System.Web.Mvc&quot; is added under system.web/namespaces?<br> </p> 2007-12-11T17:47:44-05:002053938http://forums.asp.net/p/1192523/2053938.aspx/1?Re+Problem+with+MVCToolkitRe: Problem with MVCToolkit <p>&nbsp;Interesting... my web.config file doesn't have a system.web/namespaces node. I do have system.web/pages/namespaces and it has add entries for System.Web.Mvc and System.Linq</p> <p>&nbsp;Should I move namespaces up a level?<br> &nbsp;</p> 2007-12-11T21:51:57-05:002053980http://forums.asp.net/p/1192523/2053980.aspx/1?Re+Problem+with+MVCToolkitRe: Problem with MVCToolkit <p>&nbsp;Oops - that's what i meant :). So you have this in your App and when even after you build it doesn't show?<br> </p> 2007-12-11T22:24:53-05:002054001http://forums.asp.net/p/1192523/2054001.aspx/1?Re+Problem+with+MVCToolkitRe: Problem with MVCToolkit <p>That's correct Rob. It looks as if VS isn't seeing the extension methods for some reason. When I look in the Object Browser, I see them all there (for instance, in the TextBoxExtensions class, I'm seeing all 21 methods there).</p> <p>I just remembered today that I do have something else installed, the Entity Framework Beta 3, and the Entity Framework Tools (downloaded and installed Dec 6th), might that be connected?&nbsp;</p> 2007-12-11T22:46:03-05:002054094http://forums.asp.net/p/1192523/2054094.aspx/1?Re+Problem+with+MVCToolkitRe: Problem with MVCToolkit <p>&nbsp;Problem solved, I restarted the system with no result.</p> <p>Uninstalled all VS addins (turns out I also had Resharper 3.0.3 installed, and think that is likely the culprit since I was using it's intellisense, and it doesn't support the new features yet)</p> <p>Re-installed the ASP.Net futures, and now I'm good to go.&nbsp;</p> <p>&nbsp;</p> <p>So thanks guys for your help, but this one was my fault (haven't had a chance to do development in 2K8 since I installed the RTM)</p> <p>&nbsp;</p> <p>Nigel&nbsp;</p> 2007-12-12T00:30:30-05:002113364http://forums.asp.net/p/1192523/2113364.aspx/1?Re+Problem+with+MVCToolkitRe: Problem with MVCToolkit <p>Hi</p> <p>I have a similar problem. I have just installed VS2008 Team System Development Edition. I then installed ASPNETExt.exe.</p> <p>&nbsp;After starting VS2008 I attempt to do the following:</p> <p>&nbsp;&lt;%@ Page Language=&quot;C#&quot; MasterPageFile=&quot;~/Views/Shared/Site.Master&quot; AutoEventWireup=&quot;true&quot; CodeBehind=&quot;Login.aspx.cs&quot; Inherits=&quot;Costar.Focus.Web.Portal.Views.Security.Login&quot; Title=&quot;Untitled Page&quot; %&gt;<br> &lt;asp:Content ID=&quot;Content1&quot; ContentPlaceHolderID=&quot;MainContentPlaceHolder&quot; runat=&quot;server&quot;&gt;<br> &nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp; &lt;h2&gt;Login&lt;/h2&gt;<br> &nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp; &lt;% if (ViewData[&quot;ErrorMessage&quot;] != null) <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { %&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;%= ViewData[&quot;ErrorMessage&quot;] %&gt;<br> &nbsp;&nbsp;&nbsp; &lt;% } %&gt;<br> &nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp; &lt;% using (Html.Form(&quot;Authenticate&quot;, &quot;Security&quot;))<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { %&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Username: &lt;%= Html.TextBox(&quot;username&quot;) %&gt;&lt;br /&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Password: &lt;%= Html.Password(&quot;password&quot;) %&gt;&lt;br /&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Remember Me: &lt;input type=&quot;checkbox&quot; id=&quot;rememberMe&quot; name=&quot;rememberMe&quot; checked=&quot;checked&quot; value=&quot;checked&quot; /&gt;&lt;br /&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;%= Html.SubmitButton() %&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;%= Html.Hidden(&quot;returnUrl&quot;, &quot;/&quot;) %&gt;<br> &nbsp;&nbsp;&nbsp; &lt;% } %&gt;<br> &nbsp;&nbsp;&nbsp; <br> &lt;/asp:Content&gt;<br> </p> <p>When I run it however I get this result:&nbsp; CS1061: 'System.Web.Mvc.HtmlHelper' does not contain a definition for 'Form' and no extension method 'Form' accepting a first argument of type 'System.Web.Mvc.HtmlHelper' could be found (are you missing a using directive or an assembly reference?)<br> </p> <p>&nbsp;In the object browser I can see the HtmlHelper object but it does not contain any functions for Form, TextBox, or Password. Here is the url I used to download ASPNETExt.exe from:</p> <p>http://www.microsoft.com/downloads/details.aspx?FamilyId=A9C6BC06-B894-4B11-8300-35BD2F8FC908&amp;displaylang=en</p> <p>&nbsp;Any help would be appreciated.<br> </p> 2008-01-16T16:59:15-05:002123242http://forums.asp.net/p/1192523/2123242.aspx/1?Re+Problem+with+MVCToolkitRe: Problem with MVCToolkit <p>&nbsp;Hi</p> <p>I have the same problem of dnoxs.</p> <p>How can we fix it?Any ideas?</p> <p>&nbsp;Thank you!<br> &nbsp;</p> <p>&nbsp;</p> 2008-01-21T21:34:29-05:002776888http://forums.asp.net/p/1192523/2776888.aspx/1?Re+Problem+with+MVCToolkitRe: Problem with MVCToolkit <p>I have&nbsp;the&nbsp;same problem.&nbsp;When i revise de web.config file, you must have added the System.Web.Mvc.Html namespace.</p> <p>&nbsp;&nbsp;&nbsp;&lt;namespaces&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&lt;add namespace=&quot;System.Web.Mvc&quot;/&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&lt;add namespace=&quot;System.Web.Mvc.Ajax&quot;/&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&lt;add namespace=&quot;System.Web.Mvc.Html&quot;/&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&lt;add namespace=&quot;System.Web.Routing&quot;/&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&lt;add namespace=&quot;System.Linq&quot;/&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&lt;add namespace=&quot;System.Collections.Generic&quot;/&gt;<br> &nbsp;&nbsp;&nbsp;&lt;/namespaces&gt;<br> </p> 2008-12-01T11:03:59-05:00