Monday, December 21, 2009

Error During Trace Log Creating WSS3.0

Diagnose
Windows SharePoint Services 3.0 could not create, or write to, the trace log. This trace log contains information that is useful in troubleshooting issues.

This error might be caused by one of the following conditions:

The account that Windows SharePoint Services 3.0 is using does not have sufficient rights to the trace log.

The hard disk or partition does not have enough room.

To find the location of the log file folder
In Central Administration, on the left navigation pane, click Operations.

In the Logging and Reporting section, click Diagnostic Logging.

On the Diagnostic Logging page, in the Trace Log section, the path to the log file is displayed in the Path box.

The account that Windows SharePoint Services 3.0 is using does not have sufficient rights to the trace log
To check the permissions assigned to the log file folder
If you do not know the location of the folder, see the "To find the location of the log file folder" procedure. By default, the location is "Program Files\Common Files\Microsoft Shared\web extensions\12\LOGS" but the location can be changed in Central Administration.

Navigate to the folder, right-click the folder, and then click Properties.

On the Security tab, the WSS_ADMIN_WPG Windows group should have Full Control and the WSS_WPG Windows group should have Read & Execute, List Folder Contents, and Read permissions or higher on the folder. If they do not, assign these permissions by using the procedure in the "Assign sufficient permissions" section.

The hard disk or partition does not have sufficient room
To check the space on the disk or partition
If you do not know the location of the folder, see the "To find the location of the log file folder" procedure. By default, the location is "Program Files\Common Files\Microsoft Shared\web extensions\12\LOGS" but the location can be changed in Central Administration.

Navigate to the disk or partition, right-click it, and then click Properties.

On the General tab, check the free space. The drive or partition should have at least 500 MB for the log files. Note: the space required for the log files depends upon the diagnostic logging settings. To see these settings, use the "To find the location of the log file folder" procedure.

Resolve
To resolve this issue, use the resolution that corresponds to the cause you identified in the Diagnose section. After performing the resolution, see the "Verify" section to confirm that the feature is operating properly.

Cause Resolution
The account that Windows SharePoint Services 3.0 is using does not have sufficient rights to the trace log
Assign sufficient permissions to the trace log

The hard disk or partition does not have enough room
Free up disk space or relocate the trace log


Assign sufficient permissions to the trace log
Windows SharePoint Services 3.0 could not write to the trace log because the account that Windows SharePoint Services 3.0 is using does not have sufficient permissions to the trace log or its parent directory. This trace log contains information that is useful in troubleshooting issues.

Ensure that the WSS_ADMIN_WPG Windows group has Full Control and the WSS_WPG Windows group has Read & Execute, List Folder Contents, and Read permissions or higher on the folder containing the trace log. To perform this procedure, you must be a member of the Administrators group on the local computer.

Free up disk space or relocate the trace log
Windows SharePoint Services 3.0 could not write to the trace log. This trace log contains information that is useful in troubleshooting issues.

You can free up space on the drive containing the trace log by removing unneeded files. To perform this procedure, you must be a member of the Administrators group on the local computer.

You can change the location of the trace log to a partition that has more drive space.

To change the location of the trace log file
In Central Administration, on the left navigation pane, click Operations.

On the Operations page, in the Logging and Reporting section, click Diagnostic logging.

On the Diagnostic Logging page, in the Trace Log section, type the new location for the trace log file in the Path box.

Click OK.

Thursday, October 29, 2009

Useful Tools for SharePoint

Useful Tools for SharePoint
The following are the tools which are very frequently used in SharePoint Projects.SharePoint DesignerSharePoint Designer is a WYSIWYG HTML editor and web design application from Microsoft exclusively for SharePoint sites.
Download link: http://www.microsoft.com/DOWNLOADS/details.aspx?FamilyID=baa3ad86-bfc1-4bd4-9812-d9e710d44f42&displaylang=en

U2U CAML BuilderA tool for creating and executing CAML queriesDownload link: http://www.u2u.be/res/Tools/CamlQueryBuilder.aspx

