Me again.
I've deployed my ASP.NET timesheet app on the production server. I use the AccPac COMAPI to retrieve data such as employee names and earning codes. Problem is, it isn't working on their server.
When my code gets to a Session.Init method, I get a "Class not registered" exception. The error suggests the COM library isn't registered, but AccPac works fine on it. Also, I wrote a little VB program that opens a session, and that worked fine. So it seems to have to do with being in the context of an ASP.NET app.
In a previous web service app I wrote, I had a similar problem until I gave modify writes to the ASPNET machine account to the C:\Program Files\AccPac directory. I applied the same solution this time but that did not help. One slight difference is the AccPac directory is on the D: drive - but I can't see that as being a problem.
My version of AccPac is Advantage Series Enterprise Edition (Version 5.3A Service Pack 3), theirs is Sage AccPac 200 ERP (Version 5.3B).
One thing I find curious, I determine what AppID, ProgramName, and AppVersion values to give to the Init method by opening the macro window, and checking what these properties are for the Application object in the Immediate Window. The settings appear the same as my version, but why would their Application.AppVersion return "53A" when their real version is 5.3B?
I have another thread that shows my code and the error messages here
I've deployed my ASP.NET timesheet app on the production server. I use the AccPac COMAPI to retrieve data such as employee names and earning codes. Problem is, it isn't working on their server.
When my code gets to a Session.Init method, I get a "Class not registered" exception. The error suggests the COM library isn't registered, but AccPac works fine on it. Also, I wrote a little VB program that opens a session, and that worked fine. So it seems to have to do with being in the context of an ASP.NET app.
In a previous web service app I wrote, I had a similar problem until I gave modify writes to the ASPNET machine account to the C:\Program Files\AccPac directory. I applied the same solution this time but that did not help. One slight difference is the AccPac directory is on the D: drive - but I can't see that as being a problem.
My version of AccPac is Advantage Series Enterprise Edition (Version 5.3A Service Pack 3), theirs is Sage AccPac 200 ERP (Version 5.3B).
One thing I find curious, I determine what AppID, ProgramName, and AppVersion values to give to the Init method by opening the macro window, and checking what these properties are for the Application object in the Immediate Window. The settings appear the same as my version, but why would their Application.AppVersion return "53A" when their real version is 5.3B?
I have another thread that shows my code and the error messages here