472,353 Members | 1,210 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

There is no source code available for the current location

Ray
I have an application that is suddenly having some very strange problems. If
I step through the following code;
With AppSetting
conRules.ConnectionString = "Data Source=" & .Svr & ";Initial Catalog=" &
..DB & ";user ID=" & .User & ";password=" & .PWord & ";Persist Security
Info=True;Packet Size=4096;"
conRules.Open()
End With
I get the above error message however after clearing the message I can't
step through the code but if i press F5 the code continues to run.
If however I just run the code, the error message doesn't appear?
This seems to create another problem - all breakpoints following the above
code are ignored. It doesn't appear to matter if I step through the
offending code or put the first breakpoint after it - the code just runs
without stopping.
Even stranger, I started a new project to test the above couple of lines and
they work perfectly?
Needless to say any suggestions to correct this problem would be appreciated.
Jul 21 '05 #1
4 15819
Ray,

Two possible big changes which can give this behavioru.

Threading (not the most probably)
Recursive routines (call the procedure in itself).

This can by instance happen because you do that yourself
You have not send an end for that
You are changing in an event the reason the event is fired.

The last is the most likely

I hope this helps?

Cor
Jul 21 '05 #2
Ray
Thanks Cor however I haven't used threading or any recursive routimes in this
application. The application is pretty standard, open a datareader, loop
through each of the records and close it.

"Cor Ligthert" wrote:
Ray,

Two possible big changes which can give this behavioru.

Threading (not the most probably)
Recursive routines (call the procedure in itself).

This can by instance happen because you do that yourself
You have not send an end for that
You are changing in an event the reason the event is fired.

The last is the most likely

I hope this helps?

Cor

Jul 21 '05 #3
Not any event?

Cor
Jul 21 '05 #4
Hi Ray,

I missed the original message. I assume it is this one, from your title:
http://msdn.microsoft.com/library/en...ndialogbox.asp

The obvious cause for this is that you are debugging code that you are
compiling using the Release profile instead of the Debug profile. Now, on
to some less obvious causes, in case you already thought of that.

Is this in VS2003 or VS2005. The reason I ask: if this is in VS2005, then
the following snippet from the VS2005 readme may be interesting:
"Characters that are not used in English, such as Chinese characters, might
cause build errors when used in project names. Errors include: There is no
source code available for the current location. and InvalidManifestException
was unhandled."

Another option: do you use timers in your app? If so, see:

http://support.microsoft.com/default...;EN-US;Q329247

This problem happens periodically. Here is another thread with a similar
issue:

http://www.dotnet247.com/247referenc...52/264597.aspx

If none of this helps, know that this has happened to me as well, once, when
using VS2002. At the time I was stumped and couldn't figure it out. After
banging my head against it for three hours, I kinda cheated. I created a
new project, and added all of the existing .cs files into it. Problem
disappeared. I still can't figure out why it happened, but I'm not exactly
obsessing about it either.

I hope some of this is helpful to you.
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Ray" <Ra*@discussions.microsoft.com> wrote in message
news:51**********************************@microsof t.com...
Thanks Cor however I haven't used threading or any recursive routimes in this application. The application is pretty standard, open a datareader, loop
through each of the records and close it.

"Cor Ligthert" wrote:
Ray,

Two possible big changes which can give this behavioru.

Threading (not the most probably)
Recursive routines (call the procedure in itself).

This can by instance happen because you do that yourself
You have not send an end for that
You are changing in an event the reason the event is fired.

The last is the most likely

I hope this helps?

Cor

Jul 21 '05 #5

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

Similar topics

1
by: Phil Galey | last post by:
I'm developing in VB.NET 2002 on Windows 2000 SP4. When I'm running my application in the design environment, it generates an error at one point...
5
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...
0
by: Goh, Yong Kwang | last post by:
Dear all, We are Chen, Kian Siong and Goh, Yong Kwang from the National University of Singapore (NUS), School of Computing performing academic...
1
by: Randy | last post by:
Hello All, I've got an app which performs a simple query to a web service and stores the returning data in a DataSet. The first time through it...
1
by: Ram | last post by:
Hey, I have a ASP.NET web application, And whenever I try to debug a JScript/VBScript block (using- "stop", or - "debugger;") I get the following...
2
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...
4
by: Ray | last post by:
I have an application that is suddenly having some very strange problems. If I step through the following code; With AppSetting...
0
by: Bobzilla | last post by:
Ok, so I've looked around and I can't seem to find an answer to my specific question, so here goes... I am using VS 2003 and I have a solution...
2
by: bhappy | last post by:
Hai All, Im developing project using 3-tire architecture,im adding references of library and business logic files to main application, If i change...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

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.