LicenseService.cs 未找到

LicenseService.cs not found

我购买了使用 ImageResizer.Sqlreader 的许可证,我已经在我网站的一个部分使用它,现在我正试图让它在我们网站的一个单独部分使用。在我的 AddImage 页面上(在本地主机上),调试器在一行代码上显示:

ImageBuilder.Current.Build(file, ms, resizeCropSettings)

它让我出错,显示 "Source Not Found""LicenseService.cs not found""You need to find LicenseService.cs to view the source for the current call stack frame."

我在此项目中安装的 ImageResizer NuGet 包与我在已经工作的项目中安装的相同:

Gist of diagnostics page

使用上下文

Dim resizeCropSettings As New ResizeSettings("maxwidth=1600&maxheight=1600&format=jpg&autorotate=true")

Using ms As New MemoryStream()
   ' Resize the image
   ImageBuilder.Current.Build(file, ms, resizeCropSettings) ' *** Fails to step through here
    bytData = ms.ToArray()
End Using

能请教一下吗?提前致谢。

这个问题中的 ImageResizer 代码运行正常。问题是由于我的代码将图像项保存到数据库时出错(类型不匹配)。按照 Nathanael 的建议设置断点允许我调试过去 "LicenseService.cs not found" 错误。