SCCM.asmx HasOSDAdvertisement Results False when true

Oct 4, 2010 at 12:25 AM

To All,

I've been having a problem getting the webservice working properly on a Windows 2008 box with IIS 7. Specifically the “HasOSDAdvertisement” function in the SCCM.asmx. I have a Windows 2003 server setup with IIS 6 running the older version of the webservice and the SCCM.asmx functions works great. I downloaded the newest version of the webservice 7.1 and set it up on the 2008 server. The “HasOSDAdvertisement” always return false when queried which is causing my OSD menu to fail. I’ve setup the logging on the web server in debug mode and notice webserver appear to find an OSD advertisement for the computer (baremetal) but still returns a false. Here an entry from the log:

2010-10-03 16:27:22.8839|INFO|MaikKoster.Deployment.SCCM.Controller|Found 20 Advertisements.
2010-10-03 16:27:22.8839|DEBUG|MaikKoster.Deployment.SCCM.Controller|Checking current Advertisement.CEN2005A
2010-10-03 16:27:22.8839|DEBUG|MaikKoster.Deployment.SCCM.Controller|Current Advertisement is an OSD advertisement.
2010-10-03 16:27:22.8839|DEBUG|MaikKoster.Deployment.SCCM.Controller|Request is not limited by collection. Advertisement is valid.
2010-10-03 16:27:22.8839|INFO|MaikKoster.Deployment.SCCM.Controller|An OSD Advertisement is available for computer 721.
2010-10-03 16:27:22.8839|INFO|MaikKoster.Deployment.WebService.SCCM|No OSD advertisement available for Computer. Returning False

I can provide more of the log if necessary. Has anyone else seen this?

Oct 4, 2010 at 3:29 PM
Edited Oct 4, 2010 at 3:29 PM

I'm seeing this issue as well running on a Server 2008 R2 box.  Whats funny, is I was running version 6.x for a while and it was working and all of a sudden stopped when I moved it over into "production".  The web service didn't change, nor did the scripts in the boot image.  All I did was advertise it onto the All Systems and Unknown Computers collections and it started to show this behavior.

I loaded up the 7.x version of the web service on my Win7 x64 box and did some testing and it seemed to work for a while, but them stopped.  The test setup is using my credentials which has full administrative access to AD and the SCCM environments.  I'm seeing similar messages in the log files as you JohnC.

Oct 5, 2010 at 2:14 AM

I went down the road of permission or authentication issues...but I changed direction because other function like GetOSDCollection, GetTaskSequences, etc in the SCCM.asmx (from the same server) appear to be working just fine. It appears for now that its something to do with the HasOSDAdvertisement function.  I haven't tried version 6 on the new server...but it may be a good test. If it fails the same way then its something to do with the Windows 2008 server...if it doesn't it something to do with the new version of the webservice. 

Oct 6, 2010 at 8:10 AM

Seems you have found a bug in the current version. Could you please try the following fix I've just uploaded: ?

Just put the dll from the download in the bin directory of your webservice and overwrite the existing one. You might want to take a backup of the old one first.

Please let me know if this fixes the issue.



Oct 6, 2010 at 5:10 PM

Hey Maik,

I copied that DLL onto my test system and the HasOSDAdvertisement function is now returning true on systems.  Going to try a full deployment but the function from the testing page is now working.

Oct 6, 2010 at 10:15 PM

Looks like it is working now guys.


Oct 7, 2010 at 12:59 AM

Agree, I just tested it on a full baremetal install and it all looks good. Thanks Maik...