Work with the Mvcpager plug-in, in the development environment win7+iis7.5 environment, do not need to configure, direct reference can be used. But there is a Web site to publish this work, the server environment SERVER2008+IIS7, after deployment problems.
The following error is reported when accessing the plugin called Mvcpager:
Server Error in '/' application.the WebResource.axd handler must is registered in the configuration to process this reques T.
<!--Web. config Configuration File--><configuration> <system.web>
Of course, according to this hint, webconfig in the configuration of the line, it is important to note that in the httphandlers tag includes multiple records, they are priority, such as the first is ' * ' match, then will not take effect, the problem is not resolved.
There is also a problem, the development environment and the server environment ibid.
In MVC, the view uses an entity class as the Model,vs to correctly identify the namespace, but the space is not registered in the corresponding webconfig.
When published to the server, IIS7 will report that the entity class could not be found and that the reference error is missing.
The problem is solved by adding the namespace corresponding to the entity class in CONFIG.
<system.web.webpages.razor>