473,769 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

No Source Code Error

Hi,

I have been debugging a new VB.Net Application and today, I have been
getting an error that I have not seen before

This error is now appearing on a line with the following code:
lnGUID = lnGUID * 1000 + DatePart(DateIn terval.DayOfYea r, Now)

this line runs fine in another App. The Error that I am getting is:
"There is no source code available for the current location"

I do not understand how the Microsoft explanation for this error applies to
the code that I have?

Any help appreciated

Doug

Nov 21 '05 #1
8 1728
CT
Are you running in Debug mode (F5)? If so, what result are you getting when
not running in Debug mode (CTRL+F5)?

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk

"Doug Bell" <Po*********@vo daphone.com.au> wrote in message
news:uA******** ********@TK2MSF TNGP15.phx.gbl. ..
Hi,

I have been debugging a new VB.Net Application and today, I have been
getting an error that I have not seen before

This error is now appearing on a line with the following code:
lnGUID = lnGUID * 1000 + DatePart(DateIn terval.DayOfYea r, Now)

this line runs fine in another App. The Error that I am getting is:
"There is no source code available for the current location"

I do not understand how the Microsoft explanation for this error applies
to
the code that I have?

Any help appreciated

Doug

Nov 21 '05 #2
"Doug Bell" <Po*********@vo daphone.com.au> schrieb:
I have been debugging a new VB.Net Application and today, I have been
getting an error that I have not seen before

This error is now appearing on a line with the following code:
lnGUID = lnGUID * 1000 + DatePart(DateIn terval.DayOfYea r, Now)

this line runs fine in another App. The Error that I am getting is:
"There is no source code available for the current location"


Post the complete error message. Maybe the error is occuring inside the
'DatePart' function and you have configured "Debug" -> "Exceptions ..." to
break even if the exception is being handled.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
That is the complete Error message. No Title or other text.

If I breake the line up adding:
dim datMyDate as Date = Now
Dim i as integer
i=DatePart(Date Interval.DayOfY ear, datMyDate )
then it errors on that line

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:OB******** *******@tk2msft ngp13.phx.gbl.. .
"Doug Bell" <Po*********@vo daphone.com.au> schrieb:
I have been debugging a new VB.Net Application and today, I have been
getting an error that I have not seen before

This error is now appearing on a line with the following code:
lnGUID = lnGUID * 1000 + DatePart(DateIn terval.DayOfYea r, Now)

this line runs fine in another App. The Error that I am getting is:
"There is no source code available for the current location"


Post the complete error message. Maybe the error is occuring inside the
'DatePart' function and you have configured "Debug" -> "Exceptions ..." to
break even if the exception is being handled.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4
CT
Hmm, the code works fine here. The message "There is no source code
available for the current location", means that the debugger is trying to
show the disassembly window. How is your project configured, Debug or
Release and how are you running it?

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk

"Doug Bell" <Po*********@vo daphone.com.au> wrote in message
news:uY******** ******@TK2MSFTN GP12.phx.gbl...
That is the complete Error message. No Title or other text.

If I breake the line up adding:
dim datMyDate as Date = Now
Dim i as integer
i=DatePart(Date Interval.DayOfY ear, datMyDate )
then it errors on that line

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:OB******** *******@tk2msft ngp13.phx.gbl.. .
"Doug Bell" <Po*********@vo daphone.com.au> schrieb:
> I have been debugging a new VB.Net Application and today, I have been
> getting an error that I have not seen before
>
> This error is now appearing on a line with the following code:
> lnGUID = lnGUID * 1000 + DatePart(DateIn terval.DayOfYea r, Now)
>
> this line runs fine in another App. The Error that I am getting is:
> "There is no source code available for the current location"


Post the complete error message. Maybe the error is occuring inside the
'DatePart' function and you have configured "Debug" -> "Exceptions ..." to
break even if the exception is being handled.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


Nov 21 '05 #5
Yes running in Debug

Ctl + F5
Seems to run through that line (based on setting MsgBoxes)

I need to step through in Debug to fix other issues.

Why would it run through using Start without Debugging but not when just
Start?

Doug

"CT" <ca******@spamm ersgoawayintegr asol.dk> wrote in message
news:Ol******** *****@TK2MSFTNG P12.phx.gbl...
Are you running in Debug mode (F5)? If so, what result are you getting when not running in Debug mode (CTRL+F5)?

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk

"Doug Bell" <Po*********@vo daphone.com.au> wrote in message
news:uA******** ********@TK2MSF TNGP15.phx.gbl. ..
Hi,

I have been debugging a new VB.Net Application and today, I have been
getting an error that I have not seen before

This error is now appearing on a line with the following code:
lnGUID = lnGUID * 1000 + DatePart(DateIn terval.DayOfYea r, Now)

this line runs fine in another App. The Error that I am getting is:
"There is no source code available for the current location"

I do not understand how the Microsoft explanation for this error applies
to
the code that I have?

Any help appreciated

Doug


Nov 21 '05 #6
CT
Have yout tried deleting both the bin and obj folders, and the rebuild your
solution before debugging (F5)?

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk

"Doug Bell" <Po*********@vo daphone.com.au> wrote in message
news:Op******** ******@TK2MSFTN GP14.phx.gbl...
Yes running in Debug

Ctl + F5
Seems to run through that line (based on setting MsgBoxes)

I need to step through in Debug to fix other issues.

Why would it run through using Start without Debugging but not when just
Start?

Doug

"CT" <ca******@spamm ersgoawayintegr asol.dk> wrote in message
news:Ol******** *****@TK2MSFTNG P12.phx.gbl...
Are you running in Debug mode (F5)? If so, what result are you getting

when
not running in Debug mode (CTRL+F5)?

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk

"Doug Bell" <Po*********@vo daphone.com.au> wrote in message
news:uA******** ********@TK2MSF TNGP15.phx.gbl. ..
> Hi,
>
> I have been debugging a new VB.Net Application and today, I have been
> getting an error that I have not seen before
>
> This error is now appearing on a line with the following code:
> lnGUID = lnGUID * 1000 + DatePart(DateIn terval.DayOfYea r, Now)
>
> this line runs fine in another App. The Error that I am getting is:
> "There is no source code available for the current location"
>
> I do not understand how the Microsoft explanation for this error
> applies
> to
> the code that I have?
>
> Any help appreciated
>
> Doug
>
>
>



Nov 21 '05 #7
CT Thanks,

It is configured as Debug
I run have a main form that loads and enables a timer
At configurable preset intervals it calls a Class.

I am trying to debug the code in the class so consequently stepping through
it.

I run it by clicking the Start button next to the Debug Combo on the
toolbar.

And have set various BreakPoints.

Doug

"CT" <ca******@spamm ersgoawayintegr asol.dk> wrote in message
news:uC******** ******@TK2MSFTN GP09.phx.gbl...
Hmm, the code works fine here. The message "There is no source code
available for the current location", means that the debugger is trying to
show the disassembly window. How is your project configured, Debug or
Release and how are you running it?

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk

"Doug Bell" <Po*********@vo daphone.com.au> wrote in message
news:uY******** ******@TK2MSFTN GP12.phx.gbl...
That is the complete Error message. No Title or other text.

If I breake the line up adding:
dim datMyDate as Date = Now
Dim i as integer
i=DatePart(Date Interval.DayOfY ear, datMyDate )
then it errors on that line

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:OB******** *******@tk2msft ngp13.phx.gbl.. .
"Doug Bell" <Po*********@vo daphone.com.au> schrieb:
> I have been debugging a new VB.Net Application and today, I have been
> getting an error that I have not seen before
>
> This error is now appearing on a line with the following code:
> lnGUID = lnGUID * 1000 + DatePart(DateIn terval.DayOfYea r, Now)
>
> this line runs fine in another App. The Error that I am getting is:
> "There is no source code available for the current location"

Post the complete error message. Maybe the error is occuring inside the 'DatePart' function and you have configured "Debug" -> "Exceptions ..." to break even if the exception is being handled.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>



Nov 21 '05 #8
CT,
Thanks
Deleting bin and obj folders and building the Solution has completely solved
the problem.

Doug
"CT" <ca******@spamm ersgoawayintegr asol.dk> wrote in message
news:eK******** *****@TK2MSFTNG P09.phx.gbl...
Have yout tried deleting both the bin and obj folders, and the rebuild your solution before debugging (F5)?

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk

"Doug Bell" <Po*********@vo daphone.com.au> wrote in message
news:Op******** ******@TK2MSFTN GP14.phx.gbl...
Yes running in Debug

Ctl + F5
Seems to run through that line (based on setting MsgBoxes)

