I have a VB.NET VS2010 solution with a WinForms project that calls a web site project in the same solution.
我有一个带有WinForms项目的VB.NET VS2010解决方案,它在同一个解决方案中调用一个网站项目。
I can step into this web method: <WebMethod()> Public Function GetStartUpData() As DataSet
我可以进入这个Web方法:
and other web methods, but not the following method. I wonder if it has to do with the fact that that is the only web method that uses a parameter of Nullable type.
和其他Web方法,但不是以下方法。我想知道它是否与使用Nullable类型参数的唯一Web方法有关。
The method works, I just can't step into it .If I try, I get the error:
该方法有效,我只是不能介入它。如果我尝试,我得到错误:
Unable to automatically step into server. unable to determine a stopping location
无法自动进入服务器。无法确定停止位置
Is this a bug? Is there a work-around?
这是一个错误吗?有解决方法吗?
<WebMethod()>
Public Function RetrieveOrdersByFilter( _
ByVal customerId As Nullable(Of Integer), _
ByVal fromDate As Nullable(Of Date), _
ByVal toDate As Nullable(Of Date), _
ByVal fromStatusCodeId As Nullable(Of Integer), _
ByVal toStatusCodeId As Nullable(Of Integer)) As DataSet
6 个解决方案
#1
5
For those who enter here, my solution was by setting the output to "Debug".. silly I know...
对于那些进入这里的人,我的解决方案是将输出设置为“Debug”..傻我知道......
Did found it through Leniel's links :)
通过Leniel的链接找到了:)
#2
1
There is an option in Tools -> Options -> Debugging _> General called 'Enable Just My Code
', unchecking this solved the problem for me.
工具 - >选项 - >调试_>通用中有一个选项叫做'启用我的代码',取消选中这个解决了我的问题。
#3
0
For anyone who stumbles here, i also had this problem, but my solution was different than what is posted so far.
对于那些偶然发现的人,我也有这个问题,但我的解决方案与目前发布的不同。
My issue was that my application pool for my web service was running .net 4 when my application (an older one) was expecting .net 2.
我的问题是,当我的应用程序(较旧的应用程序)期待.net 2时,我的Web服务的应用程序池正在运行.net 4。
While still functional, i was unable to debug my web service until i created an application pool for it in IIS that used .net 2.
虽然仍然可以使用,但我无法调试我的Web服务,直到我在使用.net 2的IIS中为它创建了一个应用程序池。
#4
0
I my case it stumbled because not all dependency assemblies of the web service exist in the folder where the web service is running, with the detailed exception could figure out the missing ones
我的情况很糟糕,因为并非Web服务的所有依赖程序集都存在于运行Web服务的文件夹中,详细的例外情况可能会找出丢失的
#5
0
I had the same issue and all I needed to do was copy the [your_dll_file_name].pdb file and it was able to attach to the code.
我有同样的问题,我需要做的就是复制[your_dll_file_name] .pdb文件,它能够附加到代码中。
#6
0
I also had the same issue in VS 2013.
我在VS 2013中也有同样的问题。
I just replaced the target framework from 4.0 to 4.5 in web.config of the called project as shown below:
我刚刚在被调用项目的web.config中将目标框架从4.0替换为4.5,如下所示:
<compilation debug="true" targetFramework="4.5" />
#1
5
For those who enter here, my solution was by setting the output to "Debug".. silly I know...
对于那些进入这里的人,我的解决方案是将输出设置为“Debug”..傻我知道......
Did found it through Leniel's links :)
通过Leniel的链接找到了:)
#2
1
There is an option in Tools -> Options -> Debugging _> General called 'Enable Just My Code
', unchecking this solved the problem for me.
工具 - >选项 - >调试_>通用中有一个选项叫做'启用我的代码',取消选中这个解决了我的问题。
#3
0
For anyone who stumbles here, i also had this problem, but my solution was different than what is posted so far.
对于那些偶然发现的人,我也有这个问题,但我的解决方案与目前发布的不同。
My issue was that my application pool for my web service was running .net 4 when my application (an older one) was expecting .net 2.
我的问题是,当我的应用程序(较旧的应用程序)期待.net 2时,我的Web服务的应用程序池正在运行.net 4。
While still functional, i was unable to debug my web service until i created an application pool for it in IIS that used .net 2.
虽然仍然可以使用,但我无法调试我的Web服务,直到我在使用.net 2的IIS中为它创建了一个应用程序池。
#4
0
I my case it stumbled because not all dependency assemblies of the web service exist in the folder where the web service is running, with the detailed exception could figure out the missing ones
我的情况很糟糕,因为并非Web服务的所有依赖程序集都存在于运行Web服务的文件夹中,详细的例外情况可能会找出丢失的
#5
0
I had the same issue and all I needed to do was copy the [your_dll_file_name].pdb file and it was able to attach to the code.
我有同样的问题,我需要做的就是复制[your_dll_file_name] .pdb文件,它能够附加到代码中。
#6
0
I also had the same issue in VS 2013.
我在VS 2013中也有同样的问题。
I just replaced the target framework from 4.0 to 4.5 in web.config of the called project as shown below:
我刚刚在被调用项目的web.config中将目标框架从4.0替换为4.5,如下所示:
<compilation debug="true" targetFramework="4.5" />