无法调试 Silverlight 项目

发布于 2024-12-28 07:49:33 字数 1605 浏览 6 评论 0原文

在sharepoint项目(解决方案文件)中,我有一个silverlight项目(项目A)和类库(项目B)。在类库中,我在项目B中引用了silverlight项目(项目A)。这是项目B中的代码

<object id="Sample_ID" data="data:application/x-silverlight-2," type="application/x-silverlight-2" >
        <param name="source" value="/_layouts/clientbin/Sample.xap">
            <param name="onError" value="onSilverlightError">
                <param name="background" value="transparent">
                    <param name="initParams" value="Name=Sample">
                        <param name="isWindowless" value="true">
                        <param name="minRuntimeVersion" value="4.0.50826.0">
                        <param name="autoUpgrade" value="true">
            <a href="http://go.microsoft.com/fwlink/?LinkID=149156&amp;v=4.0.50826.0" style="text-decoration:none">
            <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none">             
</object>

我无法调试 silverlight 项目。我已经浏览了以下链接,但它对我没有帮助 http://msdn.microsoft.com/en-我们/library/cc838267(v=vs.95).aspx http://www.codeproject.com/Tips/68127/Unable-to-DEBUG-Silverlight-project http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/bb6dd346-a3c6-4ab2-95fd-3e6c76280e17/

任何人都可以提供此问题的解决方案?

In sharepoint Project(Solution File) I am having a silverlight project(Project A) and Class library(Project B).In the class library I have referred the silverlight project(Project A) in Project B. Here is the code in Project B

<object id="Sample_ID" data="data:application/x-silverlight-2," type="application/x-silverlight-2" >
        <param name="source" value="/_layouts/clientbin/Sample.xap">
            <param name="onError" value="onSilverlightError">
                <param name="background" value="transparent">
                    <param name="initParams" value="Name=Sample">
                        <param name="isWindowless" value="true">
                        <param name="minRuntimeVersion" value="4.0.50826.0">
                        <param name="autoUpgrade" value="true">
            <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50826.0" style="text-decoration:none">
            <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none">             
</object>

I am unable to debug the silverlight project. I have gone through the following links but it didn't help me
http://msdn.microsoft.com/en-us/library/cc838267(v=vs.95).aspx
http://www.codeproject.com/Tips/68127/Unable-to-DEBUG-Silverlight-project
http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/bb6dd346-a3c6-4ab2-95fd-3e6c76280e17/

Could anyone provide a solution for this issue ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

怪我太投入 2025-01-04 07:49:33

确保您尚未启用 javascript 调试,这会禁用 Silverlight 调试。

在解决方案资源管理器中,找到您的 Web 项目(在您的情况下,这将是项目 B?),右键单击并选择“属性”。
转到“Web”选项卡,在详细信息面板中向下滚动,以便您可以在底部看到“调试器”部分。确保选中 ASP.NETSilverlight 选项。

Ensure that you haven't enabled javascript debugging, which in turn disables Silverlight debugging.

In the solution explorer, locate your web project (in your case, this would be Project B?), right click and select Properties.
Go to the Web tab, in the details panel scroll down so you can see the Debuggers section at the bottom. Ensure that the ASP.NET and Silverlight options are checked.

风流物 2025-01-04 07:49:33

我已经多次遇到此问题,通常会执行以下操作:

  1. 手动删除构建时生成的所有二进制文件(类似于 Clean)
  2. 从托管 Web 项目中删除 Silverlight 应用程序(在项目属性中的 Silverlight 应用程序选项卡下 ) )并再次将其添加到项目中重新
  3. 启动 Visual Studio

另外,您可能需要仔细检查您的调试项目是否有 Silverlight(在项目属性的 Web 选项卡下),尽管我相信 VS2010 通常会提示您是否想要执行此操作

I've run into this issue more than a few times and I usually do the following:

  1. Manually delete all of the binaries generated at build (similar to Clean)
  2. Remove the Silverlight application from the hosting web project (under Silverlight Applications tab in project properties) and add it into the project again
  3. Restart Visual Studio

Also, you may want to double check that your debugging project has Silverlight (under Web tab in project properties) though I believe VS2010 typically prompts if you want to do this anyways

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文