title: elFinder and asp.net - unable to connect to backend
body: <p>I'm following the author installation procedure, but I still can't have it working. I'm using asp.net mvc 4 and visual studio 2010.</p>
  
  <p>I added the reference and added the necessary configuration into the root web.config.</p>
  
  <p>Here is my root web.config file</p>
  
  <pre><code>  &lt;configSections&gt;
      &lt;!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --&gt;
      &lt;section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /&gt;
      &lt;section name="elFinder" type="elFinder.Connector.Config.AppConnectorConfig, elFinder.Connector" requirePermission="false" /&gt;
    &lt;/configSections&gt;
    &lt;elFinder apiVersion="2.0"
      localFSRootDirectoryPath="C:\SVN\DataExport\Wellman\Wellman\Upload"
      localFSThumbsDirectoryPath="C:\SVN\DataExport\Wellman\Wellman\Upload\.thumbs"
      rootDirectoryName="Root"
      uploadMaxSize="20M"
      defaultVolumeName="LocalFileSystem"
      baseUrl="http://localhost:57014/upload/"
      baseThumbsUrl="http://localhost:57014/upload/.thumbs/"&gt;
      duplicateFilePattern="Copy of {0}"
      duplicateDirectoryPattern="Copy of {0}"
      thumbsSize="48,48"
    &lt;/elFinder&gt;
  </code></pre>
  
  <p>added the global.asax</p>
  
  <pre><code>public class MvcApplication : System.Web.HttpApplication
  {
      protected void Application_Start()
      {
          AreaRegistration.RegisterAllAreas();
          //ControllerBuilder.Current.DefaultNamespaces.Add("Wellman.Controllers");
  
          FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
          RouteConfig.RegisterRoutes(RouteTable.Routes);
          BundleConfig.RegisterBundles(BundleTable.Bundles);
  
          // register IoC
          var builder = new ContainerBuilder();
          // add other registrations...
          // add elFinder connector registration
          builder.RegisterElFinderConnector();
          // create container
          IContainer _container = builder.Build();
          // need also to set container in elFinder module
          _container.SetAsElFinderResolver();
      }
  </code></pre>
  
  <p>and the routeconfig.cs</p>
  
  <pre><code>    public static void RegisterRoutes(RouteCollection routes)
      {
          routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
          routes.IgnoreRoute("elfinder.connector");
  
          routes.MapHttpRoute(
              name: "DefaultApi",
              routeTemplate: "api/{controller}/{id}",
              defaults: new { id = RouteParameter.Optional }
          );
  
          routes.MapRoute(
              name: "LogOff",
              url: "logout/{id}",
              defaults: new { controller = "Account", action = "LogOff", id = UrlParameter.Optional }
          );
  
          routes.MapRoute(
              name: "Default",
              url: "{controller}/{action}/{id}",
              defaults: new { controller = "Dashboard", action = "Index", id = UrlParameter.Optional }
          );
  
      }
  </code></pre>
  
  <p>So what am I doing wrong?</p>