Application Initialization in IIS 7.5 and IIS 8

Why we need Application initialization ?

On first HTTP requests applications both web forms and mvc application requires initialization tasks and "warm up" tasks (Startup processing , generating contents) etc.

Application initialization proactively loads and initialize all the dependencies like database connection , compilation of code and loading of assemblies etc...

Benefits of Application initialization :

  • its decreases the first response time by preloading the application
  • Can set a static page to increase the user experience while application is initializing
  • Provides overlapped process recycling 

Posted in , , , | Leave a comment

ASP.NET Precompilation for Deployment

Benefits of Precompilation in ASP.NET:

  • Initial response of application will be faster for users, because code and files will not have to be compiled at the first time any user requested.
  • We can ensure error free application at compile time
  • From security concern people who have access to production server cannot see the source code and cannot make the changes(if you have chose the option of not updatable at the time of publish).
  • Large websites must use this precompilation.

Posted in , , | Leave a comment

Calculate the Execution time of a Function in C# , Razor View, Aspx View

My previous article was on the how to do the performance profiling with Visual Studio. Using Visual Studio analyze tool we can profile a function , dynamic link library, project and solution.
Link of  - Performance Profiling with Visual Studio

Requirements :

  1. However if we want to see execution for a particular function , you definitely don't want to run the profiler for that.Although profiler is more sophisticated way.
  2. if you have any loop on your razor / aspx view of application ,through profile it wolld be difficult to calculate the time of that loop.

Posted in , , | Leave a comment

Performance Profiling in Visual Studio

Hi Guys after a long time i am writing this article ( Feeling very poor [GARIB] ), Jokes apart In this article i will describe how to do the performance profiling using Visual Studio.
There are many third party tools which do the Code Profiling , Memory profiling and Performance Profiling for us these are paid tools but they are good as well :
  • ANTS
  • Just Trace
  • Your KIT 
  • .NET Memory Profiler
  • Eqatec
  • Slim Tune Profiler
  • Dot Trace

As i said am feeling poor, i will describe -"How to do Performance Profiling using Visual Studio inbuilt performance analysis tools ?"

Posted in , , | Leave a comment

IE-10 right align text input issue

Remove Clear Icon - "X" from input fields of Internet Explorer

Recently i added style text-align to right of an input :
<input type="text" style="text-align: right;">

Issue :
But when someone types number in that then the last part of the text inside the textbox isn't displayed completely in Internet Explorer 10 as soon as the textbox loses focus.It because of its "Clear Icon - x".
Even they have fixed this in their latest version of Internet Explorere - 11.

Posted in | Leave a comment

Hack proof your ASP.NET applications from Sensitive Data Exposure and Information Leakage


This is Part 4 of my series Hack proof your application.In this article ,I will describe How we sometimes unintentionally expose some sensitive information or leak some information to a hacker , who used that information to hack us. Keeping These terms separate "Sensitive Data exposure" which can directly harm to an individual or an organization, "Information leakage" are which helps attacker to perform malicious activities.Both terms are correlated and we can say Information leakage can contain Sensitive data exposure and vice versa.


You can read previous article of this series from below links :

Posted in , , | 3 Comments
Powered by Blogger.

Swedish Greys - a WordPress theme from Nordic Themepark . Managed by Sarvesh Kushwaha .