Nikola Gaić
Nikola Gaić

Reputation: 127

Adding Piranha CMS to an existing application

I have problem with adding Piranha CMS to my existing project. I am using MVC. After I have set up everything like it is described here I am receiving error "Entry point was not found."

System.Collections.Generic.IEnumerable`1.GetEnumerator()
   at System.Linq.Enumerable.<UnionIterator>d__88`1.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at Piranha.Manager.ManagerModule.Init() in c:\Proj\GitHub\Piranha\Piranha\Manager\ManagerModule.cs:line 32

This is part of SC

private static string[] ExtensionsFolder = new[] { "~/Areas/Manager/Views/Extensions/{0}.cshtml" };     

/// <summary>
/// Create the view engine.
/// </summary>
public static void Init() {
    if (!Config.DisableManager) {
        // Create new precompiled view engine
        var engine = new PrecompiledMvcEngine(typeof(ManagerModule).Assembly) {
            UsePhysicalViewsIfNewer = true
        } ;
        engine.PartialViewLocationFormats = engine.PartialViewLocationFormats.Union(ExtensionsFolder).ToArray();
        var standard = new RazorViewEngine() ;
        standard.PartialViewLocationFormats = standard.PartialViewLocationFormats.Union(ExtensionsFolder).ToArray() ;

        ViewEngines.Engines.Insert(0, standard) ;
        ViewEngines.Engines.Insert(1, engine) ;

Upvotes: 0

Views: 1279

Answers (1)

H&#229;kan Edling
H&#229;kan Edling

Reputation: 2753

What version of ASP.NET MVC are you using? "Entry point not found" is often caused by having the wrong version of some DLL so the dynamic linking fails at runtime.

Upvotes: 1

Related Questions