473,497 Members | 2,051 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Debug and break point problem - There is no source code available for the current location

aaj
Hi all

I have written a small app on my machine that I have passed on to a
colleague for testing.

The problem is, as soon as he steps through in debug mode and reaches

try
{
conn.Open(); <- HERE

The error message 'There is no source code available for the current
location ' pops up. I should stress this is not a caught error, but one the
IDE generates.

It can be temporarily fixed by us logging off, logging on and then
rebuilding the solution. It only works for one pass, and then the second
time you step through the error re appears.

I have searched Google and found a few references to the same problem, but
no fixes. Microsoft knowledge base 318367 suggests a fix, but didn't work.

There are two things I can see

1) I run .net framework 1.1.4322 while he has the same number but has
installed sp1

2) the other is the project originally lived on my D drive, but its on his
C. .NET took care of most of the paths, but as suggested in article 318367,
I had to manually change the reference in the Solution properties. Doing
this fixed the problem for a single execution, but fails at the second
attempt.

one last thing, if we run in 'Release' everything runs fine

any help would be much appreciated

thanks

Andy
Jul 22 '05 #1
5 3097
I've all of a sudden encountered the "no source code" errors as well and
nothing really changed in my apps. Just all of a sudden they stopped
allowing me to debug them?! I, too, moved the source code from one location
to another (my C: to the corporate network) but that was quite a while ago
and I'm fairly certain I've debugged successfully since then.

I started a new project and confirmed that I can debug it.
I've moved the source BACK to my C drive and still cannot debug.

Keep me posted on this and I'll let you know if I learn anything.
Paul

"aaj" wrote:
Hi all

I have written a small app on my machine that I have passed on to a
colleague for testing.

The problem is, as soon as he steps through in debug mode and reaches

try
{
conn.Open(); <- HERE

The error message 'There is no source code available for the current
location ' pops up. I should stress this is not a caught error, but one the
IDE generates.

It can be temporarily fixed by us logging off, logging on and then
rebuilding the solution. It only works for one pass, and then the second
time you step through the error re appears.

I have searched Google and found a few references to the same problem, but
no fixes. Microsoft knowledge base 318367 suggests a fix, but didn't work.

There are two things I can see

1) I run .net framework 1.1.4322 while he has the same number but has
installed sp1

2) the other is the project originally lived on my D drive, but its on his
C. .NET took care of most of the paths, but as suggested in article 318367,
I had to manually change the reference in the Solution properties. Doing
this fixed the problem for a single execution, but fails at the second
attempt.

one last thing, if we run in 'Release' everything runs fine

any help would be much appreciated

thanks

Andy

Jul 22 '05 #2
aaj
Thanks for the reply Paul

glad to know I'm not alone

I suppose the next step is to recreate the project on the other machine,
manually recreate all the classes and then paste the code in... what a
nightmare!!!

if I find anything else out I'll le you know.

cheers

Andy

"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:0D**********************************@microsof t.com...
I've all of a sudden encountered the "no source code" errors as well and
nothing really changed in my apps. Just all of a sudden they stopped
allowing me to debug them?! I, too, moved the source code from one
location
to another (my C: to the corporate network) but that was quite a while ago
and I'm fairly certain I've debugged successfully since then.

I started a new project and confirmed that I can debug it.
I've moved the source BACK to my C drive and still cannot debug.

Keep me posted on this and I'll let you know if I learn anything.
Paul

"aaj" wrote:
Hi all

I have written a small app on my machine that I have passed on to a
colleague for testing.

The problem is, as soon as he steps through in debug mode and reaches

try
{
conn.Open(); <- HERE

The error message 'There is no source code available for the current
location ' pops up. I should stress this is not a caught error, but one
the
IDE generates.

It can be temporarily fixed by us logging off, logging on and then
rebuilding the solution. It only works for one pass, and then the second
time you step through the error re appears.

I have searched Google and found a few references to the same problem,
but
no fixes. Microsoft knowledge base 318367 suggests a fix, but didn't
work.

There are two things I can see

1) I run .net framework 1.1.4322 while he has the same number but has
installed sp1

2) the other is the project originally lived on my D drive, but its on
his
C. .NET took care of most of the paths, but as suggested in article
318367,
I had to manually change the reference in the Solution properties. Doing
this fixed the problem for a single execution, but fails at the second
attempt.

one last thing, if we run in 'Release' everything runs fine

any help would be much appreciated

thanks

Andy

