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=DevPro ject._default ...
Okay, the current project is "DevProject ", but I was planning to create a
project for the live server as project name "LiveProjec t". 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\{UserN ame}\VSWebCache \{localcomputer name}
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 2 1623
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****@ErnestO strander.com> wrote in message
news:e0******** ********@tk2msf tngp13.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=DevPro ject._default ... Okay, the current project is "DevProject ", but I was planning to create a project for the live server as project name "LiveProjec t". 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\{UserN ame}\VSWebCache \{localcomputer name} 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
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.ne t> wrote in message
news:uv******** ******@TK2MSFTN GP09.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****@ErnestO strander.com> wrote in message news:e0******** ********@tk2msf tngp13.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=DevPro ject._default ... Okay, the current project is "DevProject ", but I was planning to create
a project for the live server as project name "LiveProjec t". 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\{UserN ame}\VSWebCache \{localcomputer name} 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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 something similar.
My knowledge of DOM and anything beyond simple XML structures is
rudimentary at best. Is there a simple way to use SAX handlers to...
|
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 fly xml for xmlhttp to fill up the
drop downs. i have tested this in C# it is working fine.
------------------Set 1-----------------------------
|
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 to use with from within
classic ASP. The assembly is strongly-named and I've registered it using
"regasm /codebase" (I've also tried it in the GAC...
|
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: "Cannot assign to
function result." If I place just the HTML.replace part of the
conversion script inside the save function and the rest outside, the...
|
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 try this
"in place" conversion capability that .NET boasts.
the new aspx file, in order to function, will require many includes
from other ASP...
| |
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 terms of
new style classes? Intuitively I would expect that there is quite a lot
of Python semantics that could be expressed in pure Python - of...
|
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 share session etc. with asp.net i.e.
it can't work with asp.net membership/login. In which case is there a way to
convert asp app into some sort of ...
|
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
version=""1.0""?><root><a>28.7</a><a>9.18</a><a>4.32</a></root>")
|
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 , returen the curser to the old select -City .
Can you Solve this problem for me.
Thanks
Const cServer="localhost"
|
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...
|
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. ...
| |
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...
|
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...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
| |
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...
| |