UAServiceException: Could not create a certificate via a proxy: Could not initialize the platform layer.
I am using OPC Data Client in a web application. I have deployed my application to IIS on the runtime machine. I am getting an error when my web application attempts to create an OPC UA certificate. The error states:
UAServiceException: Could not create a certificate via a proxy: Could not initialize the platform layer.
How can I make the Web Application create the certificate?
One possible resolution is to set "Enable 32-Bit Application" to True on your Application Pool. The below instructions are for IIS 7.0.
- Open IIS Manager.
- From the Feature View click on Application Settings in the ASP.NET area.
- Click on Application Pools on the left side.
- Right-click on the Application Pool your OPC Data Client application is using and select Advanced Settings...
- In the General section you will see the setting Enable 32-Bit Application.
- Set this to True and Click OK.
- You need to Stop and Start the Application Pool you made changes to.