Method caching for Ax2009 Business Connector

This question is not answered

Hi

I have the following situation:

I have a instance method in a class. This method gets called from a .NET web service using the BC. Single AOS.

Today, I wanted to add a few parameters to the method. I did all development in my dev environment and exported the class to file. I imported the file on the customer server and updated the web service. When calling the method a BusinessConnectorException was thrown ("wrong number of parameters"). I checked that the class had really benn imported and I even imported it again. Same error.

After that I stopped the web service, the Application Pool and the Dynamics service.

After restart I got the same errror. So I copied the method and gave it a new name, recompiled the web service with a call to this new method now everything worked fine.

So, my question is: where the heck does the BC store its method cache if restarting web site and aos is not enough (web server was never restarted).

I have tried to use ProcessMonitor to trace calls together with calls to the Refresh() method of the BC. I was hoping to see if anything was written to something similar to an auc file, but the trace gave me nothing. However, I have now tried to call Refresh() on the customer server and after that I could remove the new method and go on using the original one.

/Jonas

 

All Replies