MVC4 Project and ImageResizer

Problem: MVC 4 test application with ImageResizer on any page access says "Unable to load type" ImageResizer.InterceptModule ""

To test and understand how ImageResizer works, the MVC4 project was created in VS 2012, and one controller was created to display the HelloWorld page. Works as expected.

The next step was to add ImageResizer from NuGet. Installed ImageResizer Web.Config installation for MVC. This package added three additional packages:

Install ImageResizer Web.Config ImageResizer.MVC - MVC friendly utilitite ImageResizer

Attempting to launch the application leads to a yellow screen of death with the help of "Cannot load type ImageResizer.InterceptModule."

Trying to solve without success:

  • Check DLL exist.
  • Uninstall and reinstall packages.
  • Copy ImageResizer dll from a working web application
  • Element 1 in the ImageResizer troubleshooting guide does not seem to be a problem "1. Your website has a" sub-site "(application folder) inside it. Application folders inherit all Web.config settings from their parent sites, but expect to have your own copies of all DLLs referenced by these parameters in your own / bin folder, you can solve this problem, (a) change the application folder to a virtual folder, (b) add a copy of ImageResizer.dll and plugins to the / bin folder inside this application , or (c) using statements in a child Web.config to mark We’ve inherited statements from the parent Web.config. Option (c) will disable image resizing within the sub-application. "

Yes, there is a web.config file in the views directory. I tried to create and copy dlls resizer images to the bin directory - no success. I tried adding deletion to the web.config file in the views directory. Not success again.

+4
source share
1 answer

The problem is solved - it is imposed itself.

It would seem nice to name the test project imageresizer. Which, of course, created the dager name imageresizer, which passed throughout the real dll imageresizer.

+12
source

All Articles