473,320 Members | 1,865 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Conversion of classic asp/html to .net at root web

EO
I have much of what I need, but would appreciate a sanity check and I have
some hopefully easy questions. (Easy for YOU, that is!)

I have a website with about 2000 pages to convert to .net.
(prime candidate for aspx headers/footers, etc. - eh?)
There's a development copy on my local W2kS box and a live copy on a web
server on a shared host through a web hosting service.

Local host environment:
I'm trying to get vs.net to provide me with a viable development
environment. I followed KB article Q303845 on setting up a root web. It's
there. I have imported the existing files. So far so good. But...

1a) I still have no global.asax or web.config. Is there an easy way to get
default files created? Do I just search my hard disk for default copies and
import them for a starting point? Are there any things I MUST modify for a
new project? (I will modify the session state & other optional stuff etc.
w/no problem.)
1b) I also need a new bin directory and controls directory, which aren't
there now. Anything else? Anything I should be populating in those
directories as defaults?

2) The following problem may go away when issue#1 is resolved... (Oh
please . . . )
Add new item, web form, save as default.aspx page as-is.
<text added at top of .vb file>
Implements System
Implements System.Web
</text added at top of .vb file>
Oops! "Statement is not valid in a namespace" message for imports
declarations.
Huh? Whassup? That is happy in my functioning .net app on another box.

3) <%@ Page includes: ... Inherits=DevProject._default ...
Okay, the current project is "DevProject", but I was planning to create a
project for the live server as project name "LiveProject". Is that a death
wish? If I deploy pages from dev to live, do I shoot myself for project name
incompatibility?

4) I've noticed that after creating the project, I have a new folder in
c:Documents and settings\{UserName}\VSWebCache\{localcomputername}
containing all the items in the website.
{sigh} Can anyone point me to an article or something that describes what
this is about? I suspect that when I make any changes directly to the live
server copy - it'll be handy to know when I'm only changing a cached copy
and when I'm really changing the live copy.
Also, since the folder is just named after the local computer - which is
hosting multiple IP addresses & will host multiple .net development sites
plus a project for the live site - will I be driven to cursing when I try
setting up a second project and the setup has a name collision with the
current {machine name} directory?

4) Does the project name - or anything else in the .net project - have to
correspond to the appname in IIS? (If so, this is probably another phone
call to the web hosting service to find out or request the appname setting
for my live copy.)

And today's msdn article (Migrate code and concepts...) questions why more
people aren't converting apps from classic asp to asp.net? It ain't for the
timid! I mean, I've already read nearly 2,000 pages of .net books and I'm
stuck on setup. (Books all focus on examples with new apps or provided
sample apps.)
On the constructive side, how 'bout one of you MVP types write an article
for the MSDN library with a cookbook for this type of process? It's
mysteriously difficult to research even through the vast expanse of google.
I mean, look at the list of questions I have after following the
instructions on a KB article for setting up a root web app! Or is there an
article I missed? {blushing}

Many thanks.

Ernest Ostrander
Nov 18 '05 #1
2 1609
It's sounds like you're not using Visual Studio.NET.
You should if possible.
When you create a new web application project in Visual Studio.NET it will
automatically give you all the files you needs, such as global.asax. When
you create a new page it will give you the headers you need and import the
default namespaces for you.
Then you can copy your old ASP stuff into your new ASP.NET project.
For more details about making the upgrade process as painless as possible,
here's some good reading on the subject for you:
http://www.able-consulting.com/dotne...iles/frame.htm
http://msdn.microsoft.com/library/de...rtToASPNET.asp

Here's information on creating a web app in the root web:
http://support.microsoft.com/default...b;en-us;303845

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com
"EO" <He****@ErnestOstrander.com> wrote in message
news:e0****************@tk2msftngp13.phx.gbl...
I have much of what I need, but would appreciate a sanity check and I have
some hopefully easy questions. (Easy for YOU, that is!)

I have a website with about 2000 pages to convert to .net.
(prime candidate for aspx headers/footers, etc. - eh?)
There's a development copy on my local W2kS box and a live copy on a web
server on a shared host through a web hosting service.

Local host environment:
I'm trying to get vs.net to provide me with a viable development
environment. I followed KB article Q303845 on setting up a root web. It's
there. I have imported the existing files. So far so good. But...

