Fixes/Workarounds
Could not find any resources appropriate for the specified culture or the neutral
0Could not find any resources appropriate for the specified culture or the neutral culture. Make sure “AjaxControlToolkit.Properties.Resources.resources” was correctly embedded or linked into assembly “AjaxControlToolkit” at compile time, or that all the satellite assemblies required are loadable and fully signed.
Solution : Drag a new toolkitscriptmanager on to the form and use any new ajax control on that page. This will work.
Request format is unrecognized for URL unexpectedly ending in …
1GET and POST are disabled by default in ASP.NET 2.0 and greater , also mentioned here : KB article
so add the following to web.config file
<configuration> <system.web> <webServices> <protocols> <add name="HttpGet"/> <add name="HttpPost"/> </protocols> </webServices> </system.web> </configuration>
The view at ‘~/Views/Home/Index.aspx’ must derive from ViewPage, ViewPage, ViewUserControl, or ViewUserControl.
9The view at ‘~/Views/Home/Index.aspx’ must derive from ViewPage, ViewPage<TViewData>, ViewUserControl, or ViewUserControl<TViewData>.
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.InvalidOperationException: The view at ‘~/Views/Home/Index.aspx’ must derive from ViewPage, ViewPage<TViewData>, ViewUserControl, or ViewUserControl<TViewData>.
you will get a smiler exception if you have
Created a project using mvc 1.0 and then removed the reference mvc 1 and added mvc 2 or greater
in web.config file update the version from the line
<add assembly=”System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35″/>
TO
<add assembly=”System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35″/>
other sections of web.config like
<add verb=”*” path=”*.mvc” validate=”false” type=”System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35″/>
<add name=”MvcHttpHandler” preCondition=”integratedMode” verb=”*” path=”*.mvc” type=”System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35″/>
also do not forget to update the project file with correct version of mvc you are using
Recent Comments