Cannot create automation object

Set utf = CreateObject(“System.Text.UTF8Encoding”)

Running the line above errors with “Cannot create automation object” on our new dev server but works find on our old test server. What are we missing that needs to be done on the new server so LotusScript can run the CreateObject line successfully in order to access the .NET framework class (4.5 is installed on each). New server is Windows 2012. Old server is Windows 2008.

Subject: Is .NET installed on the server? I think that is a .net object.

Subject: Suggestion

Make sure the new dev server server doc has rights to run unrestricted & restricted agents for the id that signed the agent?

Subject: [RESOLVED] IBM Suggested .NET 3.5

We opened a ticket with IBM. They suggested we install .NET 3.5 on the Windows 2012 server. So now the server has both versions of .NET installed. The code works now. As a developer, I don’t fully understand why that was the fix but it works anyhow.

Subject: Here’s why

UTF8Encoding Class (System.Text) | Microsoft Learn https://msdn.microsoft.com/en-us/library/system.text.utf8encoding(v=vs.110).aspx