Web API ASP.NET published on IIS does not work

Asked

Viewed 634 times

0

I have an ASP.NET Web API project that I integrate with Spring 10.

I followed the examples that are in Github and also the part of Assembly Resolver.

When I run the project on IIS Express through Visual Studio, everything works.

When I publish to IIS Local and try to access, it gives me an error in all methods that use Priengine, ie when I try to interact with Spring.

The error that appears to me is the following:

Object reference not set to an instance of an object. 
at WebAPI.Engine.PriEngine.CreatContext(String Company, String User, String Password)

Some additional settings are required to publish the project?

  • Maybe sharing the error can help.

  • Thanks @Jorgecosta, the problem was in the application pool settings

1 answer

4


After more exhaustive research I found the solution to my problem in the following post

You need to change some default values in the Application Pool to allow the application to function correctly:

  • Enable 32 Bit Applications: True
  • Identity: Localsystem

Browser other questions tagged

You are not signed in. Login or sign up in order to post.