Intelliwins Blog

Anything you wanna know about?

High CPU Utilization When Running Wpf(Windows Presentation Foundation) Application.

by Admin 23. September 2013 13:57
Symptoms: While running WPF application on .net framework 3.0 or 3.5 you sometimes receive a File exception format exception error or Argument out of range exception. Sometimes a file Wpf_fontcache.exe with almost 100% CPU utilization while looking at task manager.  Cause: Outdated Video driver which overwrites font cache stored in memory.  Solution:   Close All WPF based Application Stop Windows Presentation Foundation Font Cache Service from Control Panel Services.msc. Delete Fontcache dat file (Note: It is located in %windir%\ServiceProfiles\LocalService\AppData\Local folder in Windows Vista and Win 7 by default , %systemdrive%\Documents and Settings\LocalService\Local Settings\Application Data folder in Windows XP and in earlier versions of Windows. ) This is only for the temporary solution. For permanent solution download and update the latest video driver.

Tags: , , | WPF

Seo Friendly URL Redirection On Web Forms

by Admin 21. September 2013 14:06
On 3.5 sp1 onward microsoft has given facility for URL Routing . You just have to include few codes into Global.asax. After URL Routing Your URL Will look more human and search engine friendly. If you URL is  it will look like . Extension less and SEO Friendly . For that we have to add Global.asax into our project . Then import System.Web.Routing   <%@ Import Namespace="System.Web.Routing" %>  Then we have to write code for URL redirection inside Global.asax.   void registerroute(RouteCollection routes) { routes.MapPageRoute( "Home-Route", "Home", "~/Default.aspx" ); }  This is for Static Pages with out query strings. For Webpages with query string like   The code would be: routes.MapPageRoute( "Page-Route", "Pages/{page}", "~/page.aspx" );The New Seo Friendly URL looks like To access the attached query string string pg = Page.RouteData.Values["page"] as string; Hope this will solve one of the biggest headache for web forms . Happy Coding !!!!  

Tags: , , | Url redirection

Brit Colony, Bhubaneswar,India +91 94384 80191 info@

About Us

Intelliwins mission is to alter the dynamics of the software industry by providing trusted, supportive and quality software development servies to clients that view our partnership as a strategic driver for their success.


Enter your email to join our mailing list