SP Dispose CheckA tool for writing safe code using SharePoint Object Model to prevent memory leaks
Download link: http://code.msdn.microsoft.com/SPDisposeCheckWSPBuilderA tool for creating SharePoint Solution Package (WSP) WSS 3.0 & MOSS 2007Download link: http://www.codeplex.com/wspbuilder

STSDEVA tool for creating easy deployable solutionDownload link: http://www.codeplex.com/stsdevSharePoint Manager 2007It a SharePoint object model explorer tool, enables you to browse every site on the local farm and view every property.Download link: http://www.codeplex.com/spm

WSS/MOSS Log file readerA tool to View, search and filter SharePoint ULS log files directly from within Central Administration.Download link: http://www.codeplex.com/wssmosslogfilereader

SharePoint Logging SpyA tool to allow real time diagnostics of multiple servers in a SharePointDownload link: http://www.codeplex.com/sharepointloggingspy

SharePoint Test Data Population ToolA tool for capacity planning and performance testing that populates data for testing SharePoint deploymentsDownload link: http://www.codeplex.com/sptdatapop

AD ExplorerIt is an advanced Active Directory (AD) viewer and editor which allows manipulation of AD objectsDownload link: http://technet.microsoft.com/en-us/sysinternals/bb963907.aspx

IE Developer ToolbarA tool that aims to aid in design and debugging of web pagesDownload link: http://www.microsoft.com/downloads/details.aspx?FamilyId=E59C3964-672D-4511-BB3E-2D5E1DB91038&displaylang=en
Note: “Internet Explorer 8” includes the features of IE Developer Toolbar built in, instead of a separate product; known as Developer Tools rather than Developer Toolbar.

ReflectorA tool for disassemble Assemblies
Download link: http://www.red-gate.com/products/reflector

GhostDocA tool that helps developers writing XML documentation comments
Download link: http://www.roland-weigelt.de/ghostdoc

Resource RefactoringA tool to extract hard coded strings from the code to resource files
Download link: http://www.codeplex.com/ResourceRefactoring

FiddlerIt is a Web Debugging Proxy which logs all HTTP(S) traffic between your computer and the Internet.
Download link: http://www.fiddlertool.com/

Tuesday, October 27, 2009

PDF File Search in Moss

Hidden truth is, Sharepoint doesn't have any of its own search mechanisms. Its just a postman between the client and the database server, where all the sharepoint content is stored. Sharepoint server takes the request string and builds a query to be passed to the SQL server. Upon the query, SQl server passes the string to its own engine!SharePoint only searches the .txt, .htm, .doc, .xls, and .ppt. Coz, SQL Server can crawl through the base file extensions. PDF is a Binary file type can't really be searched with the SQL full text search engine, as it cant understand the format of PDF. So, Adobe came out with its ownfree filters.

Adobe 5.0 iFilter Download

Adobe 6.0 iFilter DownloadYou need to follow the installation procedure in the documentation.

Additional procedure for Adobe v8 iFilter:Adobe v8 comes along with the iFilter. So, no need to install a iFilter for Adobe V8 on a 32- bit windows.
1.

Add the filter-extension to the File types crawled:Start -> Program -> Microsoft Office Server -> SharePoint 3.0 Central Administration -> Search Settings -> File Types -> New File Type (Add extension pdf here)

2.

Modify the following Registry keys by changing their "Default" value to the new CLSID of the Adobe IFilter: {E8978DA6-047F-4E3D-9C78-CDBE46041603}HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\Search\Setup\ContentIndexCommon\Filters\Extension\.pdfDefault -> {E8978DA6-047F-4E3D-9C78-CDBE46041603}HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Search\Setup\ContentIndexCommon\Filters\Extension\.pdfDefault -> {E8978DA6-047F-4E3D-9C78-CDBE46041603}

3.

