Wednesday, May 16, 2007

Deploying Web Parts using CAB files

  1. For ease of deployment, copy the .cab file to the following location, where Office SharePoint Server 2007 is installed:

    C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\bin

    This should be the same as the location of Stsadm.exe. Ensure that you update the path on your computer if it does not match the default location.

  2. Click Start, click Run, and then type cmd.

  3. Type cd "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\bin"

  4. Run the following command to deploy your Web Part accross the entire farm:

    stsadm.exe -o addwppack -filename yourcabfilename.cab -globalinstall -force

  5. Run the following command to deploy your Web Part to a specific website:

    stsadm.exe -o addwppack -filename yourcabfilename.cab -url http://teleport -globalinstall -force

  6. After the command returns with "Operation completed successfully," run the following command:

    iisreset /timeout:0

  7. Check central administration / solution management to see where the solutions are registered as deployed by SharePoint.

Sunday, May 13, 2007

MOSS Site Usage report error (and crash)

This happened today;

The symptom of the problem is that when trying to access the site usage reporting in MOSS the user (who does have access) is prompted to authenticate, upon failing to authenticate the worker process falls over.

The app event reports the following error: .NET Runtime version 2.0.50727.42 - Fatal Execution Engine Error

The SSP1 & Portal application pools both stopped running.

The resolution is the application of a non-public hotfix to ASP.net 2.0: http://support.microsoft.com/kb/913384

Web Application Creation Fails

Recently while creating new web applications, I received the following error:

Application Server Administration job failed for service instance Microsoft.Office.Server.Search.Administration.SearchAdminSharedWebServiceInstance (ae1bb579-16f8-4ad3-9d60-decfb589e3ae).

Reason: The path specified cannot be used at this time. (Exception from HRESULT: 0x80070094)

Techinal Support Details:

System.Runtime.InteropServices.COMException (0x80070094): The path specified cannot be used at this time. (Exception from HRESULT: 0x80070094)

at System.DirectoryServices.DirectoryEntry.CommitChanges()

at Microsoft.SharePoint.Metabase.MetabaseObject.Update()

at Microsoft.SharePoint.Administration.SPProvisioningAssistant.ApplyIisVirtualDirectorySettings(VirtualDirectory virtualDirectory, String path, AccessFlags accessFlags, String applicationName, String applicationPoolId, String[] scriptMaps)

at Microsoft.SharePoint.Administration.SPProvisioningAssistant.ProvisionIisRootVirtualDirectory(WebSite webSite, String path, AccessFlags accessFlags, String applicationName, String applicationPoolId, String[] scriptMaps)

at Microsoft.SharePoint.Administration.SPProvisioningAssistant.ProvisionIisWebSite(String serverComment, String[] serverBindings, String[] secureBindings, AuthenticationMethods authenticationMethods, String[] authenticationProviders, String path, AccessFlags accessFlags, String applicationName, String applicationPoolId, String[] scriptMaps, String sslCertificateSubjectName)

at Microsoft.SharePoint.Administration.SPMetabaseManager.ProvisionIisWebSite(String serverComment, String[] serverBindings, String[] secureBindings, Int32 authenticationMethods, String[] authenticationProviders, String path, Int32 accessFlags, String applicationName, String applicationPoolId, String[] scriptMaps, String sslCertificateSubjectName)

at Microsoft.Office.Server.Administration.SharedWebServiceInstance.Synchronize()

at Microsoft.Office.Server.Administration.ApplicationServerJob.ProvisionLocalSharedServiceInstances(Boolean isAdministrationServiceJob)

Solution:

Restart the WSS Timer service

the WSS Timer service leaks memory

MOSS Content Deployment Settings

The Content Deployment Settings are configured via Central Administration under Operations

Note:

  1. The site you deploy content to should use a separate content database from the source site.
  2. The site you deploy to must be initially created as a blank site.
  3. You can deploy content to sites with all relationships - ie: within a farm, between 2 web apps or between separate farms.

To set up content deployment between farms:

  1. Configure content deployment settings
    1. Enable content deployment jobs in Central Administration by setting CDS to Accept incoming content deployment jobs.
    2. Set the import & export servers
    3. Set the connection security to Do not require encryption
    4. Create a new blank site in the destination farm.

  2. Create a new Content Deployment Path
    1. Assign a name & description
    2. Select the source web application & site collection.
    3. Assign the URL for the destination Central Administration Server eg: http://dev01w2k3:11111
    4. Click on the Connect button.
    5. Select the desitination web application & site collection.
    6. Select whether you want to deploy user names & security information.

  3. Create a test one time deployment job
    1. Assign a name & description
    2. Select the content deployment path
    3. Specify whether the job should be site specific or accross an entire site collection.
    4. Leave the frequency & options as their default values.
    5. Click Ok.

  4. Run the one time test deployment job
    1. Open the One time deployment job drop down list and select Run Job.
    2. Refresh the page so that Running is displayed in the status column. Click on running to view the deployment process report page.
    3. If successful the status will change to Successful on completion.

  5. Schedule the Quick Deploy job
    1. Assign the frequency of the schedule.
    2. Check the quick deploy users.
    3. Set up notifiaction if required.

  6. Assign Quick Deploy content in the source website
    1. Go to your source website and edit a page.
    2. Publish your changes.
    3. From the Tools drop down list select Quick Deploy.
    4. The changes will be updated at the next scheduled job.

MOSS webpart errors due to log file storage issue

The webparts on MOSS bombed out yesterday morning with the following error message:

Web Part Error: One of the properties of the Web Part has an incorrect format. Windows Sharepoint Services cannot deserialize the Web Part. Check the format of the properties and try again.

The cause turned out to be the log files generated by MOSS which had increased in size to 5Gig and clogged up the c:drive

The log files are set up to be stored on the d:drive not the c:drive as are Indexes & Queries.

Each was originally configured as follows:

  • Indexing: D:\MOSS\12.0\Data\Office Server\Applications
  • Queries: D:\MOSS\12.0\Data\Office Server\Applications

Diagnostic Logging -

  • Error Reports: Collect
  • Event Throttling: Warnings / High
  • Trace Log: 72 - 30

Usage Analysis Processing -

  • Logging Settings: Enabled to create 1 log located at d:\MOSS\12.0\Logs\Usage
  • Process Settings: Enabled between 10pm & 12am daily

This is still being investigated by reducing the amount & frequency of log files generated while monitoring the situation over the next 4 weeks