The MVC EF framework was used to develop the project, and the database was Oracle. Everything was normal during local debugging, but the data could not be read after the code was compiled and put into the server.

 

Cause: The local debugging environment is inconsistent with the server environment.

Solution: Install the ODT.NET component on the server.