Main Menu
Home
Contact Me
Blog

Home arrow Blog arrow Technology
Technology Related Articles
How to: Get the Administration Site Object for the Specified Shared Service Provider (SSP) PDF Print E-mail
Wednesday, 08 August 2007

 

In my current project, there is a need for me to create a custom list under the Shared Services Provider (SSP) administration web site to put some configuration values. As a Sharepoint developer, what comes next is that we need to get the Site object first, before we can get the List under it.

However, there wasn't any straight-forward way to get the SSP administration web site address, given only the SSP Name.
The only hint I have is that you can get the ServerContext object, by providing the SSP name.


string sspName = "MySharedServices";
ServerContext ctx = ServerContext.GetContext(sspName);

 

I've been trying to look for the methods or classes that serves my need. Finally, this is the only way I know to get the SSP web site from the SSP name. It's using a little bit of reflection.


string sspName = "MySharedServices";
ServerContext ctx = ServerContext.GetContext(sspName);

Guid siteGuid = (Guid) ctx.GetType().GetProperty("SharedServiceAdministrationSiteId", -1, null, Type.GetType("System.Guid"), new Type[0], new ParameterModifier[0]).GetValue(ctx, null);

SPSite site = new SPSite(siteGuid);

 

 

Be first to comment this article | Views: 585

 
Microsoft .NET Framework 2.0 Installation Failed - Error 25007 PDF Print E-mail
Thursday, 05 July 2007
I was trying to install the Service Pack 1 for Microsoft Visual Studio .NET 2005 before it failed due to insufficient disk space. The service pack installation rollback seems to totally kill my Visual Studio .NET 2005 and .NET framework. A repair installation for the Visual Studio 2005 didn't help at all. It gave me a frustrating unexpected 2908 error. So, my only option was to completely remove Visual Studio 2005 and .NET Framework 2.0, and trying to reinstall them again.

When I tried to reinstall .NET Framework 2.0, it gave me the 25007 Error.
This is what was logged in the event log:
Product: Microsoft .NET Framework 2.0 -- Error 25007.Error occurred while initializing fusion. Setup could not load fusion with LoadLibraryShim(). Error: The handle is invalid.

Comments (1) | Views: 1658

Read more...
 
 

http://www.johanmk.com