I've just recently started having a problem with a custom web service that I wrote to add a Gift into RE via the API. This code was working and all my efforts to find out what's changed have been unsuccessful.
Error:
Code:
System.Runtime.InteropServices.COMException (0x80040666): Path/File access error at
Blackbaud.PIA.RE7.BBREAPI.CGiftClass.Save() at USNAWebservices.MasterService.addGift(String
sConstitID, String sGiftType, String dTotalAmount, String dPaidAmount, String dtPaymentDate, String
sCamp, String sFund, String sAppeal, String sPayment_Reference, String sPayment_Type, String
sCardHolderName, String sCC_Num, String sCC_Exp, String sCC_Type, String sAuthCode, String sPay_plan,
String iNumberOfPayments, String sAnonymous)
What I know so far:
- The code was working in production for several months. I'm not sure when it broke but the first error was thrown last week.
- We have a development server that the same code is working on. While the environments aren't exactly the same they are very close.
- Our production server is running RE Enterprise but our Dev server is running a standard version of RE. I'm not sure if that's significant or not.
- In production our RE and BBNC database (where the webservice is) server are separate. On Dev they are all on the same box.
One item that i'm working but having trouble with is determining which instance of Blackbaud.PIA.RE7.BBREAPI.dll the API is trying to call. The error seems to indicate there is a Path/File access error. We have RE installed on the server where the web service is running and that DLL is in the PIA folder.
Any help would be appreciated! Thanks guys!
More info:
I put the code that was calling the API into a windows Application in VS and then put it on the server. It ran perfectly...so it seems to only be a problem when the API is called by a webservice....not sure if that turns on any light bulbs for anyone
thanks!