Closing showModalDialog window

While opening the showModalDialog  window using javascript.It opening another window on close using window.close().To avoid this problem just add  below tags in the aspx page.

<meta tags>
<base target=”_self” />


An attempt was made to load a program with an incorrect format

The error occurs when we are deploying the application in windows 2008 (64 bit) server.In my scenario, my application consist of crystal Report it working on x86 version. So I set option in IIS.
In Application pool–>advanced setting: Enable 32-bit Application:True