Saludos Grupo,
Recurro a ustedes por que ya no se que mas mirar en este error.
Simple, intento usar Log4Net junto con NHibernate. El problema me
aparece en una aplicacion Windows, pero para pruebas, hice una
aplicacion simple de consola, le agrego las referencias de NHibernate
y Log4Net, y cuando lo ejecuto, me tira el siguiente error:
System.NotSupportedException occurred
Message=The invoked member is not supported in a dynamic assembly.
Source=mscorlib
StackTrace:
at
System.Reflection.Emit.InternalAssemblyBuilder.get_Location()
InnerException:
La linea desde donde es lanzado es:
Configuration cfg = new Configuration();
mscorlib.dll!
System.Reflection.Emit.InternalAssemblyBuilder.Location.get() + 0x39
bytes
log4net.dll!
log4net.Util.SystemInfo.AssemblyLocationInfo(System.Reflection.Assembly
myAssembly) + 0x74 bytes
log4net.dll!
log4net.Core.DefaultRepositorySelector.GetInfoForAssembly(System.Reflection.Assembly
assembly, ref string repositoryName, ref System.Type repositoryType) +
0x116 bytes
log4net.dll!
log4net.Core.DefaultRepositorySelector.CreateRepository(System.Reflection.Assembly
repositoryAssembly, System.Type repositoryType, string repositoryName,
bool readAssemblyAttributes) + 0x166 bytes
log4net.dll!
log4net.Core.DefaultRepositorySelector.CreateRepository(System.Reflection.Assembly
repositoryAssembly, System.Type repositoryType) + 0x37 bytes
log4net.dll!
log4net.Core.DefaultRepositorySelector.GetRepository(System.Reflection.Assembly
repositoryAssembly) + 0x7b bytes
log4net.dll!
log4net.Core.LoggerManager.GetLogger(System.Reflection.Assembly
repositoryAssembly, string name) + 0xc0 bytes
log4net.dll!log4net.LogManager.GetLogger(System.Reflection.Assembly
repositoryAssembly, string name) + 0x2c bytes
log4net.dll!log4net.LogManager.GetLogger(System.Type type) + 0x3f
bytes
[Lightweight Function]
NHibernate.dll!NHibernate.Log4NetLoggerFactory.LoggerFor(System.Type
type) Line 238 + 0x11 bytes C#
NHibernate.dll!NHibernate.LoggerProvider.LoggerFor(System.Type type)
Line 119 + 0x11 bytes C#
NHibernate.dll!NHibernate.Cfg.Configuration.Configuration() Line 80
+ 0x23 bytes C#
[Native to Managed Transition]
[Managed to Native Transition]
> LogginSample.exe!LogginSample.Program.Main(string[] args) Line 21 +
> 0x16 bytes C#
[Native to Managed Transition]
[Managed to Native Transition]
mscorlib.dll!System.AppDomain.ExecuteAssembly(string assemblyFile,
System.Security.Policy.Evidence assemblySecurity, string[] args) +
0x6d bytes
Microsoft.VisualStudio.HostingProcess.Utilities.dll!
Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() +
0x2a bytes
mscorlib.dll!
System.Threading.ThreadHelper.ThreadStart_Context(object state) + 0x63
bytes
mscorlib.dll!
System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext
executionContext, System.Threading.ContextCallback callback, object
state, bool ignoreSyncCtx) + 0xb0 bytes
mscorlib.dll!
System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext
executionContext, System.Threading.ContextCallback callback, object
state) + 0x2c bytes
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() + 0x44
bytes
Alguien sabe por que ocurre esto?
Gracias de antemano
--
Para escribir al Grupo, hágalo a esta dirección:
[email protected]
Para más, visite: http://groups.google.com/group/NHibernate-Hispano