none
Exception Info: System.TypeInitializationException RRS feed

  • Question

  • Hello there!!!

    First of all , thank you for this forum and your comments, all of themm are very usefull!!

    Ok, I tell you my issue: I've an app which is giving me this error and I don't know why...

    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.TypeInitializationException
    Stack:
       at System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(System.RuntimeType)
       at System.Runtime.Remoting.Activation.ActivationServices.CreateInstance(System.RuntimeType)
       at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(System.RuntimeType, System.Object[], Boolean)
       at System.RuntimeTypeHandle.CreateInstance(System.RuntimeType, Boolean, Boolean, Boolean ByRef, System.RuntimeMethodHandleInternal ByRef, Boolean ByRef)
       at System.RuntimeType.CreateInstanceSlow(Boolean, Boolean, Boolean)
       at System.RuntimeType.CreateInstanceDefaultCtor(Boolean, Boolean, Boolean, Boolean)
       at System.Activator.CreateInstance(System.Type, Boolean)
       at NHibernate.Bytecode.ActivatorObjectsFactory.CreateInstance(System.Type)
       at NHibernate.Driver.ReflectionDriveConnectionCommandProvider.CreateConnection()
       at NHibernate.Driver.ReflectionBasedDriver.CreateConnection()
       at NHibernate.Connection.DriverConnectionProvider.GetConnection()
       at NHibernate.Tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.Prepare()
       at NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.GetReservedWords(NHibernate.Dialect.Dialect, NHibernate.Tool.hbm2ddl.IConnectionHelper)
       at NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.Update(NHibernate.ISessionFactory)
       at NHibernate.Impl.SessionFactoryImpl..ctor(NHibernate.Cfg.Configuration, NHibernate.Engine.IMapping, NHibernate.Cfg.Settings, NHibernate.Event.EventListeners)
       at NHibernate.Cfg.Configuration.BuildSessionFactory()
       at Authorization.Manager.AuthorizationManagerForm..ctor()
       at Authorization.Manager.Program.Main()

    Does anyone know what kind of steps should I following to run the app???

    Thanks for your replies!!!

    Tuesday, May 22, 2012 3:21 PM

Answers

  • Found a good article for you, thought it might helps you out.

    Mark Answered, if it solves your question
    Rohit Arora

    Wednesday, May 23, 2012 7:00 AM
  • Hi IT_User,

    Please check your config file. Probably there is some invalid connection string or typo mistake.


    Regards, http://shwetamannjain.blogspot.com or https://shwetalodha.wordpress.com/

    Wednesday, May 23, 2012 1:42 PM
  • Hi,

    This exception occured while creating NHibernate session object, which is using Activator.CreateInstance to create an object. I would suggest look into inner exception, this would give more information on actual error.

    I hope this helps you....


    If this post answers your question, please click "Mark As Answer". If this post is helpful please click "Mark as Helpful".

    Wednesday, May 23, 2012 2:40 PM

All replies

  • Found a good article for you, thought it might helps you out.

    Mark Answered, if it solves your question
    Rohit Arora

    Wednesday, May 23, 2012 7:00 AM
  • Hi IT_User,

    Please check your config file. Probably there is some invalid connection string or typo mistake.


    Regards, http://shwetamannjain.blogspot.com or https://shwetalodha.wordpress.com/

    Wednesday, May 23, 2012 1:42 PM
  • Hi,

    This exception occured while creating NHibernate session object, which is using Activator.CreateInstance to create an object. I would suggest look into inner exception, this would give more information on actual error.

    I hope this helps you....


    If this post answers your question, please click "Mark As Answer". If this post is helpful please click "Mark as Helpful".

    Wednesday, May 23, 2012 2:40 PM
  • Hi,

    The given link is broken.

    I am getting the same error. What was the resolution for this issue?

    Thursday, November 26, 2015 10:37 AM