托管的Windows服务中托管的WCF服务使用WCF服务应用程序连接
预先感谢您的任何建议。我有一个Windows服务,通过net.tcp
托管WCF服务,这很好。我也创建了一个WCF服务应用程序。我正在尝试将net.tcp
服务引用添加到服务应用程序。然后,我把它添加到去ok了GAC,但如果我尝试RegAsm WCF服务的应用程序,以允许它从Server.CreateObject
叫我的错误:托管的Windows服务中托管的WCF服务使用WCF服务应用程序连接
Warning: Type library exporter encountered a type that derives from a generic class and is not marked as [ClassInterface(ClassInterfaceType.None)]. Class interfaces cannot be exposed for such types. Consider marking the type with [ClassInterface(ClassInterfaceType.None)] and exposing an explicit interface as the default interface to COM using the ComDefaultInterface attribute.
它不工作。我曾尝试通过类库调用它,但是由于端点设置不正确,这不起作用。
有什么建议吗?
好了解决了这个问题。是权限错误iusr帐户无权访问WCF服务应用程序中的web.config文件。所以它现在有效。现在又出现了另一个问题。我需要能够从asp classic调用WCF服务应用程序,但不使用web.config。