Jul 22 '05 #3
I've tried creating a new project and copying/pasting the form(s) into it but
that hasn't helped either.
I wonder why a MS technician isn't helping us with this?

"aaj" wrote:
Thanks for the reply Paul

glad to know I'm not alone

I suppose the next step is to recreate the project on the other machine,
manually recreate all the classes and then paste the code in... what a
nightmare!!!

if I find anything else out I'll le you know.

cheers

Andy

"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:0D**********************************@microsof t.com...
I've all of a sudden encountered the "no source code" errors as well and
nothing really changed in my apps. Just all of a sudden they stopped
allowing me to debug them?! I, too, moved the source code from one
location
to another (my C: to the corporate network) but that was quite a while ago
and I'm fairly certain I've debugged successfully since then.

I started a new project and confirmed that I can debug it.
I've moved the source BACK to my C drive and still cannot debug.

Keep me posted on this and I'll let you know if I learn anything.
Paul

"aaj" wrote:
Hi all

I have written a small app on my machine that I have passed on to a
colleague for testing.

The problem is, as soon as he steps through in debug mode and reaches

try
{
conn.Open(); <- HERE

The error message 'There is no source code available for the current
location ' pops up. I should stress this is not a caught error, but one
the
IDE generates.

It can be temporarily fixed by us logging off, logging on and then
rebuilding the solution. It only works for one pass, and then the second
time you step through the error re appears.

I have searched Google and found a few references to the same problem,
but
no fixes. Microsoft knowledge base 318367 suggests a fix, but didn't
work.

There are two things I can see

1) I run .net framework 1.1.4322 while he has the same number but has
installed sp1

2) the other is the project originally lived on my D drive, but its on
his
C. .NET took care of most of the paths, but as suggested in article
318367,
I had to manually change the reference in the Solution properties. Doing
this fixed the problem for a single execution, but fails at the second
attempt.

one last thing, if we run in 'Release' everything runs fine

any help would be much appreciated

thanks

Andy


Jul 22 '05 #4
Oh how embarassing - I think I got it.
I had changed my Solution Configuration to "Release" on the Standard
toolbar. Changing it to "Debug" fixed the problem with one of my apps.

On the app that didn't work, I:
Ensured Debug was selected on the Standard toolbar. When that didn't to it,
I selected "Configuration Manager..." from the dropdown (where we find debug
and release), made sure Debug was the Active Solution Configuration, then
ensured Debug was selected in the Configuration column (it WAS Release!)

Sincerely hope this helps you, Andy.
Paul

"aaj" wrote:
Thanks for the reply Paul

glad to know I'm not alone

I suppose the next step is to recreate the project on the other machine,
manually recreate all the classes and then paste the code in... what a
nightmare!!!

if I find anything else out I'll le you know.

cheers

Andy

"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:0D**********************************@microsof t.com...
I've all of a sudden encountered the "no source code" errors as well and
nothing really changed in my apps. Just all of a sudden they stopped
allowing me to debug them?! I, too, moved the source code from one
location
to another (my C: to the corporate network) but that was quite a while ago
and I'm fairly certain I've debugged successfully since then.

I started a new project and confirmed that I can debug it.
I've moved the source BACK to my C drive and still cannot debug.

Keep me posted on this and I'll let you know if I learn anything.
Paul

"aaj" wrote:
Hi all

I have written a small app on my machine that I have passed on to a
colleague for testing.

The problem is, as soon as he steps through in debug mode and reaches

try
{
conn.Open(); <- HERE

The error message 'There is no source code available for the current
location ' pops up. I should stress this is not a caught error, but one
the
IDE generates.

It can be temporarily fixed by us logging off, logging on and then
rebuilding the solution. It only works for one pass, and then the second
time you step through the error re appears.

I have searched Google and found a few references to the same problem,
but
no fixes. Microsoft knowledge base 318367 suggests a fix, but didn't
work.

There are two things I can see

1) I run .net framework 1.1.4322 while he has the same number but has
installed sp1

2) the other is the project originally lived on my D drive, but its on
his
C. .NET took care of most of the paths, but as suggested in article
318367,
I had to manually change the reference in the Solution properties. Doing
this fixed the problem for a single execution, but fails at the second
attempt.

one last thing, if we run in 'Release' everything runs fine

any help would be much appreciated

thanks

Andy


Jul 22 '05 #5
aaj
Thanks for that Paul, I'll give it a go today and report back

cheers

Andy

"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:EF**********************************@microsof t.com...
Oh how embarassing - I think I got it.
I had changed my Solution Configuration to "Release" on the Standard
toolbar. Changing it to "Debug" fixed the problem with one of my apps.

