Dear all:
I have a problem while instaling my c# aplication on my clients testing server.
I have developed and application that calls some functions of a published codeunit via Web services on Navision 6sp1.
I have developed the system at my office and the code is working fine in our servers. My office system is a Windows Server 2003 with a SQL server 2005 for the database.
The code is as simple as follows:
string tresterminos;
wsCodeunit = new CodeunitNav.CodeunitNav();
wsCodeunit.Credentials = new NetworkCredential(NombreAccWSNAV(), PasswordAccWSNAS(), DominiccWSNAS());
Tresterminos = wsCodeunit.TestHola();
Tresterminos = wsCodeunit.DevolverTerminosDePago(Sesiones.IdTipoPedido,importe);
While i run the code at my office everything works fine.
Now i am installing the system on a testing machine. This machine is a windows XP Profesional with a SQL server 2008. Both have the same code, and the same codeunits.
No , when testing the aplication on the XP machine, i get an error while calling the DevolverTerminosDePago function that says:
Parameter TipoPedido in method DevolverTerminosDePago in service is null . I get the same error in any call that has parameters.
Any idea why i get this message?
Thanks in advance.
Miguel
0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
We made a modification to the codeunit exposed as a web service from Nav, then we had this null error. In the Visual Studio dev project we forced and update of the web service reference and it worked fine after that for the installation we discovered it on.
But now we made some changes to the codeunit again, and updated our fourth installation with the same codeunit and it seems like nothing we do can force this null parameter to go away. Our setup is:
On the same SQL Server:
Country 1 - LIVE DATABASE
Country 1 - TEST DATABASE
Country 2 - LIVE DATABASE
Country 2 - TEST DATABASE
On another server we are running 4 database middle thier services and 4 web service services connected to these different databases. They are all setup the same way, and the interface codeunit has the same exposed name, blob size ,date and time on each installation. And when calling it on Country 2 - LIVE Database we experience this null error but not on any of the others. We have tried restarting all the services, and the third party consuming the web service say they really have updated the reference and done a total redeploy.
Error Log:
Someone knows what can cause this? It isn't the codeunit since it is the same on every other Nav installation I mentioned.
This installations is with Dynamics Nav 6.0 SP1 only. It is of course country specific for country 1 and for country 2.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
We compiled the codeunit. It solved the problem.
I can't remember compiling the object in one of the test enviroment after importing FOB, but that was it.
Is this because of the "2000000071 Object Metadata" table beeing updated when compiling and not when importing FOB?