Exception has been thrown by the target of an invocation.
A few of the WS calls using the WS DLLs are constantly generating these generic exceptions.
Message: "Exception has been thrown by the target of an invocation."
StackTrace: at CounterSoft.Gemini.WebServices.BaseService.ThrowResponseException(WebResponse response) at CounterSoft.Gemini.WebServices.BaseService.ProcessResponse[T](String url, Object obj, RequestType requestType) at CounterSoft.Gemini.WebServices.BaseService.GetResponse[T](String url, Object o, RequestType r) at CounterSoft.Gemini.WebServices.UsersService.GetUsers() at (Past this is my application doing a UsersServices.GetUsers)
It also happens when trying to create a new timelog using IssuesService.CreateTimeLog()
Any Ideas as to what could be causing this?
Gent
· 1 |
|
Friday, March 5, 2010, 5:11:14 PM |
0
|
Which version of Gemini? |
||||
|
0
|
Gemini 3.5.4 (Build 2435) And nothing logged today. |
||||
|
0
|
Do you get the exception as soon as the call happens or is there a delay? |
||||
|
0
|
As soon as the call occurs |
||||
|
0
|
Do you get an error when you try the GetUser or WhoAmI call? |
||||
|
0
|
The Stack Trace I have in the OP was from a GetUsers() call. However as i mentioned it is also happening for the IssuesServce.CreateTimeLog() call. |
||||
|
0
|
Yes, I was asking about GetUser (singular).... We have not seen this before and trying to establish a pattern. |
||||
|
0
|
Both of those Calls went off without a hitch. Here is the exception information for the CreateTimeLog() Data: {System.Collections.ListDictionaryInternal} Error: {CounterSoft.Gemini.Commons.Rest.RestError} Message: "Exception has been thrown by the target of an invocation." Source: "CounterSoft.Gemini.WebServices" StackTrace: at CounterSoft.Gemini.WebServices.BaseService.ThrowResponseException(WebResponse response) at CounterSoft.Gemini.WebServices.BaseService.ProcessResponse[T](String url, Object obj, RequestType requestType) at CounterSoft.Gemini.WebServices.BaseService.GetResponse[T](String url, Object o, RequestType r) at CounterSoft.Gemini.WebServices.IssuesService.CreateTimeLog(Int32 issueId, IssueTimeEntryEN time) at (My Application) |
||||
|
0
|
Can you post a code sample of this? Also, please inspect the exception (RestError) and check the inner exception and error within it. It might give a clue to what is going wrong. |
||||
|
0
|
InnerException is Nothing Public Shared Function AddTimeEntry(ByVal TimeEntry As IssueTimeEntryEN) As Boolean
When building the object to pass into the function I am filling the following fields: DateCreated IssueID Hours Minutes User UserID |
||||
|
0
|
Please make sure that you set the ProjectID of the time entry and make sure it is the project for the issue. Also, make sure that the user that the service manager is using is allowed to log time. |
||||
|
0
|
Thank you my friend, it appears you have resolved my issue. Once the ProjectID field was set it went through fine. |
||||
|