Add the Installation directory of the Adobe Reader v.8 to the System Path.For example, if the Reader is installed on "C:\Program Files\Adobe", then add"C:\Program Files\Adobe\Reader 8.0\Reader"or"C:\Program Files\Adobe\Reader 9.0\Reader" to the system path by:Right Click on My Computer -> Properties -> Advanced -> Environment Variables -> Path (Under System Variables) -> Edit -> (Add "C:\Program Files\Adobe\Reader 8.0\Reader").This effectively tells the adobe IFilter where to pick up the dependent DLLs.

4.

Copy the .gif file that you want to use for the icon to the following folder on the server:SharePoint Server 2007-Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Images

5.

Edit the DOCICON.xml file to include the .pdf extension.Navigate to SharePoint Server 2007 -Drive:\Program Files\Common Files\Microsoft Shared\Web server extensions\12\Template\XmlOpen the Docicon.xml file.Add an entry for the .pdf extensionSave the DOCICON.xml

6.

Recycle the search service:Run->cmd

iisreset & Stop and Start osearch

7. Now we can crawl and search PDF documents with v.8 Reader.For 64-bit windows,

you need to download the iFilter seperately. iFilter that comes along with the Adobe V8 installation supports only the 32-bit OS.SQL Server's search engine deals with the base types and with the addition of new iFilters, it can go right with the associated formats. Microsoft comes out with a free iFilter for RTF. Other available IFilters for PDF, RTF, MSG, ZIP are fount at IFilterShop.

Java Script Error while editing the content editor

This error is due to the JavaScript plug-ins (HtmlEditor.js or BFORM.js) files in the 1033 folder on the 12 hive. When you add the SP1, it did not update these two files to compliance with .js codes in 'content editor' web parts. These kind of issues occur when you miss the installation sequence, i.e. SP1 was added after the java script plug-ins. Thus, unable to control the files later.

Steps to recover:
If you have more than one severs running in the form, go to the server in the form, where the Content editor popups are working fine.
Go to: C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033
Replace the HtmlEditor.js , BFORM.js and OWS.js with the healthy server's files.While trying to edit(edit->modify shared webpart-> rich text editor) a Content Editor Webpart, Rich text editor window will popup.Due to the popup blocker flags on the browsers, this popup window will be blocked. To avoid this, Microsoft added the fix within the servive packs that will go and edit the javascript plug-ins on the MOSS 2007 . This update goes with the installation of the WSS SP1.

SSP Access Denied Issue

Problem definition:Even though you are the farm administrator, site collection admin for the ssp, you get access denied error, when you click on the 'User profiles and properties'.Sharepoint Central Admin -> SharedServices1 -> User Profiles and My Sites -> User profiles and properties'

Fix:
Go to Personalization services permissions link located under the User Profiles and My Sites section on the shared services1 page.Sharepoint Central Admin -> SharedServices1 -> User Profiles and My Sites -> Personalization services permissions
Add users/group. Add yourself with the manage user profiles permissions.If you are the admin then add the user who complained about the access.

How to fix Modify Navigation menu that Disable and Modify Pages Library Settings missing in MOSS 2007

stsadm -o activatefeature -filename publishing\feature.xml -url http://URL -force
stsadm -o activatefeature -filename publishingresources\feature.xml -url http://URL -force
stsadm -o activatefeature -filename publishingSite\feature.xml -url http://URL -force
stsadm -o activatefeature -filename publishingweb\feature.xml -url http://URL -force
stsadm -o activatefeature -filename publishinglayouts\feature.xml -url http://URL -force
stsadm -o activatefeature -filename navigation\feature.xml -url http://URL -force
(Obviously, replace the URL above with the URL of the site collection)

Tuesday, July 14, 2009

Server Error in '/' Application.
--------------------------------------------------------------------------------


This type of page is not served.
Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension '.mdb' may be incorrect. Please review the URL below and make sure that it is spelled correctly.

Requested Url: /directory/file_requested.mdb


SOLUTION DETAILS:
STOP IIS
Login to Server -> IIS -> Websites
Right click on the web application -> properties
Home Directory -> Configuration
Scroll down the 'ISAPI' extensions -> select '.mdb' -> Remove.
iisreset