我启动了VS2013 VB.Net MVC5 Web应用程序,在HomeController中设置断点关于方法并运行"开始调试",导航到"关于"页面并接收"Code not running - The current Thread is not currently running or the call stack could not be obtained"
阻止任何调试的消息.
如果我在Global.asax Application_Start中设置断点,断点工作正常.更改"启用编辑并继续"没有任何区别.
任何人都有任何想法发生了什么?
更新:我的环境是带有VS2013 Ultimate的Windows 8.0 Pro.
我已经刷新了我的系统并完成了全新安装的Windows 8.1 Pro,VS2010 Ultimate,VS2012 Ultimate和VS2013 Ultimate.
在所有3个版本的VS上完成相同的测试 - 文件>新建项目> MVC(默认).所有3个版本的VS都在报告" Process with an Id of xxx is not running.
"
VS2013调试跟踪报告"The program '[7720] iisexpress.exe: Program Trace' has exited with code 0 (0x0). The program '[xxxx] iisexpress.exe' has exited with code -1073741816 (0xc0000008) 'An invalid handle was specified'. …
asp.net-mvc visual-studio-debugging iis-express visual-studio-2013 asp.net-mvc-5
我正在通过转换现有项目来自学C#,并且无法转换以下vb linq代码:
Dim outStuff = From tt In (From t In Products.SelectMany(Function(p) If(p.tags IsNot Nothing, p.tags, New ObservableCollection(Of TagModel)))
Group By tagName = t.name,
v = (Aggregate p In Products Where If(p.tags IsNot Nothing, p.tags.Contains(t), Nothing) Into Sum(p.views)),
nl = (Aggregate p In Products Where If(p.tags IsNot Nothing, p.tags.Contains(t), Nothing) Into Sum(p.num_likes))
Into g = Group, Count())
Group By name = tt.tagName Into Count = Sum(tt.Count), viewsTotal = Sum(tt.v), num_likesTotal = Sum(tt.nl)
Select name, Count, viewsTotal, num_likesTotal
Run Code Online (Sandbox Code Playgroud)
哪里 Products As …
我正在将数据发布到服务器并成功执行BeginGetRequestStream,然后是EndGetRequestStream,将我的POST数据写入填充RequestStream,并调用BeginGetResponse.
BeginGetResponse成功返回,然后我调用:
Dim response As HttpWebResponse = CType(MyHttpRequest.EndGetResponse(asynchronousResult), HttpWebResponse)
Run Code Online (Sandbox Code Playgroud)
此行抛出以下SecurityException错误:
{System.Security.SecurityException ---> System.Security.SecurityException:安全错误.
System.Net上的System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
,System.Net.Browser.AsyncHelper上的<> c__DisplayClass5.b__4(Object sendState)
.<> c__DisplayClass2.b__0(Object sendState)---内部异常堆栈跟踪的结尾---
在System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod,对象状态)
在System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult的asyncResult)
在EtsyV2NetSL.WebQuery.POST_ResponseCallback( IAsyncResult asynchronousResult)}
所以我的第一个想法是我被服务器用clientaccesspolicy.xml或crossdomain.xml阻止.我已经解雇了Fiddler并看到了以下内容:
GET http://openapi.etsy.com/clientaccesspolicy.xml > 596 (text/xml)
GET http://openapi.etsy.com/crossdomain.xml > 200 OK (application/xml)
Run Code Online (Sandbox Code Playgroud)
所以我检查了他们的crossdomain.xml,设置显示正常:
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*"/>
</cross-domain-policy>
Run Code Online (Sandbox Code Playgroud)
我试图解决这个问题已经走到了尽头.我在VS的开发机器上运行测试应用程序.
有没有人有任何想法为什么Silverlight会抛出这个错误?
谢谢