By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,498 Members | 1,564 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,498 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.