Exception thrown by the target of an invocation - GetProjectVersionAttributes
OK so my previous problem was an obvious problem with my code. However, whenever I call ProjectsService.GetProjectVersionAttributes(projectID) using a valid projectID, I get "Exception has been thrown by the target of an invocation", with stack trace:
[9024] CounterSoft Gemini: Exception has been thrown by the target of an invocation. :: CounterSoft.Gemini.WebServices :: at CounterSoft.Gemini.WebServices.BaseService.ThrowResponseException(WebResponse response)
[9024] at CounterSoft.Gemini.WebServices.BaseService.ProcessResponse[T](String url, Object obj, RequestType requestType)
[9024] at CounterSoft.Gemini.WebServices.ProjectsService.GetProjectVersionAttributeValue(Int32 projectId, Int32 versionId, Int32 attributeId)
[9024] at CounterSoft.Gemini.Services.Samples.FormReleaseNotes..ctor(ServiceManager sm, String initialText, Int32 versionid, Int32 projectid)
[9024] CounterSoft Gemini: at CounterSoft.Gemini.WebServices.BaseService.ThrowResponseException(WebResponse response)
[9024] at CounterSoft.Gemini.WebServices.BaseService.ProcessResponse[T](String url, Object obj, RequestType requestType)
[9024] at CounterSoft.Gemini.WebServices.ProjectsService.GetProjectVersionAttributeValue(Int32 projectId, Int32 versionId, Int32 attributeId)
[9024] at CounterSoft.Gemini.Services.Samples.FormReleaseNotes..ctor(ServiceManager sm, String initialText, Int32 versionid, Int32 projectid).
Am I doing something wrong?
alitheg
· 1 |
|
Tuesday, September 1, 2009, 11:25:15 AM |
0
|
Actually...is this a typing problem? |
||||
|
0
|
Disregard that. The exception is coming from GetProjectVersionAttributeValue(version.ProjectID, version.VersionID, attribute.AttributeID). |
||||
|
0
|
Please make sure that the version has an attribute value (not default). |
||||
|
0
|
The version I'm trying to get the value for already has a (non-default) value. |
||||
|
0
|
Just tested and all seems to work. Please catch the Exception (catch (GeminiRestException ex)) and investigate the error details using the debugger. |
||||
|
0
|
Ok, I've caught it and am looking through the detail of the exception. |
||||
|
0
|
The error suggests that the attribute value does not belong to the project sent in (66). Are you sure that the attribute value id is correct and has a value? |
||||
|
0
|
Yeah. 196 0.7 Third test system
Line from SQL database:
5
1
66
196
test release notes<br /> |
||||
|
0
|
Please send your database and code to support at countersoft dot com |
||||
|
0
|
Email sent. |
||||
|
0
|
I've got it! |
||||
|
0
|
Feel free to add it to our list: http://gemini.countersoft.com |
||||
|
0
|
Done. Thanks for your help. |
||||
|