我在C#Silverlight开发中使用了一个名为XAML spy的程序。我想在几个月前进行清理狂欢并将其删除。
今天我开了一个似乎仍然引用它的旧项目。运行代码会在我的silverlight控件顶部生成一个大红色条:
Failed to connect to the XAML Spy Service (127.0.0.1:4530). An attempt was made to a socket in a way forbidden by its access permissions
(button)
Reconnect
如何让我的项目忘记它曾与XAML间谍连接?
到目前为止我已尝试过:
查看该公司的网站 - 他们告诉我如何通过建议防火墙修复等来修复它,而不是如何摆脱它
签入.sln和.csproj文件(我没看到参考文献)
编辑:我在xxxx.Silverlight.csproj文件中找到了以下行
<Import Project="$(XamlSpyInstallPath)MSBuild\FirstFloor.XamlSpy.Silverlight.targets" Condition="'$(XamlSpyInstallPath)' != '' and '$(Configuration)' == 'DEBUG'" />
答案 0 :(得分:1)
大概是在设置连接时,您经历了这样的过程: http://xamlspy.com/learn/tutorials/connect
在这种情况下,撤消这些更改。即,打开App.xaml.cs
并删除您在此处定义的服务,或者如果您选择该方法,则将其从xaml <Application.ApplicationLifetimeObjects>
中删除。