473,654 Members | 3,096 Online
Bytes | Software Development & Data Engineering Community
+ 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\AspTo AspNet.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\AspTo AspNet.chm::/1003.htm %>
<!-- #INCLUDE VIRTUAL="/ASP2ASPX/inc/test.inc" -->
</HEAD>
<BODY>
<%
setX(CInt("Hell o 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 2668
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*******@hotm ail.com> wrote in message
news:Ap******** **********@news read1.news.pas. earthlink.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\AspTo AspNet.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\AspTo AspNet.chm::/1003.htm %>
<!-- #INCLUDE VIRTUAL="/ASP2ASPX/inc/test.inc" -->
</HEAD>
<BODY>
<%
setX(CInt("Hell o 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
4125
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 relations (!) from .mdb database. I wondering anybody knows a tool with this functions? Or maybe there is another way? mdb -> txt -> pgsql??? Thanks for any solutions. WBR
2
1935
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 the target Server and new applications for this site will use ColdFusion, this server is not capable of executing the SSI Statements used in all of the pages. Mainly only the SSI "include virtual"
7
8064
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 MS SQL's tables and loading into DB2 using DB2's LOAD utility. There are tons of colums of floating point types (singe precion & double precision types) in the database and when extracted using BCP, it generates data only upto 17 digits....
1
2206
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 windows 2000 machine to this one using the migration tool.The problem with doing this is the migration tool does not migrate the FPSE user permissions across.Part of the problem I am sure is that the windows 2000 machine has the FPSE user permissions...
5
1521
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, but still get the 'Migration tool not installed' message when I open a .VBP file Any suggestions or solutions? (This post is also present in the .update newsgroup)
2
1319
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 changed to lower case. For example, if there was a webpage named "HelloWorld.aspx" in the old format, then the new web page filename will be "helloworld.aspx". Is there a reason for this? Is there a configuration setting that the migration tool will...
9
4192
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 database to another DB2 database. - But MTK (surprisingly) doesn't seem to support DB2-DB2 copies. These are non-regular, ad-hoc tasks, performed by users without administrative rights (and generally somewhat annoyed by command line...
2
3135
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 maps structures from Oracle to Microsoft Sql Server. I was wondering if the same tool existed for DB2 that would make migrating from Oracle easier.
3
4629
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 process before jumping into it". One site even recommends that this training process should take at least 2-3 weeks. I'm not sure how you can train for such a process...but maybe I'll find something while I'm researching. I was wondering if anyone...
0
8376
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8290
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8815
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8708
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8489
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7307
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6161
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1596
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.