Forum Discussion

Marvin's avatar
Marvin
Ideator I
5 years ago

IOM.dll compatible with ASP.NET 5/Core?

I'm trying to access Innovator from an ASP.NET 5/Core project.

But I receive the following error message:

System.TypeLoadException: Could not load type 'System.Web.HttpContext' from assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
at Aras.Net.ContextBasedCookieContainerProvider..ctor(Uri uri)
at Aras.Net.CookieContainerProviderFactory.GetContextBasedCookieContainerProvider(Uri uri)
at Aras.IOM.HttpServerConnection..ctor(String innovatorServerUrl, IAuthenticator authenticator)
at Aras.IOM.IomFactory.CreateHttpServerConnection(String innovatorServerUrl, String database, String userName, String password)

It seems like that is because System.Web.HttpContext has been removed in newer ASP.NET versions:

https://stackoverflow.com/questions/59642906/using-legacy-projects-containing-system-web-httpcontext-in-asp-net-core3-1

Is there a newer IOM version available that would work? The IOM.dll I have here is 11.0.0.6920 - so probably not the latest (we're running Innovator 11 SP12).

Thanks.

2 Replies

  • Do you use the IOM.dll from your codetree? When you´re not a subscriber, it will be hard to get these various versions.

    You could install Innovator 12 to get a newer version, but not sure if this one would still be compatible to your Innovator 11.

    • Marvin's avatar
      Marvin
      Ideator I

      No, this is from an external client application.

      I have googled and it seems like .NET Core isn't supported. I have downgraded the project to .NET Framework 4.8 and now it's working...