Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script handlers in Win7

Status
Not open for further replies.

VicM

Programmer
Sep 24, 2001
444
US
Folks,
Let me say first, I know nothing about Win7. Basically I'm a programmer of apps and not familiar with all that is necessary to get apps to work on this OS.

My situation is this: A client has a local web based application using IIS backed by an Access DB. All the script files have .asp extensions. In attempting to port the app from a Vista box (where it worked just fine, thank you) to the Win7 box I keep getting errors. Basically a 404.3 Error stating the page being requested cannot be served because of the extension configuration. If the page is a script, add a handler. If the file shoud be downloaded, add a MIME map.

Other suggestions were that ASP.NET wasn't installed. So I went to the Net and installed it. Took forever. And still the app wouldn't launch.

Also the Detailed Error Information was as follows:
Module StaticFileModule
Notification ExecuteRequestHandler
Handler StaticFile
Error Code 0x80070032
Requested URL Physical Path C:\inetput\wwwroot\inventory\default.asp
Logon Method Anonymous
Logon User Anonymous

I tried reading the KB article, When I type inetmgr in the search box I don't get a Program list. But I do see the Handler Mappings icon. Yet the instructions don't explain how to configure a handler, just how to add one.
I'm at a total loss here and any guidance would be greatly appreciated.
Thanks,
Vic
 
which version of ASP.Net is installed on the VISTA box? and on the Windows 7 side?

sounds kinda like a version mismatchor it's not active ...

see:


this might help as well, see the post by ANILR (Anil Ruia) about half way down the page:



Ben
"If it works don't fix it! If it doesn't use a sledgehammer..."
How to ask a question, when posting them to a professional forum.
Only ask questions with yes/no answers if you want "yes" or "no"
 
Ben,
Thanks for your suggestions. I tried to install ASP.NET from the features window but it just said Error occurred; components not installed. When I checked ASP.NET and the other components that got checked did not install.
I looked at Anil Ruia's suggestions, but am still not able to get this to function. I'm at a total loss here.
How does one add a handler for the .asp extensions?
 
I decided to install classic ASP and it installed without error. Now when I try to load my default.asp I get a 500 Internal Server Error.
So I wrote a simple "Hello World" html file with .asp extension and lo & behold it worked!
I then added the first .asp part of my default.asp file to the Hello World file. The code is as follows:
<%
filePath = Server.MapPath("Inventory.mdb")
// Create ADO Connection Component to connect
// with sample database


set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +filePath)

if request.querystring = "" or request.querystring("display") = "active" then

sqlstr = "SELECT * FROM INVENTORY WHERE Inactive = False order by DWG"
elseif request.querystring("display") = "inactive" then
sqlstr = "SELECT * FROM INVENTORY WHERE Inactive = True order by DWG"
else
sqlstr = "SELECT * FROM INVENTORY order by DWG"
end if

set rsInventory = oConn.execute(sqlstr)

%>


Now when I try loading the Hello World file I get the following error:
ADODB.Connection error'800a0e7a'
Provider cannot be found. It may not be properly installed.
/inventory/helloworld.asp, line 8


I thought maybe I needed to add an ODBC for the Provider. When I attempted to do so the only Providers listed were:
SQL Server and
SQL Server Native Client 10.0


So I went looking for Microsoft.Jet.OLEDB.4.0 and in so doing I became confused as to whether this new box is operating at 64-bit or 32-bit. Clearly, the older web based app I'm trying to port to this box was operating under 32-bit hardware.

What do I have to do to add the Provider and ensure that the app is operating in IIS as a 32-bit app?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top