governmentbg / AISKAO

АИСКАО - Автоматизирана информационна система за комплексно административно обслужване
22 stars 8 forks source link

[Unix] StructureMap.Exceptions.StructureMapConfigurationException #13

Open vgvassilev opened 9 years ago

vgvassilev commented 9 years ago

Имам нужда от малко помощ. Опитвам се да подкарам проекта с Mono. Доколкото разбирам при стартиране StructureMap се опитва да открие и зареди някакви зависимости. Това, което ми убягва е какво точно се опитва да зареди. Доколкото виждам се опитва да зареди нещо от бинарните файлове (без наличен код, проблем #11) Eservices.AIS.Infrastructure. Възможно ли е да са по-стари/по-нови от останалата част на кода и в това да е проблема?

При първо стартиране получавам това:

StructureMap.Exceptions.StructureMapConfigurationException StructureMap configuration failures: Error: 170

Source:  Registry:  StructureMap.Configuration.DSL.Registry, StructureMap, Version=2.6.4.0, Culture=neutral, PublicKeyToken=e60ad81abae3c223
Unable to find the exported Type's in assembly Eservices.AIS.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.  One or more of the assembly's dependencies may be missing.

The classes in the module cannot be loaded.
System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
  at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetExportedTypes () [0x00000] in /private/tmp/source-mono-mac-4.0.0-branch/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.0/mcs/class/corlib/System.Reflection/Assembly.cs:365 
  at StructureMap.Graph.TypePool+<>c__DisplayClass2.<.ctor>b__0 (System.Reflection.Assembly assembly) [0x00000] in <filename unknown>:0 

-----------------------------------------------------------------------------------------------------

Description: HTTP 500.Error processing request.

Details: Non-web exception. Exception origin (name of application or object): StructureMap.
Exception stack trace:
  at StructureMap.Diagnostics.GraphLog.AssertFailures () [0x0001b] in <filename unknown>:0 
  at StructureMap.Container.construct (StructureMap.Graph.PluginGraph pluginGraph) [0x000c3] in <filename unknown>:0 
  at StructureMap.Container..ctor (StructureMap.Graph.PluginGraph pluginGraph) [0x00018] in <filename unknown>:0 
  at StructureMap.ObjectFactory.Initialize (System.Action`1 action) [0x00025] in <filename unknown>:0 
  at TechnoLogica.Eservices.AIS.Infrastructure.DependencyResolution.IoC.Initialize () [0x0001b] in <filename unknown>:0 
  at TechnoLogica.Eservices.AIS.Infrastructure.App_Start.StructuremapMvc.Start () [0x00001] in <filename unknown>:0 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /private/tmp/source-mono-mac-4.0.0-branch/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.0/mcs/class/corlib/System.Reflection/MonoMethod.cs:230 

А при рефреш:

System.TypeLoadException
A type load exception has occurred.

Description: HTTP 500.Error processing request.

Details: Non-web exception. Exception origin (name of application or object): Eservices.Public.Site.
Exception stack trace:
  at TechnoLogica.Eservices.Public.Site.MvcApplication.Application_Start () [0x0000b] in /Volumes/MacintoshHD/Users/vvassilev/workspace/github/aiskao/AISKAO_PUBLIC_WEBAPP/src/Eservices.Public.Site/Global.asax.cs:23 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /private/tmp/source-mono-mac-4.0.0-branch/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.0/mcs/class/corlib/System.Reflection/MonoMethod.cs:230 
vgvassilev commented 9 years ago

@TechnoLogica опитах, каквото казахте за System.Web.Mvc и става по-зле. Може би ще ми е необходима повече помощ да оправя проблема...