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):
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?
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?
<%
Dim Aktion,lista
Aktion = Request.QueryString("action")
lista = Request.QueryString("list")
Set Conn=Server.Createobject("ADODB.Connection")
Conn.Open "Acon"
Set rs=Server.CreateObject("ADODB.Recordset")
SQL="Select * From acon order by Datum DESC"
rs.Open SQL, Conn, 3,3
%>
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.
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...
None
0 Points
3 Posts
Virtual directory and asp-script problem
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">
<system.webServer>
<directoryBrowse enabled="true" />
<handlers>
<add name="ASP" path="*.asp" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\System32\inetsrv\asp.dll" resourceType="Unspecified" preCondition="bitness64" />
</handlers>
<defaultDocument>
<files>
<add value="index.asp" />
</files>
</defaultDocument>
</system.webServer>
</location>
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?
All-Star
35218 Points
9955 Posts
Moderator
Re: Virtual directory and asp-script problem
Sep 27, 2013 08:16 AM|bbcompent1|LINK
You have to enable asp in IIS or it will not render those pages.
http://www.iis.net/learn/application-frameworks/running-classic-asp-applications-on-iis-7-and-iis-8/classic-asp-not-installed-by-default-on-iis
None
0 Points
3 Posts
Re: Virtual directory and asp-script problem
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?
<%
Dim Aktion,lista
Aktion = Request.QueryString("action")
lista = Request.QueryString("list")
'Function RandomNumber(IntHighestNumber)
'Randomize
'RandomNumber = Int(intHighestNumber * Rnd) + 1
'End Function
Dim Conn,rs,sql,strconnect
Set Conn=Server.Createobject("ADODB.Connection")
Conn.Open "Acon"
Set rs=Server.CreateObject("ADODB.Recordset")
SQL="Select * From acon order by Datum DESC"
rs.Open SQL, Conn, 3,3
%>
All-Star
35218 Points
9955 Posts
Moderator
Re: Virtual directory and asp-script problem
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.
None
0 Points
3 Posts
Re: Virtual directory and asp-script problem
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...
All-Star
35218 Points
9955 Posts
Moderator
Re: Virtual directory and asp-script problem
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.