visual studio 2015 xsl调试转换失败WebException SocketException [英] visual studio 2015 xsl debugging transformation failed WebException SocketException
问题描述
在VS 2015中调试xslt时,出现以下错误消息
When debugging an xslt in VS 2015 I get the following error message
"xsl转换失败,请参见输出窗口以获取详细信息WebException无法连接到远程服务器SocketException无法建立连接,因为目标计算机主动拒绝它127.0.0.1:1234"
"xsl transformation failed see output window for details WebException Unable to connect to the remote server SocketException No connection could be made because the target machine actively refused it 127.0.0.1:1234"
如果我使用xml文档中的光标开始调试(与xsl相对),则有时可能会奏效,但并非总是如此.
If I start debugging with my cursor in the xml document (as opposed to xsl) it sometimes works, but not always.
推荐答案
在我的Web项目中,我通过单击"debug->无需调试即可启动"来解决此问题.然后,我可以按照常规方式进行Visual Studio xsl调试.
In my web project I fixed this by clicking 'debug->start without debugging'. I could then do visual studio xsl debugging in the normal way.
我不确定为什么可以解决此问题.但是我认为xsl调试器正在从localhost获取xml模式,并且由于未启动127.0.0.1:1234,因此无法获取它.
I'm not sure why this fixed the issue. But I think the xsl debugger was fetching an xml schema from localhost and, since 127.0.0.1:1234 wasn't started it wouldn't be able to get it.
但是它试图从本地主机获取什么呢?我正在猜测,但是当我将光标放在xsl文档中并单击xml-> schemas时,我看到了本地项目中的xsd. VS可能以某种方式认为它参与了转换,但事实并非如此.
But what is it trying to fetch from localhost? I'm guessing, but when I put the cursor in the xsl document and clicked xml->schemas I saw an xsd from the local project. Somehow VS may have thought it was involved in the transfomration, but it wasn't.
我也确实在xsl中使用了文档功能.但是我可以在浏览器中请求这些文档,所以我认为它们不会导致请求被拒绝.
I did also use the document function in the xsl. But I could request those documents in a browser so I don't think they could have caused a request refusal.
另一种可能性是文档功能是从生产域请求非dev(非本地主机)xml文档.正如我所说,该文档是可提取的,但是也许存在一个原产地限制的域吗?
One other possibility is the document function was requesting a non-dev (non localhost) xml document from the production domain. As I said, the document was fetchable, but perhaps there was a domain of origin restriction?
这篇关于visual studio 2015 xsl调试转换失败WebException SocketException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!