Breaking news from around the world
Get the Bing + MSN extension
Now Available in Community - MBAS 2019 Presentation Videos
Catch the most popular sessions on demand and learn how Dynamics 365, Power BI, PowerApps, Microsoft Flow, and Excel are powering major transformations around the globe. | View Gallery
2019 release wave 2 Discover the latest updates to Dynamics 365Release overview guides and videos Release Plan | Early Access Availability
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
While starting with MVC one of the most basic error encountered is the one where using reference is missed for HTMLHelper class.
Below is the example of typical error.
System.Web.Mvc.HtmlHelper has no applicable method named ‘TextBox’ but appears to have an extension method by that name. Extension methods cannot be dynamically dispatched. Consider casting the dynamic arguments or calling the extension method without the extension method syntax.
To resolve this error you need to make sure you have added the namespace reference for “System.Web.Mvc.Html” to your files.
Where all that name space reference should be:
1. Web.Config of your Area. “<add namespace=”System.Web.Mvc.Html” />”
2. View Page. “<%@ Import Namespace=”System.Web.Mvc.Html” %>”
3. Controller. “using System.Web.Mvc.Html;”
The post MVC HTMLHelper Error appeared first on Abhinav Ranjan.
Business Applications communities