0

オーサーのインストール手順に従っていますが、それでも動作しません。asp.net mvc 4 と Visual Studio 2010 を使用しています。

参照を追加し、必要な構成をルート web.config に追加しました。

これが私のルートweb.configファイルです

  <configSections>
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    <section name="elFinder" type="elFinder.Connector.Config.AppConnectorConfig, elFinder.Connector" requirePermission="false" />
  </configSections>
  <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/">
    duplicateFilePattern="Copy of {0}"
    duplicateDirectoryPattern="Copy of {0}"
    thumbsSize="48,48"
  </elFinder>

global.asax を追加しました

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();
    }

および routeconfig.cs

    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 }
        );

    }

それで、私は何を間違っていますか?

4

1 に答える 1

0

遅いかもしれませんが、'>' の場所を修正してみてください:

<elFinder apiVersion="2.0"
    localFSRootDirectoryPath="c:\users"
    localFSThumbsDirectoryPath="c:\users\.thumbs"
    rootDirectoryName="Root"
    uploadMaxSize="20M"
    defaultVolumeName="LocalFileSystem"
    baseUrl="http://localhost:55470/data/"
    baseThumbsUrl="http://localhost:55470/data/.thumbs/"
    duplicateFilePattern="Copy of {0}"
    duplicateDirectoryPattern="Copy of {0}"
    thumbsSize="48,48">
</elFinder>
于 2013-05-13T12:46:51.047 に答える