Limitations of server target validation
When you target a project to one server type and run on a different server type (which might have incompatibilities with each other), no errors appear during publish or startup. It is your responsibility to make sure that the targeted server and deployed server are matched in server type and version level.