Link to home
Start Free TrialLog in
Avatar of Srinivas Mantha
Srinivas ManthaFlag for India

asked on

HTTP 500 Internal Server Error in local host (IIS 7) of windows 7

I have been using Windows XP professional with local host (IIS 5.1) for testing web applications mostly coded in traditional ASP.  The ASP applications were working well in both local host of Windows XP Professional as well as in the actual web server in the internet.
      Now I procured new system with windows 7 that has IIS 7 to facilitate local web server activity.  I configured my web folder in the new system as per the instructions.  The problem is traditional html applications are working well but not those coded in the traditional ASP.  When the ASP applications are opened, it is giving HTTP 500 internal server error.  The same problem is occurring in all the ASP applications.  
Avatar of smartali89
smartali89
Flag of Pakistan image

First you will need to enable a option in asp module which sends errors to browser.

Goto IIS > select ASP Module and you will see configuration as show in the image.

This will enable you to see what the actual problem is.
asp.png
Avatar of crshekharam
by default running of ASP scripts will be enabled in XP while creating web folder.  But for windows 7 and IIS 7, you need to explicitily mention to run ASP scripts
Avatar of Srinivas Mantha

ASKER

With regard to SMartali's statement, I checked the configuration.  I set "send errors to browser" to be true.  Still it is giving HTTP 500 internal server error, with indicating where the error is.
Is the ASP scripting is erroneous, why should everything be OK and working in the regular web server on the internet
With regard to CRShekharan's statement, where mention to run ASP scripts. Is it in IIS manager.
Make sure you have enabled Asp from Program Features, see the attached image for reference.

If Asp is enabled, try to run a simple asp file for example:

<% Response.Write("Asp is working" %>

Open in new window

asp.jpg
Yes, its in IIS Manager, Web Server Extensions
I tested the test.asp file.  It is working but not other asp files.  Now I understood the problem.  My applications in ASP are critically dependent on MS Access databases.  In window XP professional (local host) as well as internet web server, I defined the MS access database connections through DSN (ODBC and system DSN). In window 7, it is not permitting to define system DSN for database other than SQL server.  As you all konw, window XP Professional permits DSN connections to various databases e.g. MS access, Fox pro, oracle, SQL server etc.  Is there any way to define system DSN connection to MS access in window 7.  That would solve the problem
Install MS Access on your system, this will install .mdb drive.

Can you specify which mdb driver you are using on winxp ?
I have installed MS office 2000.  I also have MS office 2007 student version (that will not include MS access) installed on the new windows 7 system.
The driver that am using with window XP Professional is
Microsoft access driver version 4.00.6304.00
Microsoftcoroporation
File ODBCJT32.DLL
I physically copied the above dll file into system32 folder in the new windows 7 and restarted.
Still it is not giving me an option of selecting MS Access database for DSN. Only driver for SQL server is shown
just copying won't work.. open up cmd.. goto system32 dir.. and then run this command

regsvr32 "odbcjt32.dll"

try installing ms access 2007
I tried the command instructions.  it says
"The module odbcjt32.dll was loaded by the entry-point DIIRegisterServer was not found.
Make sure that odbcjt32.dll  is a valid dll or OCX file and then try again"
I have licensed student version of MS office (word, PPT, excel) that came along with the DELL laptop.
Intalling MS access 2007 may not be possible.
make sure you have moved this file to system32 folder. and when you run this command make sure you are in system32 directory,

or directly use this command

regsvr32 c:\windows\system32\odbcjt32.dll
ASKER CERTIFIED SOLUTION
Avatar of Srinivas Mantha
Srinivas Mantha
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial