错误 !!当前位置没有可用的源代码. [英] Error !! There is no source code available for current location.

查看:66
本文介绍了错误 !!当前位置没有可用的源代码.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是我的代码段.
此代码在ASP GUI后面运行.后端是Mysql
当我调试此代码并到达该行时

Below is my code snippet.
This code runs behind an ASP GUI. Backend is Mysql
When I debug this code and reach the line

Do Until rec_ddas_Feedback.EOF = False


它给了我以下错误
当前位置没有可用的源代码."


It gave me following error
"There is no source code available for current location."

Dim rec_ddas_Feedback As New ADODB.Recordset
Dim msgString As String
Dim msgcounter As Integer
If rec_ddas_Feedback.State = ADODB.ObjectStateEnum.adStateOpen Then
  rec_ddas_Feedback.Close()
  rec_ddas_Feedback.Open("SELECT dtofadd,dtofacc,remarks,Feedback from DDAS_remarks WHERE dtofadd BETWEEN ADDDATE(CURDATE(),INTERVAL -10 DAY) AND CURDATE() AND therapsitname='" + mdlusername + "' AND Feedback <> ''", cn, ADODB.CursorTypeEnum.adOpenKeyset, ADODB.LockTypeEnum.adLockOptimistic)
  msgString = ""
  msgcounter = 1
  Do Until rec_ddas_Feedback.EOF = False
    msgString = msgString + "<b>Message #" + msgcounter + " :</b><br>"
    msgString = msgString + "<Pre>For your remark on dated <b>" + Format(rec_ddas_Feedback.Fields("dtofadd").Value, "DD MMMM YYYY") + " </b>about amount mismatches in account of " + Format(rec_ddas_Feedback.Fields("dtofacc").Value, "DD MMMM YYYY") + "</Pre></br>"
    msgString = msgString + ". Your reply :" + rec_ddas_Feedback.Fields("remarks").Value
    msgString = msgString + "<br>. Feedback : " + rec_ddas_Feedback.Fields("remarks").Value
    rec_ddas_Feedback.MoveNext()
    msgcounter = msgcounter + 1
  Loop
  lblMsg.Text = msgString



但是,当我将查询放置在立即窗口中以将变量名替换为变量值并且在mysql QA上运行查询时,它给了我一条记录.



But, when I place the query in immediate window to replace the variable name with variable value and I ran the query on mysql QA it gave me one record.

推荐答案

可能,您还没有构建解决方案.
首先,在解决方案资源管理器中,右键单击解决方案并清除构建.
第二个重建应用程序
如果问题仍然存在:
关闭Visual Studio并再次将其重新打开..
Probably, you have not build your solution.
First,in solution explorer right click on solution and Clean Build.
Second Rebuild application
If problem still persists:
Close Visual studio and reopen it again..


是否可能是因为您在所说的行中尝试进入"(F11)?按下跳过" F10会发生什么?
Could it be that when you are on said line that you try to "step into" (F11)? What happens when you press "Step over" F10?


简单尝试一下.
如何解决VS错误当前位置无源代码" [ ^ ]
Simple try this.
How to Fix VS Error "There is No Source Code Available for the Current Location"[^]


这篇关于错误 !!当前位置没有可用的源代码.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