Problems with AddProjectGroupMembership()
Gemini version: 3.5.4 (build 2435)
Issue:
I'm trying to add users to project groups using the API. However, when I call GroupsService AddProjectGroupMembership(), I get an XmlException: '"' is an unexpected token. Expecting white space. Line 1, position 50.
I tried to refer to the sample code, but I didn't see anything regarding project groups in that codebase. What am I doing wrong?
photosinensis
· 1 |
|
Thursday, April 1, 2010, 5:15:41 PM |
0
|
Can you please post sample code? |
||||
|
0
|
A sample: |
||||
|
0
|
Can you please check in Gemini if the user was added to the project group? It works for me but the return value is throwing an exception. |
||||
|
0
|
No, the user was not added to the project group. |
||||
|
0
|
Are you sure that project group id 9 exists? |
||||
|
0
|
Yes, I am. |
||||
|
0
|
Can you please use Fiddler2 (http://www.fiddler2.com/fiddler2/) to inspect what is the web service returns? |
||||
|
0
|
The return content is as follows: |
||||
|
0
|
Are you using a proxy server? It seems like your server is rejecting the request because the length of it is not set. |
||||
|
0
|
No, I'm not using a proxy server. The Gemini server and my computer are on the same physical network. |
||||
|
0
|
Which version of IIS and OS are you running? |
||||
|
0
|
This is on a Windows Sever 2008 instance running IIS 7. |
||||
|
0
|
Very strange we have it running on win 2008 and IIS7.5 with no issues. I will have to investigate and see if we can reproduce this. Do you have WebDAV installed on the server? |
||||
|
0
|
No, WebDAV is not installed on this server. |
||||
|
0
|
Can you please check using Fiddler2 the request? It should contain a Content-Length header. |
||||
|
0
|
The request header does NOT have a Content-Length header. |
||||
|
0
|
Is there some way I can fix the malformed header? |
||||
|
0
|
Please try the attached DLL and let me know how it goes. I kept it the same version so you should be able to just drop it in and test. |
||||
|
0
|
The DLL actually breaks things to the point that my code does not compile. |
||||
|
0
|
Are you sure that you are running using the 3.5.4 webservice dll? |
||||
|
0
|
Okay, everything compiles again. |
||||
|
0
|
Is it possible for you to test this on another client? |
||||
|
0
|
New computer, fresh compile. Same error. |
||||
|
0
|
Can you please test against our site? (http://gemini.countersoft.com) |
||||
|
0
|
We have managed to replicate the issue and are looking for a solution. |
||||
|
0
|
Please use the attached it shoud solve your issue. |
||||
|
0
|
Thanks! That works! |
||||
|