Transferring from an asp page to ashx

T

T Conti

Howdy:

We replaced an asp page with a ashx/C# implementation. I now want to
put up an asp page that will allow us to transfer to the ashx page. I
thought of using a Response.Redirect, but our architect shot it down
because of the extra call it makes to the client and there are some
automated processes hitting this site. (Who know what they are
doing...). I then attempted an Server.Transfer from the asp page to
the ashx page and I get the following error:
--------------------
Active Server Pages error 'ASP 0221'

Invalid @ Command directive

/query.ashx, line 1

The specified 'webhandler language="c#"
class="<classname>.<classname>.SearchHandler"' option is unknown or
invalid.
----------------------------

I even tried to update IIS to use the .Net framework to process asp
pages. That generates the following error:

-----------------------------
This type of page is not served.
Description: The type of page you have requested is not served because
it has been explicitly forbidden. The extension '.asp' may be
incorrect. Please review the URL below and make sure that it is
spelled correctly.

Requested Url: /query.asp
----------------------------

Anyone have any experience in doing a server side redirect from asp to
aspx?

Thanks,
Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top