我正在使用 Microsoft Silverlight 3 开发一个小型 Web 应用程序。我使用 Microsoft Expressin Blend 3 进行 UI 开发,使用 Visual Studio 2008 进行“代码隐藏”。从 Blen 3 调试项目时,一切正常。Silverlight 会自动嵌入到 TestPage 并从
但是,当从 Visual Studio 2008 启动调试器时,silverlight 应用程序会自动嵌入到 TestPage.html 中,但知道从 file:// 加载,如下所示:
file:///C:/Documents%20and%20Settings/JadaJada/My%20Documents/Expression/Blend%203/Projects/JadaJada/JadaJada/Bin/Debug/TestPage.html
结果,应用程序无法运行(这可能是因为应用程序使用 WebClient向http://localhost/发出了一些 HTTP 请求)。
有谁知道如何让 Visual Studio 从http://localhost/而不是 file:///C:/JadaJada/ 加载 TestPage.html ?
感谢您的帮助!