473,657 Members | 2,585 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Connec tionString = "Data Source=" & .Svr & ";Initial Catalog=" &
..DB & ";user ID=" & .User & ";password= " & .PWord & ";Persist Security
Info=True;Packe t 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 15930
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 InvalidManifest Exception
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*@discussion s.microsoft.com > wrote in message
news:51******** *************** ***********@mic rosoft.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
3712
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 that says: "There is no source code available for the current location." If I click OK, it still runs the code, but it will not allow me to run it in break mode after that point, even if I put a Stop statement in the code. It ignores the Stop statement. It was originally running into this...
5
3126
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(); <- HERE
0
1263
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 research for our honours year thesis. Our current research covers open source projects, its communities, developers and users. In our study, we hope to be able to solicit the objective opinions of MySQL users and developers to provide support for proposed theories in our study through a survey.
1
5642
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 works find and as expected. The problem is that the second time I step through and I step on the line myDataAdapter1.Fill(tempds); I get the IDE error... "There is no source code available for the current location". If I run the app (not under the debugger) I get no error messages but this...
1
4475
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 error: "There Is No Source Code Available For The Current Location" And when I do succeeded debugging the script, I get the same error when trying to debug a function from an included JS file. I tried: restarting the computer shutting down the computer
2
11455
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 Knowledge base and found the article 318367 (http://support.microsoft.com/default.aspx?scid=kb;en-us;318367) which refers to this problem and suggests making a change to the registry key HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\7.0. I have...
4
283
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 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...
0
1643
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 with code and all that I am steping through. When I get to a certain spot I get the "There is no source code available for the current location." error, which I completely expect because it is a dll. My issue is that I have the source code for the dll and I was wondering if there was a way to...
2
1642
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 any code in library file or blogic file it is building successfully but, while running it will throw an error "There is no source code available for current location"..? Thanks, Aswath.
0
8827
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7333
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6167
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4158
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4315
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2731
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 we have to send another system
2
1620
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.