Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 18th, 2006, 02:58 PM
Friend of Wrox
Points: 2,876, Level: 22
Points: 2,876, Level: 22 Points: 2,876, Level: 22 Points: 2,876, Level: 22
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default Problem Converting 1.1 to 2.0

I've got a .NET 1.1 application which I'm trying to convert to 2.0. When I try to convert the code using MS's converter, I get:

Configuring web site to ASP.NET 2.0 failed. You may need to manually configure this site for ASP.NET 2.0 in order for your site to run correctly.

Then, after fixing the myriad warnings and errors VS 2 issued, I get this when I try to run:

Unable to stasrt debugging on the web server. The server does not support debugging of ASP.NET or ATL Server applciations. Click Help for more information on how to enable debugging.

Help contains no information on enabling debugging that I can find, however. Is there some magical order of steps necessary to get VS 2.0 to convert 1.1 applications correctly on the first try?
Reply With Quote
  #2 (permalink)  
Old March 20th, 2006, 01:17 PM
Friend of Wrox
Points: 2,876, Level: 22
Points: 2,876, Level: 22 Points: 2,876, Level: 22 Points: 2,876, Level: 22
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default

Considering the lack of responses, it appears I am the only person struggling with this problem, as usual. Should some other poor souls suddenly find themselves confronted with this same problem, though, I believe I have resolved my problems converting the old ASP.NET application. The conversion wizard just would not work with this project no matter what I tried.

So, I had VS 2005 create a new web project for me with the desired name. Then I manually added each of the form and class files from my old ASP.NET application to the new project. After numerous new error and warning corrections (v2 is so much pickier), I am now able to compile using the debugger.
Reply With Quote
  #3 (permalink)  
Old March 20th, 2006, 04:09 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Ron,

Did you try to upgrade the site with the new "Web Application Project" feature? This new project model, more closely mimicking the behavior of ASP.NET 1.x *should* enable you to upgrade 1.x projects to .NET 2.... More information can be found here:

http://webproject.scottgu.com/

A bit late, but it might help....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Eraser by Nine Inch Nails (Track 11 from the album: The Downward Spiral) What's This?
Reply With Quote
  #4 (permalink)  
Old March 20th, 2006, 04:17 PM
Friend of Wrox
Points: 2,876, Level: 22
Points: 2,876, Level: 22 Points: 2,876, Level: 22 Points: 2,876, Level: 22
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default

Nope. I just tried using the built-in wizard, which didn't seem to do much except break my code badly. I'm now deeply into manual conversion and probably don't want to go back and start over unless this coverter will somehow avoid the zillions of errors I'm now getting for silly things like changing "<BR>" to "<br/>" because the tag is in mixed case and also missing the closing "/" that VS 2005 now seems to need where old VS did not. It wouldn't be so bad if old VS hadn't created most of the problems I'm now having to fix. TYVM once again, MS! :(
Reply With Quote
  #5 (permalink)  
Old March 20th, 2006, 04:35 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

If you don't *want* to fix the errors, you could try setting the xhtmlConformance setting in the web.config file. This influences the way the mmarkup is rendered, and may also change te validation scheme for VS 2005:

<system.web>
  <xhtmlConformance mode="Legacy" />
<system.web>

Other modes are strict and transitional. Not sure if that fixes your problems, but it;s worth a try of you're willing to live with non XHTML markup.

Look at it from the bright side: it has finally been fixed in VS 2005. Indeed there's a lot of 1.x mess to clean up, but it should be better from this point onwards....

The project I pointed you to adds a new project type in VS 2005, so you can use the 1.x project model, where a site is based on a project and compiles to a single assembly. It's meant especially for working with 1.x style projects, so it might do the trick for you....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Jennifers Body by Hole (Track 5 from the album: Live Through This) What's This?
Reply With Quote
  #6 (permalink)  
Old March 20th, 2006, 04:41 PM
Friend of Wrox
Points: 2,876, Level: 22
Points: 2,876, Level: 22 Points: 2,876, Level: 22 Points: 2,876, Level: 22
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default

I certainly don't *want* to fix all these errors. OTOH, it would sure be nice if my pages behaved correctly, and for many reasons, some of which I admit causing myself, they don't always do so. :D So, I think I would be better off biting the bullet now (bullets missing the closing </li> tag are another example of malformed html caused by old VS, btw) than trying to figure out some bizarre behavior down the road. Thanks for the alternative, though, should I find myself needing to convert something more quickly.
Reply With Quote
  #7 (permalink)  
Old March 21st, 2006, 03:30 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Yeah, I agree. It's better to clean up the mess right now, and use valid XHTML generated by VS from now on. The HTML editor behaves pretty well, a million times better than the 2003 version...

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote
  #8 (permalink)  
Old March 21st, 2006, 05:28 PM
Friend of Wrox
Points: 2,876, Level: 22
Points: 2,876, Level: 22 Points: 2,876, Level: 22 Points: 2,876, Level: 22
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default

I agree! It hasn't eaten any of my HTML so far, and I am making MASSIVE changes to clean up 1.1's mess, so I'm glad for that small favor.
Reply With Quote
  #9 (permalink)  
Old March 23rd, 2006, 11:53 AM
Friend of Wrox
Points: 2,876, Level: 22
Points: 2,876, Level: 22 Points: 2,876, Level: 22 Points: 2,876, Level: 22
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default

Test
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem converting string to Date. akhilhp ASP.NET 2.0 Basics 2 July 6th, 2008 08:02 AM
converting and sending data problem csharpa ADO.NET 2 March 24th, 2007 06:38 AM
Converting Problem monika.vasvani ASP.NET 1.0 and 1.1 Professional 1 November 6th, 2006 10:35 AM
problem while converting xml to html its_vippy XSLT 2 May 30th, 2005 09:13 PM
Problem converting type gylim78 VB.NET 2002/2003 Basics 5 April 8th, 2004 04:19 PM



All times are GMT -4. The time now is 01:10 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.