I have developed a program that talks with Xero in .NET. When I run the program from VS, it communicates with Xero and works without a problem but when I publish the web application, it cannot make communication with Xero.
The error I get is 'An Internal Error Occurred' relating to the Xero Certificate yet when I run it from VS it does work without a problem.
The certificate are inside a folder.
X509Certificate2 privateCertificate = new X509Certificate2(@"C:\SSLCertificate\\public_privatekey.pfx", "XXXXXX");
IOAuthSession consumerSession = new XeroApiPrivateSession("MyAPITestSoftware", "XXXXXXXXXXXXXXXXXXXXXXX", privateCertificate);
consumerSession.MessageLogger = new DebugMessageLogger();
Thanks Saj