1a) I still have no global.asax or web.config. Is there an easy way to get default files created? Do I just search my hard disk for default copies and import them for a starting point? Are there any things I MUST modify for a
new project? (I will modify the session state & other optional stuff etc.
w/no problem.)
1b) I also need a new bin directory and controls directory, which aren't
there now. Anything else? Anything I should be populating in those
directories as defaults?

2) The following problem may go away when issue#1 is resolved... (Oh
please . . . )
Add new item, web form, save as default.aspx page as-is.
<text added at top of .vb file>
Implements System
Implements System.Web
</text added at top of .vb file>
Oops! "Statement is not valid in a namespace" message for imports
declarations.
Huh? Whassup? That is happy in my functioning .net app on another box.

3) <%@ Page includes: ... Inherits=DevProject._default ...
Okay, the current project is "DevProject", but I was planning to create a
project for the live server as project name "LiveProject". Is that a death
wish? If I deploy pages from dev to live, do I shoot myself for project name incompatibility?

4) I've noticed that after creating the project, I have a new folder in
c:Documents and settings\{UserName}\VSWebCache\{localcomputername}
containing all the items in the website.
{sigh} Can anyone point me to an article or something that describes what
this is about? I suspect that when I make any changes directly to the live
server copy - it'll be handy to know when I'm only changing a cached copy
and when I'm really changing the live copy.
Also, since the folder is just named after the local computer - which is
hosting multiple IP addresses & will host multiple .net development sites
plus a project for the live site - will I be driven to cursing when I try
setting up a second project and the setup has a name collision with the
current {machine name} directory?

4) Does the project name - or anything else in the .net project - have to
correspond to the appname in IIS? (If so, this is probably another phone
call to the web hosting service to find out or request the appname setting
for my live copy.)

And today's msdn article (Migrate code and concepts...) questions why more
people aren't converting apps from classic asp to asp.net? It ain't for the timid! I mean, I've already read nearly 2,000 pages of .net books and I'm
stuck on setup. (Books all focus on examples with new apps or provided
sample apps.)
On the constructive side, how 'bout one of you MVP types write an article
for the MSDN library with a cookbook for this type of process? It's
mysteriously difficult to research even through the vast expanse of google. I mean, look at the list of questions I have after following the
instructions on a KB article for setting up a root web app! Or is there an
article I missed? {blushing}

Many thanks.

Ernest Ostrander

Nov 18 '05 #2
EO
Actually, I am using VS.net. Also, I followed Q303845 to the letter. I used
"new project in existing folder" and it did not give me the default
web.config or global.asax files.

Still, I have made headway by reading up on some of the links at the bottom
of the Q303845 article. I had a brain misfire on the project name question.
Doh!

I'll read up some more and re-post if I have fresh questions or continuing
problems. Thanks for the article references. The majority of the issues I've
had are interrelated and should go away with a cleaner setup.

Thanks again for the response and article links.

Onward,

-EO
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:uv**************@TK2MSFTNGP09.phx.gbl...
It's sounds like you're not using Visual Studio.NET.
You should if possible.
When you create a new web application project in Visual Studio.NET it will
automatically give you all the files you needs, such as global.asax. When
you create a new page it will give you the headers you need and import the
default namespaces for you.
Then you can copy your old ASP stuff into your new ASP.NET project.
For more details about making the upgrade process as painless as possible,
here's some good reading on the subject for you:
http://www.able-consulting.com/dotne...iles/frame.htm
http://msdn.microsoft.com/library/de...rtToASPNET.asp
Here's information on creating a web app in the root web:
http://support.microsoft.com/default...b;en-us;303845

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com
"EO" <He****@ErnestOstrander.com> wrote in message
news:e0****************@tk2msftngp13.phx.gbl...
I have much of what I need, but would appreciate a sanity check and I have some hopefully easy questions. (Easy for YOU, that is!)

I have a website with about 2000 pages to convert to .net.
(prime candidate for aspx headers/footers, etc. - eh?)
There's a development copy on my local W2kS box and a live copy on a web
server on a shared host through a web hosting service.

Local host environment:
I'm trying to get vs.net to provide me with a viable development
environment. I followed KB article Q303845 on setting up a root web. It's there. I have imported the existing files. So far so good. But...

