Wednesday, October 26, 2011

Looking to add Free Analog Web Clock to web sites

Looking to add free clocks to web sites ??
Here you go, 
This is for your quick reference , It seems to be a good link where you can get the several types
of clocks with JS code available. All you need to do is select the region , model , if any customization needed, select it generate the javascript code and use this code in your html pages if at all you are looking to display clocks..
Have a glance this link..




Thanks,
Ravi



Monday, October 24, 2011

404.2 The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server

All,
Recently we faced one error (404.2 The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server) while accessing an application on 2008 R server (IIS 7.0). Our application is in .net framework 4.0. 
When I had seen about this error initially what ISAPI and CGI, i could not recall immediately. 
So just to give brief on this,
ISAPI : Internet Server Application Programming Interface.           
CGI    : Common Gateway Interface.

To avoid this problem, below steps were taken place. Let see it may helpful for you.
a) Go to inetmgr, (IIS)
b) Clicked on the server.
c) Double click “ISAPI and CGI Restrictions”
e) Right click of ASP.NET v4.0 (which is available from framework64 bit) -> and made it allowed.  
 f) iisreset (run  -> iisreset  )

After performing above steps, I could able to access my application with out issues.
Hope it may helpful .



Thanks,
Ravi

BadImageFormatException in 64 bit windows

All, 
Recently we were trying to move some of our dot net applications from one production server which is in 2003 R2 platform with 32 bit system to 2008 R2 platform with 64 bit system.

We just moved the application .net components / binaries to new server (which is nothing but 2008 R2 + 64 bit system) and as this application's back end is Oracle data base . We installed the Oracle 11g client (64 bit) and created the application pool and necessary virtual directory and pointed to application at IIS level. When we ran the application we are getting errors as 'BadImageFormatException ..etc' related. After couple of hours of analysis and google search, we realized it could be because of bit versions conflicts, as application binaries in 32 bit format, application containing oracle client dll of 32 bit and target system is 64 bit and newly installed oracle client is 64 bit.  

And we wanted to have total application in 64 bit format only, so below steps we have performed and able to load the application successfully.

a) Open the application , deleted the reference to existed oracle client dll.
b)  Refereed to newly installed oracle client dll which is of 64 bit version (this dll can be get it from GAC).
c) Now we have built the application in 64 bit mode. (This setting can be seen from visual studio, right click of project -> Project Properites -> Build Tab -> General Section -> here you go, option to choose the plat form, Platfrom target: selected to x64)
d) And after building the application, we published the project. It has given us fresh binaries of 64 bit compatible.

So we moved this binaries to new test server : Here we did as
(system is 2008 R2, 64 bit, IIS 7.0)
a) created application pool, selected associated framework with classic mode.
b) Created virtual directory, pointed to application pool which is created in above step.
c) mapped the application binaries which newly created.
d) did the iisreset (run -> cmd -> iisreset )

Thats it, We access the application with out issues.  Hope it may works for you ...


Thanks,
Ravi
'Whether article is small or big, nothing wrong in sharing, definitely every post may helpful to some one some where.....'



Unable to view the PDF files through web browser

Hi All,
I came across this problem where when we tried to open Pdf files via some links, which do open the Pdf files through browsers. We kept receiving 'The Adobe Acrobat/Reader that is running cannot be used to view Pdf files in a web browser. Please exit Adobe Acrobat/Reader and try again' . Finally we got some solution which worked for us, So I would like to share the same which may helpful to some one who needs this.


Solution is :
a) Please open the Adobe Reader.
b) Click on Edit on the toolbar.
c) Select Internet in the list of features on the left-side of the Preferences window.
d) Uncheck Display PDF in browser. 
e) Close the adobe reader. 


And now try to access the Pdf file again . Hope it will work.




Thanks,
Ravi