Hello,
I have a SOAP service integration up a ERP system.
I get a error when I uses this through the Apps (NuGet), but do I add the dll directly to the application bin folder, it works perfectly.
Error description is listed below.
Message:
A non-collectible assembly may not reference a collectible assembly.
Stacktrace:
System.NotSupportedException: A non-collectible assembly may not reference a collectible assembly. at System.Reflection.Emit.RuntimeModuleBuilder.GetTypeRefNested(Type type, Module refedModule) at System.Reflection.Emit.RuntimeModuleBuilder.GetTypeTokenWorkerNoLock(Type type, Boolean getGenericDefinition) at System.Reflection.Emit.RuntimeModuleBuilder.GetTypeTokenInternal(Type type, Boolean getGenericDefinition) at System.Reflection.Emit.RuntimeTypeBuilder.AddInterfaceImplementationCore(Type interfaceType) at System.Reflection.DispatchProxyGenerator.ProxyBuilder.AddInterfaceImpl(Type iface) at System.Reflection.DispatchProxyGenerator.ProxyAssembly.GenerateProxyType(Type baseType, Type interfaceType, String interfaceParameter, String proxyParameter) at System.Reflection.DispatchProxyGenerator.ProxyAssembly.GetProxyType(Type baseType, Type interfaceType, String interfaceParameter, String proxyParameter) at System.Reflection.DispatchProxyGenerator.CreateProxyInstance(Type baseType, Type interfaceType, String interfaceParameter, String proxyParameter) at System.Reflection.DispatchProxy.Create[T,TProxy]() at System.ServiceModel.Channels.ServiceChannelProxy.CreateProxy[TChannel](MessageDirection direction, ServiceChannel serviceChannel) at System.ServiceModel.Channels.ServiceChannelFactory.CreateProxy[TChannel](MessageDirection direction, ServiceChannel serviceChannel) at System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel[TChannel](EndpointAddress address, Uri via) at System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via) at System.ServiceModel.ChannelFactory`1.CreateChannel() at System.ServiceModel.ClientBase`1.CreateChannel() at System.ServiceModel.ClientBase`1.CreateChannelInternal() at System.ServiceModel.ClientBase`1.get_Channel() at Integration.Broker.BrokerClient.ExecNavViewAsync(String userId, String password, String transactionId, String viewId, String commandName, String commandArgument, String inputDataXml, Parameter[] parameters, String connectionName) at Integration.Navision.Services.NavisionOrderService.GetNavView(String viewId, String cmd, String xml, Parameter[] parameters) at Integration.Navision.Services.NavisionOrderService.GetInvoices(String customerNumber)