Print Page | Close Window

Exception has been thrown by the target of an invocation.

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2183
Printed Date: 10-Jun-2026 at 7:34am


Topic: Exception has been thrown by the target of an invocation.
Posted By: vinothvdp
Subject: Exception has been thrown by the target of an invocation.
Date Posted: 22-Sep-2010 at 3:53pm
Hi,

I am using "IIS Deployment with Windows Security" for my application server, this setup MSI file working fine on 2003 server, but the same setup file not working on windows server 2008,when i login to application it throws "Exception has been thrown by the target of an invocation." from loginclientcore.cs class SetLoggedInUser method,
kindly help me out.

Thanks 
Vinoth



Replies:
Posted By: davidklitzke
Date Posted: 23-Sep-2010 at 8:56am
One of the most common reasons that an application will run successfully in a development environment or in a known deployment environment, but will fail when deployed to another machine or to another deployment environment is that the deployment is missing some file present on the development machine, but missing on the system where the app has been deployed.

Can you post the full stack trace of the exception?


Posted By: vinothvdp
Date Posted: 23-Sep-2010 at 1:54pm
Hi,
Thank you for quick response here is the StackTrace,

   at IdeaBlade.Persistence.PersistenceManager.HandlePersistenceServerException(Exception pException, Boolean pTryToHandle, PersistenceOperation pOperation)
   at IdeaBlade.Persistence.PersistenceManager.XFetchDataSet(IEntityQuery pEntityQuery)
   at IdeaBlade.Persistence.PersistenceManager.InitializeSchema(Type pEntityType)
   at IdeaBlade.Persistence.PersistenceManager.CreateTableAndInitialize(Type pEntityType)
   at IdeaBlade.Persistence.PersistenceManager.GetTable(Type pEntityType)
   at IdeaBlade.Persistence.PersistenceManager.FindEntity(PrimaryKey pPrimaryKey)
   at IdeaBlade.Persistence.PersistenceManager.GetEntity(PrimaryKey pPrimaryKey, QueryStrategy pQueryStrategy)
   at IdeaBlade.Persistence.PersistenceManager.GetEntity[T](PrimaryKey pPrimaryKey, QueryStrategy pQueryStrategy)
   at IdeaBlade.Persistence.PersistenceManager.GetEntity[T](PrimaryKey pPrimaryKey)
   at Model.LoginClientCore.SetLoggedInUser(PersistenceManager pManager, SessionBundle pSessionBundle) in E:\SampleProject\Model\LoginClientCore.cs:line 138
   at Model.LoginClientCore.TryLogin(PersistenceManager pManager, ILoginCredential pCredential) in E:\SampleProject\Model\LoginClientCore.cs:line 91




Posted By: davidklitzke
Date Posted: 23-Sep-2010 at 3:33pm

See if you can catch the exception and then look at every InnerException.     Also can you post or send your server debug log?



Posted By: vinothvdp
Date Posted: 20-Dec-2010 at 10:27am

Hi,

Sorry for the late replay


This is Inner exception message

"Culture ID 16393 (0x4009) is not a supported culture.

Parameter name: culture"

 

And that stack trace is bellow

Server stack trace:

   at System.RuntimeMethodHandle._SerializationInvoke(Object target, SignatureStruct& declaringTypeSig, SerializationInfo info, StreamingContext context)

   at System.Reflection.RuntimeConstructorInfo.SerializationInvoke(Object target, SerializationInfo info, StreamingContext context)

   at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)

   at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder)

   at System.Runtime.Serialization.ObjectManager.DoFixups()

   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)

   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)

   at System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryResponseMessage(Stream inputStream, IMethodCallMessage reqMsg, Boolean bStrictBinding)

   at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.DeserializeMessage(IMethodCallMessage mcm, ITransportHeaders headers, Stream stream)

   at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)

 Exception rethrown at [0]:

   at IdeaBlade.Persistence.RemotingPersistenceServerProxy.CheckConnection(Exception pException)

   at IdeaBlade.Persistence.PersistenceServerProxy.Fetch(SessionBundle pBundle, IEntityQuery pQuery)

   at IdeaBlade.Persistence.PersistenceManager.XFetchDataSet(IEntityQuery pEntityQuery)


Please help me out this.

Thanks in advance.



Posted By: kimj
Date Posted: 20-Dec-2010 at 12:28pm
Since three months have passed and your first post concerned a login problem and your latest post seems to be related to a serialization problem during fetch, it would have been better to start a new thread.
 
The not supported culture message for en-IN is likely an issue with your OS.  Googling indicates that Windows Server 2003 does (or did?) not support this culture.  



Print Page | Close Window