Solved

Teething problems with .NET - Part 3 - Easy Points

Posted on 2004-05-01
8
176 Views
Last Modified: 2010-04-17
Questions on how to debug .NET from asp pages

1. Every time I want to change the code I have to do start-run-iisreset, otherwise the compiler can't compile cos the DLLs are locked by IIS - is there a way of not having to do this

2. In VB6 I could change the code while it was running, that doesn't seem to work in .NET. I change the code and it still executes the old code in the compiled DLL. Is there a way of changing code while debugging ?
0
Comment
Question by:plq
  • 4
  • 3
8 Comments
 
LVL 27

Assisted Solution

by:Dabas
Dabas earned 125 total points
ID: 10969819
Hi plq:
> 2. In VB6 I could change the code while it was running, that doesn't seem to
> work in .NET. I change the code and it still executes the old code in the
> compiled DLL. Is there a way of changing code while debugging ?
No. As far as I understand the next version of .NET will include this feature. (I assume we all will be forking out another few K of $ to get something we had before!

Dabas
0
 
LVL 27

Expert Comment

by:Dabas
ID: 10969823
plq:
> 1. Every time I want to change the code I have to do start-run-iisreset,
> otherwise the compiler can't compile cos the DLLs are locked by IIS - is there
> a way of not having to do this
I have not had this problem. Check your debug and release configurations, so that they compile to different places. That way you can test in debug mode and only have these kind of problems once you want to "release" a version

Dabas
0
 
LVL 8

Author Comment

by:plq
ID: 10970520
thanks - I turned release off by unticking its build flag. [It seems a bit goofy that it writes the dll to "bin" and the "debug" directory]. Anyway, bin and debug contain the same file.

I am quite amazed that they dropped the "change while debugging" capabilities, that may force me to go back to vb6.
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 27

Expert Comment

by:Dabas
ID: 10971124
plq:
> that may force me to go back to vb6.
I thought so too at first.
But then, there are so many new goodies that compensate for it.
Although it is one of the features I really miss, if I have to choose a platform to develop a new project, I will choose .NET 80% of the time.

Dabas
0
 
LVL 8

Author Comment

by:plq
ID: 10971451
Dabas, do you specifically use a .NET backend with a ASP (not ASP.NET) client ?
0
 
LVL 27

Expert Comment

by:Dabas
ID: 10972598
plq:
No. I am mostly a Windows Forms programmer.
My #2 at work is the ASP expert, and he has switched from ASP to ASP.NET and seems to be quite happy with it

Dabas
0
 
LVL 44

Accepted Solution

by:
Arthur_Wood earned 125 total points
ID: 10973491
" do you specifically use a .NET backend with a ASP (not ASP.NET) client ? "  that is rather difficult to pull off, and rather clumsy as well, as you need to create a COM - wrapper around the .NET DLLs.

I have 100% switched from old-style ASP to ASP.NET, and the change is well worth the effort.

Would NEVER consider going back to ASP.

AW
0
 
LVL 8

Author Comment

by:plq
ID: 10973577
Hi Arthur

There are 287 asp pages in this project, at least 20 of them over 2000 lines long, so rewriting it is not possible without a serious budget.

The VB seems to have gone over to .net quite well, thats about 100k lines of VB, but it was written with .net in mind so its getting close to working after just 2 days work. The acid test will be how it performs on processor/memory intensive operations (as opposed to database intensive). If its goes faster, we stay with .net. I'm impressed that the DLL is half the size.

I've got it working with a com wrapper (well with the COM thing ticked in options, theres no real vb6 wrapper as such - is that needed? )

See my part 1 Q... I need some advice on putting the COM wrapper into component services

http://www.experts-exchange.com/Programming/Q_20974805.html

thanks
Paul L
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
This is about my first experience with programming Arduino.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question