How to debug VB.NET DLL(Class Library) from ASP.NET page

Posted on 2003-02-22
Medium Priority
Last Modified: 2012-06-27
In VB6 DLL's and classical ASP, I used to procedure the following way:

I opened the VB6 DLL project, I executed it and when I made a "CreateObject" from an ASP page; objects were instanciated from the running source code (instead of the compiled DLL), so, I was able to debug all my VB6 DLL called from the my classic ASP page.

Now, with VB.NET and ASP.NET I'm not able to do the same thing. Using namespaces, my compiled VB.NET DLL (Class Library) works perfectly. I supposed it would work the same way as VB6, so I execute the VB.NET project in debug mode and with F5, but every object instanciated and used from ASP.NET is created and handled by the compiled DLL, so, it never goes into the source code I'm trying to debug.

I requested some help and I was required to make a change in my "machine.config" file to enable debugging.
So, i changed this line:
<compilation debug="true" defaultLanguage="vb"...>

"debug" was in "false", so I supposed that this would be the solution and I changed it, but nothing happened :(

As you can imagine this is essential for me, and I have not found the way to do it for some weeks. So, I think it's a hard question and i give 200 points for its answer

Could somebody help me ?
Thanks in advance for your valuable help

PS: I hope to be clear, and sorry about my english, it's not my foreign language.
Question by:dsuarezuy
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
LVL 23

Accepted Solution

naveenkohli earned 800 total points
ID: 8005641
First put the configurations in machine.config backt to the way it was before. You should not change this file unless it is absolutely necessary. For ASP.Net apps, you will make the change in web.config file.

Also make sure that you have compiled the VB.Net assembly as well as ASP.Net project in debug mode and not in release.
LVL 96

Expert Comment

by:Bob Learned
ID: 9645354
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by naveenkohli

Please leave any comments here within the next seven days.


EE Cleanup Volunteer

Author Comment

ID: 9649475
The problem is that I think that's not the correct answer. After writing this message I found out that I was able to debug the DLL if I opened both the ASP.NET pages and the DLL project in project group.

Featured Post

Use Filtering Commands to Process Files in Linux

Learn how to manipulate data with the help of various filtering commands such as `cat`, `fmt`, `pr`, and others in Linux.

Question has a verified solution.

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

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

752 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