No default member found for type 'UInteger'

Mar 6, 2012 at 5:36 PM

Hello,

We have the SCCM web service implemented to add computers to OSD Collections.  Occasionally, we get a "500 Internal Server Error" response from the web service.  It works for some computers and not others.

Here is one that works:

CHECKING the [AddComputerToCollection] section
About to execute web service call to http://webserviceserver/SCCMWebService/SCCM.asmx/AddComputerToCollection: macAddress=00:1A:A0:EB:5B:0C&UUID=4C4C4544-004A-5710-8059-B5C04F534631&CollectionID=0A1001F6&ComputerName=W5JWYSF1
Response from web service: 200 OK
Successfully executed the web service.

While this returns an error:

CHECKING the [AddComputerToCollection] section
About to execute web service call to http://webserviceserver/SCCMWebService/SCCM.asmx/AddComputerToCollection: macAddress=00:14:22:5A:5B:9F&UUID=4C4C4544-0031-3510-8030-C3C04F4C3931&CollectionID=0A1001F6&ComputerName=WC150L91
Unexpected response from web service: 500 Internal Server Error
No default member found for type 'UInteger'

Any ideas?

Thanks,

Terence Durning

Apr 2, 2012 at 10:30 PM

I am having the same issue. This was working but now has just stopped, any ideas?

Apr 24, 2012 at 1:43 PM

Can you please enable logging as described in http://mdtcustomizations.codeplex.com/wikipage?title=Webservice%20Troubleshooting and have a look in the log files (or just send me the zipped files or a link where I can find them). They should tell you more.

Regards

Maik

Apr 24, 2012 at 4:13 PM

Hi Maik,

Thanks for the reply. I’ve gone back to an older web service for the “AddComputerToCollection” operation, so it’s not critical to me to get this fixed. For completeness, though, I’ve put the log files from March 6th 2012 (when I was testing it to see why users were not getting OSD advertisements) at https://skydrive.live.com/redir.aspx?cid=6849ee4b07f63c4e&resid=6849EE4B07F63C4E!116&parid=6849EE4B07F63C4E!115. You can find the section where I was testing starting at 2012-03-06 11:27:41 and ending about 2012-03-06 12:26:34 (since this is in production, you will see other machines using the web service at the same time). I hope this is helpful.

I’m still using the web service for the “DeleteComputer” and “HasOSDAdvertisement” operation, and I appreciate the work you put into this.

Thanks,

Terence Durning

From: MaikKoster [email removed]
Sent: Tuesday, April 24, 2012 8:44 AM
To: Durning, Terence (OFT)
Subject: Re: No default member found for type 'UInteger' [mdtcustomizations:347522]

From: MaikKoster

Can you please enable logging as described in http://mdtcustomizations.codeplex.com/wikipage?title=Webservice%20Troubleshooting and have a look in the log files (or just send me the zipped files or a link where I can find them). They should tell you more.

Regards

Maik



This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system.
May 8, 2012 at 3:38 PM

Hi Maik this is the error message we are seeing in the logs. Any idea?

2012-05-08 08:36:24.2904|DEBUG|MaikKoster.Deployment.SCCM.Controller|Created Direct Rule with Resource ID 115687 and name VC715065.

2012-05-08 08:36:24.2904|DEBUG|MaikKoster.Deployment.SCCM.Controller|Invoking method AddMembershipRule.

2012-05-08 08:36:24.6654|DEBUG|MaikKoster.Deployment.SCCM.Controller|Error Message: Generic failure

2012-05-08 08:36:24.6654|INFO|MaikKoster.Deployment.SCCM.Controller|Unable to add computer VC715065 (115687) to Collection COC00171.

2012-05-08 08:36:24.6654|TRACE|MaikKoster.Deployment.SCCM.Controller|leaving method

2012-05-08 08:36:24.6654|INFO|MaikKoster.Deployment.SCCM.Controller|Unable to add Computer VC715065 (MAC: 00:50:56:21:C2:80, UUID: 99A14D56-2BF9-D899-C2F9-C2FE50FCD950) to collection COC00171.

2012-05-08 08:36:24.6654|TRACE|MaikKoster.Deployment.SCCM.Controller|leaving method

2012-05-08 08:36:24.6654|INFO|MaikKoster.Deployment.WebService.SCCM|Could not add computer to collection. Returning "False"

