Last post Oct 01, 2013 10:02 AM by bbcompent1
Sep 27, 2013 08:10 AM|hgel73|LINK
I have an asp-script in a folder (below a root EPiServer folder). I have created a virtual directory in IIS (7.5) pointing to the (child) folder and I'm having some problems getting the script to run. I have added the following to the web.config (in the
child map - mychildfolder - to my EPiServer solution map):
<location path="mychildfolder" inheritInChildApplications="false">
<directoryBrowse enabled="true" />
<add name="ASP" path="*.asp" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\System32\inetsrv\asp.dll" resourceType="Unspecified" preCondition="bitness64" />
<add value="index.asp" />
When I try to run the script I get 403 access problems... and the index.asp file doesn't run - I get returned to my default Page not found. The IIS_IUSER is added to the directory and has read rights. Anyone with an idea of what the problem could be?
Sep 27, 2013 08:16 AM|bbcompent1|LINK
You have to enable asp in IIS or it will not render those pages.
Sep 30, 2013 10:54 AM|hgel73|LINK
Thanks! I followed the instructions and managed to get it to work... kind of :) One of the scripts I have is using a database (mdb) and it seems like there is a problem with the "database" part of the script (same script is working on another server - but
I need to move it)... It's a local database... which I have moved as well of course. When I remove the following code from the page it's working... otherwise its not (I get 500 error) Any ideas on why and what I can do?
Aktion = Request.QueryString("action")
lista = Request.QueryString("list")
'RandomNumber = Int(intHighestNumber * Rnd) + 1
SQL="Select * From acon order by Datum DESC"
rs.Open SQL, Conn, 3,3
Sep 30, 2013 10:57 AM|bbcompent1|LINK
Unfortunately, you've gone beyond the scope of this forum. We can advise you on how to get the server configured however debugging your classic ASP Vbscript is beyond the extent of this forum. I would suggest for that part post a message in a forum that
covers classic ASP like bytes.com or stackoverflow.com.
Oct 01, 2013 02:27 AM|hgel73|LINK
Okey, I didn't so much mean to get help with the script (It's working alright - when it's working)... It's just weird that the page/script works on one server and not on the other (the new one). I wonder if there could be some kind of setting in IIS preventing
it from working...
Oct 01, 2013 10:02 AM|bbcompent1|LINK
If it does any kind of server side includes, you have to turn that stuff on in IIS.