Skip to content

Instantly share code, notes, and snippets.

@seanrco
seanrco / resizer.debug.ashx
Created July 24, 2018 00:44
Diagnostics for ImageResizer 4.2.5.
Diagnostics for ImageResizer 4.2.5 9bd2b12e at www.roanoke.edu generated 7/24/2018 12:41:30 AM UTC
Please remember to provide this page when contacting support.
You are using ImageResizer Essential Edition plugins.
4 issues detected:
Plugins(ConfigurationError): An instance of the specified plugin (ImageResizer.Plugins.Basic.MvcRoutingShimPlugin) has already been added. Implement IMultiInstancePlugin if the plugin supports multiple instances.
@seanrco
seanrco / web.config
Created July 19, 2018 23:56
ImageResizer Web.Config Entries
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="resizer" type="ImageResizer.ResizerSection" requirePermission="false" />
</configSections>
<resizer>
<plugins>
<add name="MvcRoutingShim" />
<add name="DiskCache" />
</plugins>
@seanrco
seanrco / resizer_debug_ashx
Created July 19, 2018 23:50
ImageResizer Diagnostics Output
Image resizer diagnostic sheet 7/19/2018 11:18:12 PM
3 Issues detected:
(Warning): To potentially see additional errors here, perform an image resize request.
Plugins(ConfigurationError): Failed to load plugin by name "DiskCache"
Verify the plugin DLL is located in /bin, and that the name is spelled correctly.
Attempted using "DiskCache", "ImageResizer.Plugins.Basic.DiskCache", "ImageResizer.Plugins.DiskCache.DiskCachePlugin", "ImageResizer.Plugins.DiskCache.DiskCache", "DiskCache", "ImageResizer.Plugins.Basic.DiskCacheImageResizer.Plugins.DiskCache", "ImageResizer.Plugins.DiskCache.DiskCachePluginImageResizer.Plugins.DiskCache", "ImageResizer.Plugins.DiskCache.DiskCacheImageResizer.Plugins.DiskCache", "DiskCacheImageResizer.Plugins.DiskCache", "ImageResizer.Plugins.Basic.DiskCache, ImageResizer, Version=3.4.3.103, Culture=neutral, PublicKeyToken=null", "ImageResizer.Plugins.DiskCache.DiskCachePlugin, ImageResizer, Version=3.4.3.103, Culture=neutral, PublicKeyToken=null", "ImageResizer.Plugins.
@seanrco
seanrco / CSVResourceMap.cs
Created February 28, 2018 00:44
CSV Importer that matches CSV column headers to a new object. This was developed by Adam and then retrofitted to SAIT's specific needs. I figure this is a good place to put this so we can collectively refine it.
using CsvHelper.Configuration;
using Ingeniux.CMS.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Ingeniux.CMS.Applications
{
public class CSVPageWrapper
{
@seanrco
seanrco / _Functions.GetLinkTarget
Created February 28, 2018 00:44
_Functions addition for getting Link Target attribute.
/// <summary>
/// Get a link's action suitable for use in the 'a' attribute.
/// </summary>
/// <param name="link">Link element</param>
/// <param name="url">Url helper</param>
/// <returns>Link action</returns>
public static string GetLinkTarget(ICMSLinkElement link, UrlHelper url)
{
String linkUrl = "";