none
CRM 2011 - Erro ao Criar um registro RRS feed

  • Pergunta

  • Estou num cliente onpremise, desenvolvendo um webservice, e quando tento conectar para criar um registro de contato simples esta ocorrendo o erro abaixo.

    estou usando esta conexão.

    http://tiagomcardoso.wordpress.com/2012/06/12/crm-2011-acessar-web-service/

    Erro:

    System.ArgumentNullException was unhandled
      HResult=-2147467261
      Message=Value cannot be null.
    Parameter name: detail
      Source=System.ServiceModel
      ParamName=detail
      StackTrace:
           at System.ServiceModel.Dispatcher.FaultContractInfo..ctor(String action, Type detail, XmlName elementName, String ns, IList`1 knownTypes)
           at System.ServiceModel.Description.DispatcherBuilder.BuildProxyOperation(OperationDescription operation, ClientRuntime parent)
           at System.ServiceModel.Description.DispatcherBuilder.BuildProxyBehavior(ServiceEndpoint serviceEndpoint, BindingParameterCollection& parameters)
           at System.ServiceModel.Channels.ServiceChannelFactory.BuildChannelFactory(ServiceEndpoint serviceEndpoint, Boolean useActiveAutoClose)
           at System.ServiceModel.ChannelFactory.CreateFactory()
           at System.ServiceModel.ChannelFactory.OnOpening()
           at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
           at System.ServiceModel.ChannelFactory.EnsureOpened()
           at System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
           at System.ServiceModel.ChannelFactory`1.CreateChannel()
           at Microsoft.Xrm.Sdk.Client.ServiceChannel`1.CreateChannel()
           at Microsoft.Xrm.Sdk.Client.ServiceChannel`1.ConfigureNewChannel()
           at Microsoft.Xrm.Sdk.Client.ServiceChannel`1.get_Channel()
           at Microsoft.Xrm.Sdk.Client.ServiceContextInitializer`1.Initialize(ServiceProxy`1 proxy)
           at Microsoft.Xrm.Sdk.Client.ServiceContextInitializer`1..ctor(ServiceProxy`1 proxy)
           at Microsoft.Xrm.Sdk.Client.OrganizationServiceContextInitializer..ctor(OrganizationServiceProxy proxy)
           at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.CreateCore(Entity entity)
           at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.Create(Entity entity)
           at Teste.Program.teste() in C:\Projetos\Zatix\ProjetoZeus\Teste\Program.cs:line 52
           at Teste.Program.Main(String[] args) in C:\Projetos\Zatix\ProjetoZeus\Teste\Program.cs:line 43
           at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
           at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
           at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
           at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
           at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           at System.Threading.ThreadHelper.ThreadStart()
      InnerException: 


    terça-feira, 6 de novembro de 2012 16:19

Respostas

Todas as Respostas