Solved

Teething problems with .NET - Part 3 - Easy Points

Posted on 2004-05-01
8
179 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
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…
Progress

717 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