2011-06-03 4 views
0

J'ai mis à jour SharpArchitecture de 1.5 à 1.9.Sharparchitecture mise à niveau de 1.5 à 1.9 erreur

J'ai suivi le guide ici http://blog.sharparchitecture.net/post/Sharp-Architecture-19-released.aspx, et veillé à ce que j'ai mis « copie locale = true » pour les différentes DLL, mais je reçois toujours l'erreur suivante lors de l'exécution du site:

Exception Details: System.ArrayTypeMismatchException: Attempted to 
access an element as a type incompatible with the array. 

Source Error: 

Line 35:    log4net.Config.XmlConfigurator.Configure(); 
Line 36:    ViewEngines.Engines.Clear(); 
Line 37:    ViewEngines.Engines.Add(new AreaViewEngine()); 
Line 38: 
Line 39:    ModelBinders.Binders.DefaultBinder = new 
SharpModelBinder(); 

Source File: xxx.Web 
\Global.asax.cs Line: 37 

Stack Trace: 

[ArrayTypeMismatchException: Attempted to access an element as a type 
incompatible with the array.] 
    System.Collections.Generic.List`1.Insert(Int32 index, T item) +62 
    xxx.Web.MvcApplication.Application_Start() in 

[HttpException (0x80004005): Attempted to access an element as a type 
incompatible with the array.] 

System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext 
context, HttpApplication app) +3988565 
    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr 
appContext, HttpContext context, MethodInfo[] handlers) +191 
    System.Web.HttpApplication.InitSpecial(HttpApplicationState state, 
MethodInfo[] handlers, IntPtr appContext, HttpContext context) +325 

System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr 
appContext, HttpContext context) +407 
    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr 
appContext) +375 

[HttpException (0x80004005): Attempted to access an element as a type 
incompatible with the array.] 
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) 
+11529072 
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) 
+141 

System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest 
wr, HttpContext context) +4784373 

Est-ce Quelqu'un sait ce que j'ai pu oublier?

Répondre

0

J'ai regardé les versions de SharpArchitecture dans le projet différent plusieurs fois, mais apparemment j'avais raté un projet qui n'avait pas le SharpArch DLL mis à la version spécifique.

Questions connexes