Solved

403;4 Redirect via an ASP file

Posted on 2006-07-20
2
385 Views
Last Modified: 2009-04-21
Here's my question, our server admin setup 403.4 error to run an ASP page in the root of the web directory.  Originally this had a Javascript in it that redirected the user to the given page.  To accomodate those that don't have Javascript on we need it to run an ASP script on the server side.

Problem is, when the 403.4 error throws the redirect.asp page, it doesn't run it like an ASP page.  Instead, it sends the whole thing like it's text or HTML (code brackets and everything) like it's not processing through the ASP engine?  How do we remedy this to make that page render as ASP and not text?

I tested with the following and instead of writing the word Test to a page it send the text verbatim.

<%
Response.Write("Test")
Response.End
%>
0
Comment
Question by:IUFITS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 34

Expert Comment

by:Dave_Dietz
ID: 17150821
Make sure the directory where the file is located is set to allow Scripts.  If the directory has None set for execution priveleges this can happen.

Dave Dietz
0
 
LVL 26

Accepted Solution

by:
DireOrbAnt earned 500 total points
ID: 17151440
Another, very likely possibility is that the server admin picked file vs URL.
The steps are:
Right-click your Web site, Properties, Custom Errors, then select the 403.4 and click Edit.
In there, pick URL (not file) and then type the virtual path to the asp page like:
/MyErrorPages/My403.asp
0

Featured Post

Turn Insights into Action

Communication across every corner of your business is essential to increase the velocity of your application delivery and support pipeline. Automate, standardize, and contextualize your communication processes with xMatters.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question