Visual Studio 2010 Silverlight 项目在浏览器中打开为 file:// 而不是 localhost://
由于某种奇怪的原因,我正在处理的主要项目现在在浏览器中以 file:// 打开,而不是像以前那样从 localhost:// 打开。我不知道我更改了任何设置以使其执行此操作,并且在我调试时 Visual Studio ASP.NET 开发服务器仍然启动。我的所有其他项目在运行时仍然从开发服务器加载。
为什么这个项目突然决定要作为常规文件运行而不是从开发服务器运行?我该如何修复它,以便它再次从本地主机加载?
谢谢,
-苏塔
My main project I'm working on for some odd reason opens up in the browser as a file:// now instead of from localhost:// like it used to. I am unaware of any settings I changed to make it do this, and the Visual Studio ASP.NET Development Server still launches when I debug. All of my other projects still load from the development server when they are run.
Why would this one project suddenly decide that it wants to run as a regular file instead of from the Development Server? How can I fix it so that it loads from localhost as it should once more?
Thanks,
-Sootah
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当我在 Visual Studio 中的启动项目是 Silverlight 项目时,我遇到了同样的问题。确保将解决方案中的启动项目设置为 Web 应用程序/站点项目。
I ran into the same issue when my startup project in Visual Studio was the Silverlight project. Make sure to set the startup project in your solution to the web application/site project.