Erro ao tentar consumir serviço do Dynamics AX

by Stiven 6. November 2009 09:16

No meu primeiro contato com o Dynamic AX, depois de criar o site no IIS 7, ao tentar consumir um serviço ocorreu aquela famosa tela amarela:

Could not load file or assembly 'Microsoft.Dynamics.BusinessConnectorNet' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: Could not load file or assembly 'Microsoft.Dynamics.BusinessConnectorNet' or one of its dependencies. An attempt was made to load a program with an incorrect format.

E agora?

Para corrigir o problema basta configurar o application pool referente ao site no IIS 7, a compatibilidade com aplicativos 32bits.

No IIS 7 -> Application Pools -> [MeuApplicationPool] -> Advance Settings -> Enable 32-Bit Applications

;)

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

Dicas | Dynamics AX

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen

Sobre o autor



Meu nome é Stiven Fabiano da Câmara e sou desenvolvedor de software especializado na plataforma .NET da Microsoft, utilizando a linguagem Visual C#.