There is no source available for the current location

前端 未结 5 421
终归单人心
终归单人心 2021-01-03 01:56

I am getting this error.

Locating source for \'C:\\Users\\cem\\Documents\\Visual Studio 2008\\Projects\\CS.Web.Controls\\WebCropImage\\CropImage.cs\'. Checks         


        
5条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-03 02:43

    Likely what is happening, is that DLL that you've referenced is throwing an exception when you're calling it. When you're debugging, Visual Studio would like you show you the line of code that is throwing the error, but it doesn't know where the source is. Usually, in my environment, it will prompt you to locate the source file and open it so that it can show you additional debug information. I would usually get the error you mention, when I press cancel on that dialog since I either don't have the source, or don't care what the source is

提交回复
热议问题