I have set up 5 sites using a .net com DLL which I register on 3 different servers. The last 2 server are an upgrade to newer servers and IIS. The new sites are using IIS 10 and server 2016. I was able to get the one site up using the regasm and tlb option and adding the assembly to the gac.
After adding a custom application pool I was able to get one of the sites up and running. The second site is giving me and error code of -2146233079 when I call a method that retrieves information from sql server. Prior to this I have used this dll to retrieve system information and version number from the dll. The only difference I have between sites is the connection back to sql where each site has its on database and sql server connection.
Can anyone tell me what might cause this error since server.createobject is not raising an error only when calling the method that connects to sql.