我想在WCF中使用.net 4的发现。但无论我做什么,我得到这个不是很有用例外:(堆栈跟踪实际上是空的)WCF发现:接口没有发现异常
System.ArgumentException crossed a native/managed boundary Message=Interface not found. Source=mscorlib StackTrace: at System.RuntimeTypeHandle.VerifyInterfaceIsImplemented(RuntimeTypeHandle handle, RuntimeTypeHandle interfaceHandle) at System.RuntimeType.GetInterfaceMap(Type ifaceType) at Microsoft.VisualStudio.Diagnostics.ServiceModelSink.ServiceMethodResolver.ResolveMethodInfo(Type implementationType, MethodInfo contractMethod) at Microsoft.VisualStudio.Diagnostics.ServiceModelSink.ServiceMethodResolver..ctor(ContractDescription contract, DispatchRuntime runtime, Message request, InstanceContext instanceContext) InnerException:
击中“继续”时,程序扼流圈几秒钟,然后继续并显示正确的结果。即使在Microsoft提供的WCF示例中也会发生这种情况。我确保在VS 2010的异常窗口中只显示未处理的异常。
我不知道是什么可能导致这种情况,特别是考虑到程序确实工作完美,除了由于例外。
每个使用发现的项目都会发生异常,包括我和Microsoft在官方WCF示例中创建的那些发现。它只发生在我的机器上,它在我的同事盒子上工作正常。
在我绝望的http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/8e326b48-232c-4510-8194-aa9d4ba36829
在那里,做到了。对我没有改变:-( – 2015-07-22 18:09:37