Click to See Complete Forum and Search --> : asp vs asp.net


Mikey
08-06-2007, 10:06 AM
We recently went from a Windows 2000 Server to a Windows 2003 Server. Apparently 2003 runs ASP.NET where as 2000 ran ASP. Will I have to (or should I) rewrite all the ASP code to .NET code?

Right now I can't get the old code to run. All I did was move the web site from one system to the other. I am getting Active Server Pages error 'ASP 0125' my Include file was not found.

I'm guessing this all has something to do with the IIS?

Can someone head me in the right direction to fix this problem?

Thanks

oomagnumoo
08-06-2007, 12:44 PM
ASP.NET is backwards compatible. The error sound like a compilation error rather than an unsupported feature. I'm not aware of any deprecations of ASP in ASP.NET. It's a nicer IDE environment though I'll tell you that much.

Mikey
08-06-2007, 01:52 PM
So I should still be able to use the Include Statement?

<!-- #Include file="include/calendar.asp" -->

ASP Error 0126 - Include file not found.

It's there, always was....

Detect
08-06-2007, 02:46 PM
try "include virtual" instead of "include file"

Mikey
08-07-2007, 06:32 AM
Great. Thanks. Tried it this morning and it worked.

Why is that? In a nut shell.....

Detect
08-07-2007, 09:17 AM
file uses the current dir, virtual uses the virtual path to the root dir. hey maybe file would work if you used \ instead of /