Solved

Teething problems with .NET - Part 3 - Easy Points

Posted on 2004-05-01
8
175 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
File.WriteAllLines problem at random C# ASP.NET 6 65
Modify a small python script 19 96
Recommendation vb6 to vb.net or others 14 109
program a usb light to turn on when needed 6 48
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

912 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

17 Experts available now in Live!

Get 1:1 Help Now