Solved

Teething problems with .NET - Part 3 - Easy Points

Posted on 2004-05-01
8
174 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
 
LVL 27

Expert Comment

by:Dabas
Comment Utility
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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 8

Author Comment

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

Expert Comment

by:Dabas
Comment Utility
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
Comment Utility
" 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
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
array11 challenge 16 51
stringclean challenge 26 54
pairs challenge 5 44
drawing animated level bar based on numbers 3 71
I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now