On the app that didn't work, I:
Ensured Debug was selected on the Standard toolbar. When that didn't to
it,
I selected "Configuration Manager..." from the dropdown (where we find
debug
and release), made sure Debug was the Active Solution Configuration, then
ensured Debug was selected in the Configuration column (it WAS Release!)

Sincerely hope this helps you, Andy.
Paul

"aaj" wrote:
Thanks for the reply Paul

glad to know I'm not alone

I suppose the next step is to recreate the project on the other machine,
manually recreate all the classes and then paste the code in... what a
nightmare!!!

if I find anything else out I'll le you know.

cheers

Andy

"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:0D**********************************@microsof t.com...
> I've all of a sudden encountered the "no source code" errors as well
> and
> nothing really changed in my apps. Just all of a sudden they stopped
> allowing me to debug them?! I, too, moved the source code from one
> location
> to another (my C: to the corporate network) but that was quite a while
> ago
> and I'm fairly certain I've debugged successfully since then.
>
> I started a new project and confirmed that I can debug it.
> I've moved the source BACK to my C drive and still cannot debug.
>
> Keep me posted on this and I'll let you know if I learn anything.
> Paul
>
> "aaj" wrote:
>
>> Hi all
>>
>> I have written a small app on my machine that I have passed on to a
>> colleague for testing.
>>
>> The problem is, as soon as he steps through in debug mode and reaches
>>
>> try
>> {
>> conn.Open(); <- HERE
>>
>> The error message 'There is no source code available for the current
>> location ' pops up. I should stress this is not a caught error, but
>> one
>> the
>> IDE generates.
>>
>> It can be temporarily fixed by us logging off, logging on and then
>> rebuilding the solution. It only works for one pass, and then the
>> second
>> time you step through the error re appears.
>>
>> I have searched Google and found a few references to the same problem,
>> but
>> no fixes. Microsoft knowledge base 318367 suggests a fix, but didn't
>> work.
>>
>> There are two things I can see
>>
>> 1) I run .net framework 1.1.4322 while he has the same number but has
>> installed sp1
>>
>> 2) the other is the project originally lived on my D drive, but its on
>> his
>> C. .NET took care of most of the paths, but as suggested in article
>> 318367,
>> I had to manually change the reference in the Solution properties.
>> Doing
>> this fixed the problem for a single execution, but fails at the second
>> attempt.
>>
>> one last thing, if we run in 'Release' everything runs fine
>>
>> any help would be much appreciated
>>
>> thanks
>>
>> Andy
>>
>>
>>


Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
2470
by: Lars-Erik Aabech | last post by:
Hi! I've got an asp.net page that works for all users except one and that one user only gets the error with a certain parameter set to a certain value. (Same value as the others, but for this...
4
2787
by: MrDotNet | last post by:
Hi I need help to debug the code in Dll I have myCom.dll and myCom.pdb files but I canot debug myCom.dll. Thanks -- -MrDotNet MCAD, MCSD Sr. Software Engineer / Lead Architect
2
11443
by: Richard | last post by:
While debugging my VB.NET application, I get to a certain point and get an error message pop up saying: There is no source code available for the current location I have searched the MS...
3
1927
by: Rena | last post by:
Hi all, I have created a app. project and a library which will be used by the main project, however i do not know how to get into debug mode inside the library, although break point is set. is...
5
359
by: aaj | last post by:
Hi all I have written a small app on my machine that I have passed on to a colleague for testing. The problem is, as soon as he steps through in debug mode and reaches try { conn.Open();...
2
3130
by: Michael | last post by:
Running DB2 v7 UDB ("DB2 v7.1.0.93", "n031208" and "WR21333") on Windows XP, I am unable to find out why the "Build for Debug" option within Stored Procedure Builder is not enabled on Java stored...
0
1183
by: Kay | last post by:
Hi all, Did anyone of you know about this message? ˇ§There is no source code avaliable for the current locationˇ¨
1
1674
by: Rene | last post by:
Hi, Given the following code: static void Main(string args) { Debug.Assert(false, "Oopsy"); } If I run the code above using a computer running Visual Studio 2005, I get
5
1711
by: Warren Tang | last post by:
Hi I am trying to debug the code generated for aspx files. The following assembly is generated for an aspx page: ...
0
6993
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...
0
7162
Oralloy
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,...
1
4899
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4584
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3088
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...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1411
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 ...
1
650
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
287
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.