.NET security app containing classic ASP pages

M

mwhite

Hi, I am adding a security layer to a company intranet, which is
written in classic ASP. The company have said they do not want to pay
for re-writing the site, and I have managed to get Forms authentication
working by changing the .htm pages to a .aspx extension. However, the
site includes a sitemap, admin section and quiz that are created using
..asp pages. When I click the link to these pages, the site returns an
error:

The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot
be displayed.

I assume this is because it is trying to load an .asp page, is there
any way around this without having to re-write the pages?

Thanks in advance,

Mat
 
N

Nicholas Paldino [.NET/C# MVP]

Mat,

If I remember correctly, one of the original goals of ASP.NET was to be
compatable with code written in ASP.

You should be able to convert easily, and then address any specific
issues that crop up.

Things you should look out for are the use of COM components in pages.
If you do, then you will want to set your AspCompat attribute on the page
directive to true.

Hope this helps.
 
M

mwhite

Thanks, it doesn't use any COM components, however the site just doesnt
recognise the .asp page when you click a link to browse to it. It
brings up the error 'this type of resource cannot be served.'
 

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