不存在方法的 PRISM 异常

发布于 2024-09-12 14:56:18 字数 702 浏览 1 评论 0原文

我在我的一个项目中使用 PRISM for Silverlight 4.0,在该项目中我还访问 Sharepoint 2010。

奇怪的是,我随机收到错误:

初始化模块“SharepointServiceModule”时发生异常。 - 异常消息是: Die Methode add_GetListCompleted im Typ SharepointServiceModule.Services.SharepointObjectModelService der Assembly SharepointServiceModule,Version=1.0.0.0,Culture=neutral,PublicKeyToken=null hat keine Implementierung。 - 模块尝试从中加载的程序集是:SharepointServiceModule、Version=1.0.0.0、Culture=neutral、PublicKeyToken=null 检查异常的 InnerException 属性以获取更多信息。如果在DI容器中创建对象时发生异常,可以通过Exception.GetRootException()来帮助定位问题的根本原因。

这对我来说非常奇怪,因为首先它只是随机发生,其次方法“add_GetListCompleted”是一个必须实现的事件,因为我使用它并且它有效。

有人知道这里发生了什么吗?

I am using PRISM for Silverlight 4.0 in one of my projects where I also access Sharepoint 2010.

The strange thing is that randomly I get the error:

An exception occurred while initializing module 'SharepointServiceModule'.
- The exception message was: Die Methode add_GetListCompleted im Typ SharepointServiceModule.Services.SharepointObjectModelService der Assembly SharepointServiceModule, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null hat keine Implementierung.
- The Assembly that the module was trying to be loaded from was:SharepointServiceModule, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Check the InnerException property of the exception for more information. If the exception occurred while creating an object in a DI container, you can exception.GetRootException() to help locate the root cause of the problem.

Which is very strange for me because first of all it happens only randomly and second that the method "add_GetListCompleted" is an event which must be implemented because I use it and it works.

Does anybody have an idea of whats going on here?

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

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

发布评论

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

评论(1

冷心人i 2024-09-19 14:56:18

我找到了解决我的问题的方法。

首先,我尝试更改接口的名称,我注意到错误消息中的接口名称没有更改。

因此,我从 Web 项目中删除了受影响的 xap 模块(这可以在“Silverlight 应用程序”下的“name.Web”项目的属性中完成)并再次添加它。然后我清理了解决方案并进行了重建。之后一切都很顺利......

I found a solution for my problem.

First I tried to change the name of the interface and I noticed that the interface name did not change in the error message.

Therefore I removed the affected xap module from the Web project (this can be done in the properties of the "name.Web" project under "Silverlight Applications") and added it again. Then I performed a clean of the solution and a rebuild. After that everthing worked fine...

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