I have this problem on deploying my ASP.NET MVC 4 project on Web server. It always returning
Server Error in '/' Application.
No parameterless constructor defined for this object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.MissingMethodException: No parameterless constructor defined for this object.
but it is working in my local. I have tried to upgrade my targetframework and other structuremap dependencies since downgrading the server is not an option.
I have search and found that it is dependency that is causing the issue on other people. can you guys help me confirm the error or help me fix the problem. Thank you so much.