Interestingly this error was not caught even by my window.onerror — the reason why I couldn’t see it in the trace when people started complaining about weird click events with chrome. https://code.google.com/p/chromium/issues/detail?id=158989 Workaround: http://stackoverflow.com/questions/13104177/getting-an-error-when-using-jquerys-click-event This will not work if the error is inside a library. Well unless you prototype/inherit the method (if its …
Dear Reader,
On the right hand side menu, please choose technology category if you are interested in technology posts OR find the tag cloud and click on the keyword of your liking and keep reading. In the posts, if you are unable to clearly view any image, click on it to view the image zoomed in.
Thank you for visiting.
-Ketan Thakkar
Microsoft JScript runtime error: Object doesn’t support property or method ‘live’
Have you ever received this error in the console. The client side MVC validation runs into this error quite often. Particularly if you start a new MVC 4 project with latest jQuery. Well latest and greatest is good, but this error is particularly annonying. jQuery migrate is a library that was created to resolve the …
WebAPI JSON serializer and .NET 4.0 Tuple
So, you thought that you would create any type in C# and the default WebAPI serializer will auto-magically deserialize every thing for you? Tuple<int, int, string, string.….…… and you’d go on forever and still the serializer figures out what you meant. Doesn’t happen. Of course an alternative is to use a special type — I’d recommend …
Windows Azure Caching simplified
A lot of material is available on the Windows Azure portal and it is overwhelming at start. I’ve tried to show the information pictorial for a bigger picture. The code samples are available for how to use or consume the cache — I wouldn’t be providing that. For now just understand that provisioning the cache …
WebClient versus HttpClient to consume HTTP requests
I hope to add more from my experience, but here’s a good start on the topic. While in past developers chose to go bare bones with WebRequest and WebResponse class, it is no longer necessary. While you may abstract out the ways to make HTTP calls in your application for loose coupling, following are the options …
Making HTTP Get Request Programmatically downloading multiple files and extracting into Stream and save to Windows Azure Blob Storage
I did this using .NET version 4.5. Please make the REST call more elaborate and memory usage tighter. Use async keyword as the call is an IO. Set up LocalResource storage on Windows Azure (http://msdn.microsoft.com/en-us/library/windowsazure/ee758708.aspx) Make a RESTful GET call to download a bunch of CSV packed into zip (archive as .NET C# libraries call it). …
HTML5 performance tricks — blazing fast applications
Web performance (Desktop, Mobile or Tablet) Network (connectivity and bandwidth) CPU (Hz) — Metric Time to Glass (Amount of time a user takes the action and site is loaded on the glass) Elapsed Page load (When user clicks on link and page loads and CPU is calm/acquiesces) CPU time (How much time used) Idle CPU time (CPU …
Delete all .NET cache for all versions from the server
I always use the batch file (.bat) to perform this operation. 1. Open notepad and paste the following. @ECHO OFF ECHO Performing IIS Reset IISRESET ECHO Deleting Cache Del /F /Q /S %LOCALAPPDATA%\Microsoft\WebsiteCache\*.* Del /F /Q /S %LOCALAPPDATA%\Temp\VWDWebCache\*.* Del /F /Q /S “%LOCALAPPDATA%\Microsoft\Team Foundation\3.0\Cache\*.*“ Del /F /Q /S “C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\*.*“ Del /F /Q /S …
Visual Studio stop build while in process
Have you ever had a no shit moment — while building in Visual Studio? Did you have a large solution with tons of projects and you either hit F5 or debug but didn’t intent to? I haven’t found a better way to stop the build, so I do the following — Switch the “Solution Configuration” …
Failed to create an instance of ‘Microsoft.SharePoint.IdentityModel.SPTokenCache, Microsoft.SharePoint.IdentityModel, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’ from configuration.
You get the following error: Failed to create an instance of ‘Microsoft.SharePoint.IdentityModel.SPTokenCache, Microsoft.SharePoint.IdentityModel, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’ from configuration. Stack trace: at Microsoft.IdentityModel.Configuration.CustomTypeElement.Resolve[T](CustomTypeElement customTypeElement, Object[] arguments) at Microsoft.IdentityModel.Configuration.ServiceConfiguration.LoadHandlers(ServiceElement serviceElement) at Microsoft.IdentityModel.Configuration.ServiceConfiguration.LoadConfiguration(ServiceElement element) at Microsoft.IdentityModel.Configuration.ServiceConfiguration..ctor() at Microsoft.IdentityModel.Web.FederatedAuthentication.get_ServiceConfiguration() at Microsoft.IdentityModel.Web.HttpModuleBase.Init(HttpApplication context) at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr …