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: , ,

Asp.net | WPF

Seo Friendly URL Redirection On Asp.net Web Forms

by Admin 21. September 2013 14:06
On Asp.net 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 www.example.com/page.aspx?id=about  it will look like www.example.com/page/about . 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 www.example.com/page.aspx?id=about   The code would be: routes.MapPageRoute( "Page-Route", "Pages/{page}", "~/page.aspx" );The New Seo Friendly URL looks like www.example.com/pages/about To access the attached query string string pg = Page.RouteData.Values["page"] as string; Hope this will solve one of the biggest headache for Asp.net web forms . Happy Coding !!!!  

Tags: , ,

Asp.net | Url redirection

Brit Colony, Bhubaneswar,India +91 94384 80191 info@ intelliwins.com

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.

Newsletter

Enter your email to join our mailing list