Skip to main content

Posts

Showing posts from April, 2014

MVC 4 Web Api IIS7.5 HTTP 404 Page Not Found error

I have a MVC 4 Empty Web Api application. It works perfectly well when I tested it using the VS 2013 debugging dev server. But I now deployed it to IIS 7.5 and I am getting a HTTP 404 error when trying to access the application. Solution For this : I was struggling with this as well. Fortunately, Steve Michelotti documented a solution that worked for me here At the end of the day, I enabled all verbs (verb="*") to the ExtensionlessUrlHandler-Integrated-4.0 handler in my web config. Here is updated web.config <system.webServer>     <validation validateIntegratedModeConfiguration="false" />     <modules runAllManagedModulesForAllRequests="true" />         <handlers>             <remove name="ExtensionlessUrlHandler-Integrated-4.0" />             <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler&
Error : IIS 7 throws “duplicate section defined” error for web.config on one server when hosted but it was working on local machine <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> Solution : 1. Switch to another system who supports .NET 3.5. 2. Ask your current system if they supports Microsoft AJAX for .NET 2.0 http://www.microsoft.com/downloads/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&displaylang=en If they do, you may consider downgrade your solution to .NET 2.0 instead of 3.5. Hope this helps. 3) Change Application pool of IIS server to 2.0 , website works fine . 

TreeView Control With Custom Icons in ASP.Net Using sitemap

TreeView Control With Custom Icons in ASP.Net Using sitemap Previous post   Load data dynamically on page scroll using jQuery, AJAX, and ASP.NET Introduction    The TreeView control is capable of many possible appearances, providing flexible image customization as well as properties that specify custom user interface (UI) options. We can use images with the TreeView control to represent nodes, connecting lines, and the expand and collapse icons and can also use a predefined set of images from the ImageSet property, or use custom images by setting the individual image properties for each of its nodes.   Background   My Website is also hierarchical in structure so I knew that a TreeView control was required. The problem was, how to show multiple icons in the treeview, where each icon represents a specific type. The icons must also show a tooltip when hovered over to display the full name of the type using the Sitemap with Sitemap Data Source control .   SiteMap Me