How to display “Site under maintenance” ?

App_offline.htm page allows you to stop all the incoming request to IIS server. If this page is in root of the web application, application get shutdown unload the application from server.

All the dynamic pages request send the content of app_offline.htm page back, if it presents in application root directory.

This page you could put when you are uploading a new version which take time to upload and configure it, else end user will see errors on your site.

Once you delete the page from root, new incoming request load the application and app domain, and respond the actual user data.

How to speed up web application startup

In a application we are doing some files reading or database query on application start, i.e. we are doing some custom work in global.asax at Application_Start method.

So whenever any page requested by any user, loading the application in memory will take time. Users have to wait till respective page load. This will show that application is slow, and users can’t give good feedback about site.

To overcome this start-up issue for web application hosted on IIS7.5, enable a “AutoStart” property in application pool.

This auto start feature allow us to automatically boot up the web application and execute certain amout of critical code and load items in-memory cache.

We can enable it by opening the IIS 7.5 applicationHost.config file (@C:\Windows\System32\inetsrv\config\applicationHost.config) and by adding a startMode=”AlwaysRunning” attribute to the <applicationPools> entry of our web application:

<add name=”MySite” managedRuntimeVersion=”v4.0″ startMode=”AlwaysRunning” />

Default Ports

A list of default ports which are widely used:

FTP (File Transfer Protocol) 21
SMTP (Simple Mail Transfer Protocol) 25
HTTP (Hypertext Transfer Protocol) 80 (IIS)/8080 (Apache)
IMAP/IMAPS (Internet Message Access Protocol) 143/993
MSSQL (Microsoft SQL Server) 1433/1434
MYSQL 3306
VNC (Virtual Network Computing) 5800/5900
RDP (Remote Desktop Protocol) 3389

Need to know all click here

Top ASP.Net MVC plugin MVC is the powerful framework to building a web application. To reduce committed time in development, better UI which support all browser with valid dimensions so user can view and watch the content properly.

For contents we have to use some of the components like grid with all features like sort, filter, text editor, popup window and any other. Best suitability in our app we have to do googling for that and check they are compatible with our app or not. If compatible but they break any other working things.

Based on these scenarios we can use a TELERIK MVC framework in our application. Telerik is the best framework to play with these components and customized in our web according theme.

Telerik has all the components which we need in a app. It have 2 versions available, one is open source and other one is payable.

See more about Telerik and find a demo here

One thing we have to know about after integrating with our app. If we are using any Jquery in our web then might be telerik or our existing jquery plugin stop. This is due to multiple jquery versions in our app. To resolve this issue keep the Telerik version which support our existing JQuery or disable the Telerik Jquery use while registering the telerik components.

Html.Telerik().ScriptRegistrar() replace with Html.Telerik().ScriptRegistrar().Jquery(false), it will ignore the jquery load from telerik contents.

How to enable remote access in sql server 2005

Installation Steps of SQL Server with Remote connectivity:

Microsoft SQL Server 2005 Express Edition is a free, easy-to-use, lightweight version of SQL Server 2005. It is fast and easy to learn, allowing you to quickly develop and deploy dynamic data-driven applications.

1. Download SQL SERVER Express Edition Service Pack 2:

2. Download SQL Server Management Studio Express Service Pack 2:

3. Install #1 downloaded file using default options. Use MixMode Authentication and choose custom password, default user name is

How to Signed the Jar/Exe

To signed the jar or exe of your application you need to purchase Signing Certificates from any of providers. Signing Certificates are issued by Internet organizations called Certificate Authority. There are many such organizations, i.e. : verisign, comodo.

These providers send you pvk and spc file for signing files. You can use SignTool, SignCode and JarSigner utility to signed data.

Steps for Signed :

Convert the pvk and spc files to pfx format.

pvk2pfx -pvk lmenaria.pvk -pi [Password1] -spc lmenaria.spc -pfx lmenaria.pfx -po [Password2] -f

1. Now Signed the Exe file using SignTool.exe:

signtool.exe sign /f lmenaria.pfx /p [Password] /v /t MyApplication.exe

2. Now Verify the Exe with ChkTrust.exe:

chktrust.exe /q /v MyApplication.exe

If you want to Sign the jar then you need to use JarSigner Utility:

Sigining : jarsigner -storetype pkcs12 -keystore lmenaria.pfx -storepass []Password] MyApplication.jar