Click here to Skip to main content
16,015,444 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My project is a inventory system.
Client running Inventory exe through shortcut from server.
In most systems its running.
But In Some system it showing

Just In Time Debug Error
" an exception 'system.reflection.targetinvocationexception' has occured in Inventory.exe "

And A window to debug with option vs2003.

Project version : vb2005

Please can you help me to find out ,

1. What is the issue.?
2. What is the reason?
3. how can i clear it. ?

Thanks and regards
Nelson
Posted
Comments
[no name] 24-Jul-13 8:15am    
1. You have done something bad.
2. We would have no idea. You need to debug your program.
3. That depends on what you find from your debugging.

1 solution

Based on what you've provided, it's impossible to answer your question. You need to look at the InnerException of that exception to see the real error messages which were probably thrown by Entity Framework.
 
Share this answer
 
Comments
Nelson2391 7-Aug-13 7:40am    
Hello sorry for late replay


This is the error i found .


System.Reflection.TargetInvocationException was unhandled
Message="Exception has been thrown by the target of an invocation."
Source="mscorlib"
StackTrace:
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
at System.Activator.CreateInstance[T]()
at TARJAMAN.My.MyProject.ThreadSafeObjectProvider`1.get_GetInstance()
at TARJAMAN.My.MyProject.get_Application()
at TARJAMAN.My.MyApplication.Main(String[] Args)
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Dave Kreskowiak 7-Aug-13 8:53am    
That's useless. I said you need the INNEREXCEPTION of that exception. There's possibly more exceptions buried inside these exceptions.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900