473,473 Members | 2,169 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ASP to ASP.NET Migration Tool - URI Problem

rob
Dear All,

I have a very small test project to convert asp to asp.net using the
Microsoft/Artisan ASP to ASP.NET Migration Assistant
(http://msdn.microsoft.com/asp.net/us...igasst/default
..aspx). Everything works fine when my include file is in the same directory
as the asp file that includes the include file. What I am having trouble
with is that the migration tool doesn't see my include file when it resids
in a seperate directory. I assume that step #5 of the migration tool
(Specify URI Addresses) should do the trick but no matter what I try it
doesn't work, i.e. http://localhost/ASP2ASPNET/inc,
d://MyProject/ASP2ASPNET/inc, d://MyProject/ASP2ASPNET/inc/test.inc.

Here are my two test files:

d://MyProject/ASP2ASPNET/test.asp:
<HTML>
<HEAD>
<!-- #INCLUDE VIRTUAL="/ASP2ASPNET/inc/test.inc"-->
</HEAD>
<BODY>
<%
setX "Hello World"
Response.Write x
%>
</BODY>
</HTML>

d://MyProject/ASP2ASPNET/inc/test.inc:
<%
Dim x
Sub setX(newValue)
x = newValue
End Sub
%>
<script language="VB" runat="Server">
Dim x As Object
Dim setX() As Object

Here is the output file aspx.net that I get including the error message.
</script>
<HTML>
<HEAD>
<%'UPGRADE_NOTE: Language element '#INCLUDE' was migrated to the same
language element but still may have a different behavior. Copy this link in
your browser for more: ms-its:C:\Program Files\ASP to ASP.NET Migration
Assistant\AspToAspNet.chm::/1011.htm %>
<%'UPGRADE_NOTE: The file '/ASP2ASPX/inc/test.inc' was not found in the
migration directory. Copy this link in your browser for more:
ms-its:C:\Program Files\ASP to ASP.NET Migration
Assistant\AspToAspNet.chm::/1003.htm %>
<!-- #INCLUDE VIRTUAL="/ASP2ASPX/inc/test.inc" -->
</HEAD>
<BODY>
<%
setX(CInt("Hello World"))
Response.Write(x)
%>
</BODY>
</HTML>
Any input is highly appreciated.

Rob

BTW, I know I should not use includes and I know for the simple example
above I could just copy the include into the main directory. Nevertheless,
what I am working on is a bit more complex and the above is just a test
project that represents the problem I have with the big app.
Nov 18 '05 #1
1 2642
I am not sure how to solve this problem, but I will add my two cents to the
process:

Migration, at least normally, is a tenuous process at best. Generally, using
the migration tools allows you to get your application into the .NET world,
where you can alter pages to fit the .NET model. I have yet to see a
migration tool that works well enough I would state the application was
production ready (esp. long-term) right after migration. In most cases I
have seen, you end up rewriting the application before moving to production.
In some cases, the migration tools give a false sense of security that
convinces users it is okay to deploy this "inferior" ASP.NET code.

Apologies for spouting off, but I have yet to see a case in which I truly
saw migration as the correct option (over rewrite). It may save you some
time, but you will likely end up rewriting a lot of code anyway.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
"rob" <rm*******@hotmail.com> wrote in message
news:Ap******************@newsread1.news.pas.earth link.net...
Dear All,

I have a very small test project to convert asp to asp.net using the
Microsoft/Artisan ASP to ASP.NET Migration Assistant
(http://msdn.microsoft.com/asp.net/us...igasst/default .aspx). Everything works fine when my include file is in the same directory as the asp file that includes the include file. What I am having trouble
with is that the migration tool doesn't see my include file when it resids
in a seperate directory. I assume that step #5 of the migration tool
(Specify URI Addresses) should do the trick but no matter what I try it
doesn't work, i.e. http://localhost/ASP2ASPNET/inc,
d://MyProject/ASP2ASPNET/inc, d://MyProject/ASP2ASPNET/inc/test.inc.

Here are my two test files:

d://MyProject/ASP2ASPNET/test.asp:
<HTML>
<HEAD>
<!-- #INCLUDE VIRTUAL="/ASP2ASPNET/inc/test.inc"-->
</HEAD>
<BODY>
<%
setX "Hello World"
Response.Write x
%>
</BODY>
</HTML>

d://MyProject/ASP2ASPNET/inc/test.inc:
<%
Dim x
Sub setX(newValue)
x = newValue
End Sub
%>
<script language="VB" runat="Server">
Dim x As Object
Dim setX() As Object

Here is the output file aspx.net that I get including the error message.
</script>
<HTML>
<HEAD>
<%'UPGRADE_NOTE: Language element '#INCLUDE' was migrated to the same
language element but still may have a different behavior. Copy this link in your browser for more: ms-its:C:\Program Files\ASP to ASP.NET Migration
Assistant\AspToAspNet.chm::/1011.htm %>
<%'UPGRADE_NOTE: The file '/ASP2ASPX/inc/test.inc' was not found in the
migration directory. Copy this link in your browser for more:
ms-its:C:\Program Files\ASP to ASP.NET Migration
Assistant\AspToAspNet.chm::/1003.htm %>
<!-- #INCLUDE VIRTUAL="/ASP2ASPX/inc/test.inc" -->
</HEAD>
<BODY>
<%
setX(CInt("Hello World"))
Response.Write(x)
%>
</BODY>
</HTML>
Any input is highly appreciated.

Rob

BTW, I know I should not use includes and I know for the simple example
above I could just copy the include into the main directory. Nevertheless,
what I am working on is a bit more complex and the above is just a test
project that represents the problem I have with the big app.

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Pawel Gruszka | last post by:
Hello! I need a mdb 2 PostgtreSQL migration tool (something similar to pgAdmin plugin - "Database migration wizard") that don't needs M$ Windows or XWindow. It should also transfer data and...
2
by: Andreas Belitz | last post by:
Hi, i'm not quite sure if this is the right group, so please notify me if i'm OT... I have the following problem: I need to migrate a large site (~10.000 HTML pages) to a new server. Since...
7
by: Dave | last post by:
We are trying to migrate a MS SQL server app to DB2 8.1 Linux platform. Our database has got about 300+tables with total size - 150 GB We are using MS SQL's BCP utility to extract data from...
1
by: Amol Shambharker | last post by:
Hello Everyone, I have been working on setting up a windows 2003 machine with IIS 6.0.The web server has the web directory on a UNC share on a windows 2003 server.I want to migrate websites from a...
5
by: Greg | last post by:
I know for a fact that the migration tool has been installed and I can see evidence of having run it (two years ago) because there is a _UpgradeReport.htm file present. I have reinstalled .Net,...
2
by: n33470 | last post by:
Hi all, We have an existing website, built with VS2003, that we're in the process of migrating to use in VS2005. After the migration wizard completes, then all of the .aspx web pages are...
9
by: Troels Arvin | last post by:
At work, some people have found IBM's Migration Toolkit (MTK) to be a nice tool for copying data from one table (in another DBMS product) to DB2. Now, they want to do the same thing from one DB2...
2
by: dunleav1 | last post by:
Is there a db2 tool or utility that will map Oracle structures and data to DB2? For instance, Microsoft has a tool called "Microsoft Sql Server Migration Assistant for Oracle". The tool basically...
3
Frinavale
by: Frinavale | last post by:
I have been researching the best approach to migrating a VB6 application into a VB.NET application. There is a lot of information out there but most of it recommends that you "train in the migration...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.