New Posts New Posts RSS Feed: Exception has been thrown by the target of an invocation.
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Exception has been thrown by the target of an invocation.

 Post Reply Post Reply
Author
vinothvdp View Drop Down
Newbie
Newbie
Avatar

Joined: 21-Sep-2007
Location: India
Posts: 27
Post Options Post Options   Quote vinothvdp Quote  Post ReplyReply Direct Link To This Post Topic: Exception has been thrown by the target of an invocation.
    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
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
vinothvdp View Drop Down
Newbie
Newbie
Avatar

Joined: 21-Sep-2007
Location: India
Posts: 27
Post Options Post Options   Quote vinothvdp Quote  Post ReplyReply Direct Link To This Post 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


Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post 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?

Back to Top
vinothvdp View Drop Down
Newbie
Newbie
Avatar

Joined: 21-Sep-2007
Location: India
Posts: 27
Post Options Post Options   Quote vinothvdp Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post 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.  
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down