mylifeinaminute.com

Archive for March, 2008

SharePoint 2007 (WSS 3.0) and Custom Web Services

by liquidpooled on Mar.20, 2008, under Microsoft, Office, Sharepoint Server

SharePoint (MOSS 2007/WSS 3.0) can prove to be quite a chore at times and custom web services are no exception. I view custom web services and their deployment within a SharePoint/WSS environment in two ways. The first, and certainly easiest way is to create a new virtual directory is IIS under the root of your site. While this works, in many cases this might not be preferable. Perhaps we want to put a service in the “Layouts” directory so it is accessible from each site collection and the collection’s sub sites.

To accomplish a “Layouts” deployment, follow the following steps:

  1. Create your web service locally referencing the necessary SharePoint libraries (Microsoft.SharePoint.dll and Microsoft.Office.Server.dll)
    1. If you plan on deploying your compiled library to the GAC on your servers, be sure to generate a strong name and change the project settings to use it.
    2. The libraries above can be found at “C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI”
    3. I recommend using a Class Library or a Web Application project to make compiling slightly more sane later on.
  2. Once your service is built and can be accesed locally (either through the built-in web server or IIS), we can deploy it to it’s target environment. If you have used a Web Application Project, you can now publish your site to either a separate directory on your local drive or directly to the SharePoint server.
  3. Copy your service and any associated files (controls, web pages, web.config, etc.) to your destination server to the following directory:
    “C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\<Service Name>”

    1. Do not copy your bin folder or it’s contents to this location.
  4. Take your libraries from your compiled project (contents of the “bin” directory) and deploy them to the target server root directory. You can determine this directory from IIS. (Example: “C:\inetpub\wwwroot\VirtualDirectories\80\bin”)

After following the steps above, you should now be able to browse to your service. The beauty of a “Layouts” deployment is that your service will now be accessible from each and every site within your web application. I do not do “_vti_bin” deployments in order to keep the core SharePoint files segregated from any custom work of my own, but the methodology used here would apply just the same if you felt inclined to do so.

Image a SharePoint site http://myfakesite/ with the following structure:

  • sites
    • site1
    • site2
  • anothercollection
    • site1

Using the structure above, our custom service could be referenced in the following manner:

  • http://myfakesite/sites/site1/_layouts/<Service Name>/<Service Name>.asmx
  • http://myfakesite/sites/site2/_layouts/<Service Name>/<Service Name>.asmx
  • http://myfakesite/anothercollection/site1/_layouts/<Service Name>/<Service Name>.asmx

With this deployment scenario, our custom service can now perform actions in the current context of a site (Microsoft.SharePoint.SPContext).

And that’s it. Get deploying! While your first deployment might go smoothly, your subsequent deployments will most likely require a quick “iisreset” from the command prompt.

If you feel so inclined, you can compare with the ever popular MSDN instructions, although I prefer mine.

Leave a Comment more...

Microsoft IE 8 (Beta) and SharePoint

by liquidpooled on Mar.07, 2008, under Internet Explorer, Microsoft, Office, Sharepoint Server

Update: It appears that Explorer View does work, if Web Client (a Windows Service) is enabled. I do not have Office installed on the Virtual Machine (Windows Server 2003 R2) that I was testing IE 8 on, and as such there was no support for FPRPC (FrontPage Remote Procedure Call). In the future, I should use XP at the very least so I have FPRPC out of the box.  That, or I could just install Office 2007 on my test machines.


The Internet Explorer version 8 beta (download) was released on March 5th, 2008. I’ve had a chance to play with it in the office a bit, and while I think it’s (possibly) a step up from IE 7, it still has a long road ahead of it. In the course of testing the latest and greatest from Microsoft, I learned that the beta in it’s current form can not render an Explorer View of a Document Library in SharePoint (MOSS 2007 Standard). That makes it a show stopper for use at work, but here’s to hoping that it gets fixed sooner rather than later.IE8 Explorer View

Leave a Comment more...

Netflix and Media Center

by liquidpooled on Mar.07, 2008, under DRM, Media Center, Netflix, Vista

There is a new kid on the block when it comes to Netflix and Vista Media Center integration, and that is MyNetflix. Having had a chance to play around with this a bit, I can safely say that for a “beta” release, I’m completely on board with the functionality provided. Perhaps one of the most interesting features on this Media Center add-on is the ability to view “Watch It Now” movies from Netflix. I’ve written in the past about the problems that I have had with the “Watch It Now” feature on my Media Center, and I’m happy elated to report that “Watch It Now” works perfectly through the MyNetflix plug-in.

That said, there is one small complaint that I do have about the plug-in in it’s current form and it relates to full screen viewing. When viewing a “Watch It Now” movie, I feel it would be beneficial to have some type of control that is accessible from the Media Center interface to allow for entering full screen. Short of that, MyNetflix is a winner.

MyNetflix can be downloaded from the Software page at Anthony Park.

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...