Discussion:
Code changes not available for .Net Business Connector
(too old to reply)
Zofus
2010-08-13 12:15:04 UTC
Permalink
Hi,
I'm new to AX programming and I am testing the .Net Business Connector.
I have created a test class in x++ and added a static method that I am
calling in C# through the BC.
It works fine, but when I do some minor changes to the method and save, the
changes are not available for my C# app. I still get the results from before
the change.
When I close the AX client, the changed version is immediately available to
the BC. So there seems to be some kind of update to the AOS or BC performed
at client shutdown?

Can I manually perform this update so I don't need to shut down the client
after every minor change in the x++ code?
Luegisdorf
2010-08-17 08:36:03 UTC
Permalink
Hi Zofus

You just need to restart your c# application, this will flush all BC cache.
Just to make a logoff/logon trough BC seems not to be effective to clear BC
cache.

But AOS restart is definitly not required.

Best regards
Patrick
Post by Zofus
Hi,
I'm new to AX programming and I am testing the .Net Business Connector.
I have created a test class in x++ and added a static method that I am
calling in C# through the BC.
It works fine, but when I do some minor changes to the method and save, the
changes are not available for my C# app. I still get the results from before
the change.
When I close the AX client, the changed version is immediately available to
the BC. So there seems to be some kind of update to the AOS or BC performed
at client shutdown?
Can I manually perform this update so I don't need to shut down the client
after every minor change in the x++ code?
Zofus
2010-08-31 10:20:06 UTC
Permalink
Thanks for your reply Luegisdorf!

Unfortunately restarting the C# app does not seem to solve the issue.
The changes are eventually availiable, but only after a long wait.

I just discovered the Refresh method on the Axapta object. It seems to do
the trick, but I will do some further testing just to make sure.
Documentation says that this method is only for development use, so I guess
I should remove the Refresh calls before deploying.
Post by Luegisdorf
Hi Zofus
You just need to restart your c# application, this will flush all BC cache.
Just to make a logoff/logon trough BC seems not to be effective to clear BC
cache.
But AOS restart is definitly not required.
Best regards
Patrick
Post by Zofus
Hi,
I'm new to AX programming and I am testing the .Net Business Connector.
I have created a test class in x++ and added a static method that I am
calling in C# through the BC.
It works fine, but when I do some minor changes to the method and save, the
changes are not available for my C# app. I still get the results from before
the change.
When I close the AX client, the changed version is immediately available to
the BC. So there seems to be some kind of update to the AOS or BC performed
at client shutdown?
Can I manually perform this update so I don't need to shut down the client
after every minor change in the x++ code?
Loading...