Silverlight 4 浏览器外:“无法从 Web 确定 Xap 文件的 URL”
由于某种原因,每当我现在尝试在浏览器外运行 SL4 应用程序时,我都会收到以下消息:
“无法从 Web 确定 Xap 文件的 URL”
指的是我的 Web 的旧名称项目,现已更名。我已经浏览了该项目名称的所有参考文献,但找不到更多;显然它是从某个地方得到的!
谷歌搜索但什么也没找到(除了一个现在已删除的问题的链接!)。
任何帮助感激不尽...
For some reason, whenever I now try and run my SL4 application out-of-browser, when I run it I get the following message:
"Unable to determine the URL to the Xap file from web "
refers to an old name of my web project, and it has now been renamed. I've gone through all references of said project name and can't find any more; clearly it's getting it from somewhere though!
Googled but found nothing (aside from a link to an SO question which is now removed!).
Any help gratefully received...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该问题来自项目用户文件的错误配置。 VS在调试过程中找不到它应该使用哪个XAP文件。
在 myproject.csproj.user 文件中,更改
为
The issue comes from a misconfiguration of the project's user file. VS can't find which XAP file it should use during the debugging experience.
In the myproject.csproj.user file, change
to
在 Silverlight 5 和 Visual Studio 2012 中:
In Silverlight 5 and Visual Studio 2012:
Debug
tab and click on combobox, then select existing value. Usually there will be only one item (already selected), but it's important to click on it.