SharePoint / ASP.Net Development
Experiences from the field...
Navigation
   RSS 2.0
Categories
Entries by Month

# Thursday, June 26, 2008

Occasionally, I see a question about determining if a given installation is MOSS or simply WSS. I am unaware of any Object Model method or property that indicates this, but I did find a different way. The User Profile service is a web service that is included in MOSS and not WSS. So, if the asmx file exists, then MOSS is installed.

Here is a code snippet:

string isapiFolder = SPUtility.GetGenericSetupPath("ISAPI");
string userProfileServicePath = Path.Combine(isapiFolder, "UserProfileService.asmx");
bool SharePointServerInstalled = File.Exists(userProfileServicePath);
Thursday, June 26, 2008 11:53:12 AM (Central Daylight Time, UTC-05:00)  #    Comments [0]  | 
Comments are closed.
Search

Further Reading...

Powered by: newtelligence dasBlog 2.2.8279.16125

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008, Paul Schaeflein

Send mail to the author(s) E-mail