I need to step through in Debug to fix other issues.

Why would it run through using Start without Debugging but not when just
Start?

Doug

"CT" <ca******@spamm ersgoawayintegr asol.dk> wrote in message
news:Ol******** *****@TK2MSFTNG P12.phx.gbl...
Are you running in Debug mode (F5)? If so, what result are you getting

when
not running in Debug mode (CTRL+F5)?

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk

"Doug Bell" <Po*********@vo daphone.com.au> wrote in message
news:uA******** ********@TK2MSF TNGP15.phx.gbl. ..
> Hi,
>
> I have been debugging a new VB.Net Application and today, I have been
> getting an error that I have not seen before
>
> This error is now appearing on a line with the following code:
> lnGUID = lnGUID * 1000 + DatePart(DateIn terval.DayOfYea r, Now)
>
> this line runs fine in another App. The Error that I am getting is:
> "There is no source code available for the current location"
>
> I do not understand how the Microsoft explanation for this error
> applies
> to
> the code that I have?
>
> Any help appreciated
>
> Doug
>
>
>



Nov 21 '05 #9

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

Similar topics

1
2577
by: M.E.Farmer | last post by:
Hello c.l.py!, I have just finished this and decided to share. PySourceColor is a module to convert Python source into colored html. Yes it has been done before, but I like this better:) You can easily define your own colorscheme. example usage: # Highlight PySourceColor.py python PySourceColor.py or # Show help
2
3546
by: Next | last post by:
Hello all, I have a windows service that was suppose to write some events into its own EventLog. I created the EventLog using the component on VS 2003 toolbar Added an installer for it. Set all the appropriate properties to assign the new Source to a new log. For some reason installutil.exe created the source in the correct log. But
8
2245
by: Alvo von Cossel I | last post by:
hey everybody, I have written a great browser but it is missing a feature (quite a lot actually, but forget about them for now). that feature just so happens to be the View > Source function. for those of you who don't what i mean, it is when you click a button in the view menu that says Page source (in Netscape) and source (in Internet Explorer). if you click it, notepad opens. in that window is the html for the page. anyway, does...
5
1327
by: Pavils Jurjans | last post by:
Hello, I have to debug an ASP.NET project which is hosted on the remote server, and it is not possible to achieve the same environment on localhost. So, I need to debug on the remote site. Problem with the remote is, that when runtime error occours, I nicely get the error description, stack trace, but under the "source error" subheading, instead of the source code with line numbers and code fragment, I see text "An unhandled exception...
24
16092
by: Roman | last post by:
Hello to everybody, I have some question concerning blocking view source from main menu of IE or MF. I am able to block right click with <body oncontextmenu="return false"> but still missing from main View->Source Code. Any hints ? Regards, Roman
2
1532
by: Booker Washington | last post by:
ORIGINAL POST BELOW.. this is an addendum.... read from THE ORIGINAL POST first and below... andthen come back up to this section now upon further reading, i can provide some more context....... Here is what my global.asax file contains <%@ Application Codebehind="Global.asax.vb" Inherits="GT.Global" %> below is some of the code from the default.aspx file. My global.asax
0
7717
by: gm | last post by:
Immediately after generating the Access application from the Source Safe project I get: "-2147467259 Could not use ''; file already in use." If Access database closed and then reopened I get: "-2147467259 The database has been place in a state by user 'Admin' on machine ..... that prevents it from being opened or locked."
135
7518
by: Xah Lee | last post by:
Tabs versus Spaces in Source Code Xah Lee, 2006-05-13 In coding a computer program, there's often the choices of tabs or spaces for code indentation. There is a large amount of confusion about which is better. It has become what's known as “religious war” — a heated fight over trivia. In this essay, i like to explain what is the situation behind it, and which is proper.
4
57108
by: aSoundMind | last post by:
Hi there, I recieve this error Server Error in '/integrate' Application. -------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
13
3118
by: treble54 | last post by:
I need to build PHP from source with the pdo_ibm extension and I am having an issue with it. Firstly, I am using Visual Studio .NET 2003 and I am building PHP from source through the Visual Studio Command Prompt. When I get to the nmake step, it gets through everything until it hits the zend_language_scanner.l file. Then I get these errors: zend_language_scanner.l(24) : warning C4005: 'yyleng' : macro redefinition...
0
9589
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10047
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
9863
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...
1
7410
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
6674
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5304
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
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.