2012-05-08 08:36:24.6654|TRACE|MaikKoster.Deployment.WebService.SCCM|leaving method

2012-05-08 08:36:24.6654|TRACE|MaikKoster.Deployment.WebService.SCCM|entering method

2012-05-08 08:36:24.6654|DEBUG|MaikKoster.Deployment.WebService.SCCM|SetCachedNamespaces

2012-05-08 08:36:24.6654|TRACE|MaikKoster.Deployment.WebService.SCCM|leaving method

From: MaikKoster [email removed]
Sent: Tuesday, April 24, 2012 6:44 AM
To: Bowron, Brett
Subject: Re: No default member found for type 'UInteger' [mdtcustomizations:347522]

From: MaikKoster

Can you please enable logging as described in http://mdtcustomizations.codeplex.com/wikipage?title=Webservice%20Troubleshooting and have a look in the log files (or just send me the zipped files or a link where I can find them). They should tell you more.

Regards

Maik



NOTICE -
This communication is intended ONLY for the use of the person or entity named above and may contain information that is confidential or legally privileged. If you are not the intended recipient named above or a person responsible for delivering messages or communications to the intended recipient, YOU ARE HEREBY NOTIFIED that any use, distribution, or copying of this communication or any of the information contained in it is strictly prohibited. If you have received this communication in error, please notify us immediately by telephone and then destroy or delete this communication, or return it to us by mail if requested by us. The City of Calgary thanks you for your attention and co-operation.
May 15, 2012 at 9:40 PM

Hi Maik,

Can you tell me what permissions the webservice account needs in SCCM to run this method?

The webservice is not working when I try to add a computer to a collection when the computer does not exist in SCCM. If the computer exists the webservice adds the computer to the collection with no issues.

MaikKoster.Deployment.SCCM.Controller|Invoking method AddMembershipRule

 

May 16, 2012 at 3:12 PM

So, the webservice is working, however what I have found after further testing is that:

The add computer computer to collection function will correctly add the system to SCCM. However, the addcomputercollection needs the computer to be in sccm for a period of time before the function will return true. If I run add computer and then addcomputertocollection right after it will return false with the generic error specied above. If I keep running the function every 30 secs it will eventually work.

Any thoughts?

Oct 23, 2014 at 5:54 PM
So I have been running this web service for 2+ years successfully. Recently I've run into a few instances where it throws back "No default member found for type 'UInteger'"

Here are my debug logs:

2014-10-23 09:19:03.2964|DEBUG|MaikKoster.Deployment.SCCM.Controller|Searching for computer using query string "SELECT * FROM SMS_R_System WHERE (MacAddresses = 'A0:D3:C1:01:FE:C8')"
2014-10-23 09:19:03.5116|INFO|MaikKoster.Deployment.SCCM.Controller|Resource ID of the computer is not known or could not be determined
2014-10-23 09:19:03.5116|DEBUG|MaikKoster.Deployment.SCCM.Controller|Computer not found. Add it to the database.
2014-10-23 09:19:03.5356|DEBUG|MaikKoster.Deployment.SCCM.Controller|Add Computer "GSEAPP-PO-7P" (MAC: A0:D3:C1:01:FE:C8, UUID: ).
2014-10-23 09:19:03.5356|INFO|MaikKoster.Deployment.SCCM.Controller|Checking Scope
2014-10-23 09:19:03.5356|INFO|MaikKoster.Deployment.SCCM.Controller|Current Scope is "\sccmserver.company.com\root\sms\site_WC1".
2014-10-23 09:19:03.5356|DEBUG|MaikKoster.Deployment.SCCM.Controller|Invoking ImportMachineEntry method
2014-10-23 09:19:03.5356|DEBUG|MaikKoster.Deployment.SCCM.Controller|Adding a new computer will fail if the computername is in use already.

What is happening is there is already an object in SCCM database with the name GSEAPP-PO-7P, but the object has no associated MAC address. It's an active client. So the query by the web service found no object existed, so it tried to create one, and failed because one with that name already was there. This is happening on systems that were built and put into SCCM and fail for some reason to populate MAC address in the object. Check the object in SCCM, I bet you'll find it and find that it has no MAC address. The fix? Not exactly sure. I removed the object from SCCM completely and ran the web service again and it was added to the collection I wanted.