1a) I still have no global.asax or web.config. Is there an easy way to

get
default files created? Do I just search my hard disk for default copies

and
import them for a starting point? Are there any things I MUST modify for a new project? (I will modify the session state & other optional stuff etc. w/no problem.)
1b) I also need a new bin directory and controls directory, which aren't
there now. Anything else? Anything I should be populating in those
directories as defaults?

2) The following problem may go away when issue#1 is resolved... (Oh
please . . . )
Add new item, web form, save as default.aspx page as-is.
<text added at top of .vb file>
Implements System
Implements System.Web
</text added at top of .vb file>
Oops! "Statement is not valid in a namespace" message for imports
declarations.
Huh? Whassup? That is happy in my functioning .net app on another box.

3) <%@ Page includes: ... Inherits=DevProject._default ...
Okay, the current project is "DevProject", but I was planning to create a project for the live server as project name "LiveProject". Is that a death wish? If I deploy pages from dev to live, do I shoot myself for project

name
incompatibility?

4) I've noticed that after creating the project, I have a new folder in
c:Documents and settings\{UserName}\VSWebCache\{localcomputername}
containing all the items in the website.
{sigh} Can anyone point me to an article or something that describes what this is about? I suspect that when I make any changes directly to the live server copy - it'll be handy to know when I'm only changing a cached copy and when I'm really changing the live copy.
Also, since the folder is just named after the local computer - which is
hosting multiple IP addresses & will host multiple .net development sites plus a project for the live site - will I be driven to cursing when I try setting up a second project and the setup has a name collision with the
current {machine name} directory?

4) Does the project name - or anything else in the .net project - have to correspond to the appname in IIS? (If so, this is probably another phone
call to the web hosting service to find out or request the appname setting for my live copy.)

And today's msdn article (Migrate code and concepts...) questions why more people aren't converting apps from classic asp to asp.net? It ain't for

the
timid! I mean, I've already read nearly 2,000 pages of .net books and I'm stuck on setup. (Books all focus on examples with new apps or provided
sample apps.)
On the constructive side, how 'bout one of you MVP types write an article for the MSDN library with a cookbook for this type of process? It's
mysteriously difficult to research even through the vast expanse of

google.
I mean, look at the list of questions I have after following the
instructions on a KB article for setting up a root web app! Or is there an article I missed? {blushing}

Many thanks.

Ernest Ostrander


Nov 18 '05 #3

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

Similar topics

19
by: gaudetteje | last post by:
I've been searching high and low for a way to simply convert a small XML configuration file to Python data structures. I came across gnosis XML tools, but need a built-in option for doing...
2
by: Neel | last post by:
HiAll, I converted the below 2 sets of code into VB.net,with conversion tools. I am getting a syntax error. Can some one help me to convert the below code into VB.net ? I am building on the...
3
by: Ken Kolda | last post by:
I have a .NET assembly which utilizes the System.Management classes to retrieve information about the computer. When run under ASP.NET, I can use this assembly with no problems. But now I'm trying...
1
by: William Starr Moake | last post by:
This is for a browser-based WYSIWYG editor to convert image file paths from absolute to relative when the page under construction is saved. From inside the save function I get error message:...
1
by: jason | last post by:
i'm working on a gradual conversion of an ASP classic web site to ASP.NET. a recent body of work involves adding a new asp page to the existing site. i thought this would be a good opportunity to...
1
by: Kay Schluehr | last post by:
Just reasoning about conversion of classic to new style classes ( keeping deprecation of ClCl in Py3K in mind ) I wonder if there is a metaclass that can be used to express the semantics of ClCl in...
3
by: John | last post by:
Hi I have a pure asp app which I need to integrate into an asp.net app in terms of the asp.net membership/roles/login that asp.net app uses. I understand there is no way for a pure asp app to...
1
by: PAF | last post by:
Hi, I'm trying to evaluate a sum expression trougth .NET 2 System.Xml.XPath.XPathNavigator object. My code is : Dim document As New System.Xml.XmlDocument() document.LoadXml("<?xml...
3
by: alandiit | last post by:
Hi every body I would like connect three combo box (CascadingDropDown with a Database) MYSQL by asp classic or Java Script . But I have a problem with this example , when I will change City ,...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.