Hi,
I use Visual C# Express 2005 and Visual Web Developer Express 2005.
In my Visual C# Express 2005 Solution, I have following two class library
projects:
_ DataAccess (Namespace name: DataAccess)
_ SystemLibrary (Namespace name: SystemLibrary)
which they both build in their own "bin\Release\" folders.
In my Visual Web Developer Express 2005 Solution, I have two web projects of
WebApp1 and WebApp2 which are both have referenced to DataAccess.dll and
SystemLibrary.dll, in Class library "bin\Release\" folders.
Problem:
I can debug and step-into SystemLibrary class from VWD Express, but cannot
debug/step-into DataAccess!
Both class library properties are identical with public static methods.
Even forcing class library projects to build into /bin/debug folders and
pointing web app references to them, not helping. Bare in mind that
DataAccess has a reference to SystemLibrary.
Why can I not step-into the DataAccess code?
Thanks for your time.
Kind Regards
Med 3 1659
It is a limitation of the Express products.
There are a couple of ways "around" this, depending on what you want to do.
1. Create test stubs and debug the libraries using nUnit. With C# Express,
you will have limitations to where you can place the tests, of course, but
you can mark the tests debug only so they do not compile into the assembly
when you release. This does not solve the step into issue, but will give you
the means to properly test your code.
2. Use another debugger. There are free debuggers that ship with the .NET
Framework. You can find details on using them in the bugslayer column of
MSDN and on the web. I am not going to jump too heavy into this route right
now, as the debuggers are harder to use than the Visual Studio debugger and
it is easier to set up nUnit tests (short learning curve and then you are
flying).
As you can probably tell, I recommend unit test frameworks. I have used
nUnit in the past, but someone just suggested mbUnit, which I am going to
check out. :-)
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
*************************************************
| Think outside the box!
|
*************************************************
"Med" <no****@nowhere.nowherewrote in message
news:Ot**************@TK2MSFTNGP05.phx.gbl...
Hi,
I use Visual C# Express 2005 and Visual Web Developer Express 2005.
In my Visual C# Express 2005 Solution, I have following two class library
projects:
_ DataAccess (Namespace name: DataAccess)
_ SystemLibrary (Namespace name: SystemLibrary)
which they both build in their own "bin\Release\" folders.
In my Visual Web Developer Express 2005 Solution, I have two web projects
of WebApp1 and WebApp2 which are both have referenced to DataAccess.dll
and SystemLibrary.dll, in Class library "bin\Release\" folders.
Problem:
I can debug and step-into SystemLibrary class from VWD Express, but cannot
debug/step-into DataAccess!
Both class library properties are identical with public static methods.
Even forcing class library projects to build into /bin/debug folders and
pointing web app references to them, not helping. Bare in mind that
DataAccess has a reference to SystemLibrary.
Why can I not step-into the DataAccess code?
Thanks for your time.
Kind Regards
Med
Hi Gregory,
Thanks for your time and suggestion. However I discovered the source of my
problem which was calling a DataAccess method in my Session_Start of
Global.asax, to populate a dataset in my session object! As you can imagine
it took me hours to discover it. I still don't undrestand why calling a dll
assmebly in Session_Start prevent the debugger to step-into that class
library code!
Now I can debug and step-into all my c# class libraries from Visual Web
Developer Express IDE.
Regards
Med
"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:Ok****************@TK2MSFTNGP02.phx.gbl...
It is a limitation of the Express products.
There are a couple of ways "around" this, depending on what you want to
do.
1. Create test stubs and debug the libraries using nUnit. With C# Express,
you will have limitations to where you can place the tests, of course, but
you can mark the tests debug only so they do not compile into the assembly
when you release. This does not solve the step into issue, but will give
you the means to properly test your code.
2. Use another debugger. There are free debuggers that ship with the .NET
Framework. You can find details on using them in the bugslayer column of
MSDN and on the web. I am not going to jump too heavy into this route
right now, as the debuggers are harder to use than the Visual Studio
debugger and it is easier to set up nUnit tests (short learning curve and
then you are flying).
As you can probably tell, I recommend unit test frameworks. I have used
nUnit in the past, but someone just suggested mbUnit, which I am going to
check out. :-)
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
*************************************************
| Think outside the box! |
*************************************************
"Med" <no****@nowhere.nowherewrote in message
news:Ot**************@TK2MSFTNGP05.phx.gbl...
>Hi,
I use Visual C# Express 2005 and Visual Web Developer Express 2005.
In my Visual C# Express 2005 Solution, I have following two class library projects: _ DataAccess (Namespace name: DataAccess) _ SystemLibrary (Namespace name: SystemLibrary)
which they both build in their own "bin\Release\" folders.
In my Visual Web Developer Express 2005 Solution, I have two web projects of WebApp1 and WebApp2 which are both have referenced to DataAccess.dll and SystemLibrary.dll, in Class library "bin\Release\" folders.
Problem: I can debug and step-into SystemLibrary class from VWD Express, but cannot debug/step-into DataAccess! Both class library properties are identical with public static methods. Even forcing class library projects to build into /bin/debug folders and pointing web app references to them, not helping. Bare in mind that DataAccess has a reference to SystemLibrary.
Why can I not step-into the DataAccess code?
Thanks for your time.
Kind Regards
Med
The reason it fails has to do with the calling stack for ASP.NET in IIS.
Session start can be a bane of our existence at times. Application_Start is
even more fun. :-)
Things like this are why I use testing frameworks, like nUnit. ;-)
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
*************************************************
| Think outside the box!
|
*************************************************
"Med" <no****@nowhere.nowherewrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Hi Gregory,
Thanks for your time and suggestion. However I discovered the source of
my problem which was calling a DataAccess method in my Session_Start of
Global.asax, to populate a dataset in my session object! As you can
imagine it took me hours to discover it. I still don't undrestand why
calling a dll assmebly in Session_Start prevent the debugger to step-into
that class library code!
Now I can debug and step-into all my c# class libraries from Visual Web
Developer Express IDE.
Regards
Med
"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:Ok****************@TK2MSFTNGP02.phx.gbl...
>It is a limitation of the Express products.
There are a couple of ways "around" this, depending on what you want to do.
1. Create test stubs and debug the libraries using nUnit. With C# Express, you will have limitations to where you can place the tests, of course, but you can mark the tests debug only so they do not compile into the assembly when you release. This does not solve the step into issue, but will give you the means to properly test your code.
2. Use another debugger. There are free debuggers that ship with the .NET Framework. You can find details on using them in the bugslayer column of MSDN and on the web. I am not going to jump too heavy into this route right now, as the debuggers are harder to use than the Visual Studio debugger and it is easier to set up nUnit tests (short learning curve and then you are flying).
As you can probably tell, I recommend unit test frameworks. I have used nUnit in the past, but someone just suggested mbUnit, which I am going to check out. :-)
-- Gregory A. Beamer MVP, MCP: +I, SE, SD, DBA
*********************************************** ** | Think outside the box! | *********************************************** ** "Med" <no****@nowhere.nowherewrote in message news:Ot**************@TK2MSFTNGP05.phx.gbl...
>>Hi,
I use Visual C# Express 2005 and Visual Web Developer Express 2005.
In my Visual C# Express 2005 Solution, I have following two class library projects: _ DataAccess (Namespace name: DataAccess) _ SystemLibrary (Namespace name: SystemLibrary)
which they both build in their own "bin\Release\" folders.
In my Visual Web Developer Express 2005 Solution, I have two web projects of WebApp1 and WebApp2 which are both have referenced to DataAccess.dll and SystemLibrary.dll, in Class library "bin\Release\" folders.
Problem: I can debug and step-into SystemLibrary class from VWD Express, but cannot debug/step-into DataAccess! Both class library properties are identical with public static methods. Even forcing class library projects to build into /bin/debug folders and pointing web app references to them, not helping. Bare in mind that DataAccess has a reference to SystemLibrary.
Why can I not step-into the DataAccess code?
Thanks for your time.
Kind Regards
Med This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Luis P. Mendes |
last post by:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I'm trying to improve speed in a module and substituted the pythonic
'for in range()' for 'for i from min < i < max:'
But, I need to...
|
by: web developer |
last post by:
hi
i got a query that takes about 14 mins
here it is
select BDProduct.ProductCode,BDProduct.ProductName,SALTerritory.TerritoryID...
|
by: tram |
last post by:
How do we pass on the step1 output file to step2 of the same job? I
would like to know the current job's output file programmetically,
instead of hard coding it. Any idaes would be appreciated.
...
|
by: Claudio Grondi |
last post by:
I need to unpack on a Windows 2000 machine
some Wikipedia media .tar archives which are
compressed with TAR 1.14 (support for long file
names and maybe some other features) .
It seems, that...
|
by: ibm_97 |
last post by:
Hi,
Anyone can give me a link which shows how to setup DB2 (v8) replication
step by step? Thanks.
As a non-DB2 person, I find out IBM DB2 doc is not very helpful at all,
espeically compare...
| |
by: baumann |
last post by:
Hi all,
I have one simple program:
#define __EXTENSIONS__
#include <stdio.h>
#include <string.h>
int main() {
|
by: Willie |
last post by:
I try to setup SQL Server to work with .NET Framework
Anyone here willing to help?
Step By Step Help Needed.
Thanks
|
by: Neil |
last post by:
I have three stored procedures that need to run nightly in SQL 7. The three
procedures are not related; but to keep the procedures from running at the
same time, I placed them as three steps of a...
|
by: ibiza |
last post by:
Hi all,
I'd need a function that would rounds values like :
d = roundTo(64.2, 0.25) ' returns 64.25
d = roundTo(64.2, 10) ' returns 64
d = roundTo(64.2, 100) ' returns 100
well, that rounds...
|
by: Andy B |
last post by:
I have a wizard with multiple steps in it. On the first step, I have a
gridView that shows the users current input for that particular step. The
GridView is bound to an in memory object. When I...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |