Showing posts with label Trouble shoot in MOSS 2007. Show all posts
Showing posts with label Trouble shoot in MOSS 2007. Show all posts

Wednesday, June 17, 2009

Access denied when crawling MOSS Content in crawl Log.

Hi All,
when you try to crawl the site content from central admin in MOSS and look into crawl log the site is not crawled properly and showing you following error.

"Access is denied. Verify that either the Default Content Access Account has access to this repository, or add a crawl rule to crawl this repository. If the repository being crawled is a SharePoint repository, verify that the account you are using has "Full Read" permissions on the SharePoint Web Application being crawled. (The item was deleted because it was either not found or the crawler was denied access to it.)"

try following steps to get rid of this kind of error:

1. Click Start, click Run, type regedit, and then click OK.
2. In Registry Editor, locate and then click the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
3. Right-click Lsa, point to New, and then click DWORD Value.
4. Type DisableLoopbackCheck, and then press ENTER.
5. Right-click DisableLoopbackCheck, and then click Modify.
6. In the Value data box, type 1, and then click OK.
7. Quit Registry Editor, and then restart your computer.

Source: http://support.microsoft.com/kb/896861



Saturday, July 5, 2008

Truncate SQL Server Transaction Log

Many time you will face an issue while trying to add new user, column,list etc to a sharepoint site and the error displayed would be either 'Unexpected error' or some HResult error with a error code. If you investigate further by looking into the event viewer log, you will find that a SQL Server error has occured which states that the transaction log is full. If this is the case then follow the given below steps to truncate the transaction log.

  1. Open SQL Server Management Studio and locate the site content db.
  2. Select the db and right click to open the backup task.
  3. Select the Transaction Log to backup, go to options and select the radio button 'Truncate Log'.
  4. Start the backup.
  5. Done.Transaction Log is truncated.

Monday, June 23, 2008

Adding Multiple Lookup field by code in Sharepoint

Hi all,
here is simple code to add Multiple lookup fields by code in SharePoint
SPFieldLookupValueCollection spConnectionMethod = new SPFieldLookupValueCollection();
foreach (ListItem li in rdbconnection.Items)
{
if (li.Selected)
{
spConnectionMethod.Add(new SPFieldLookupValue(Convert.ToInt32(li.Value.ToString().Split('@')[0].ToString()), li.Text));
}
}
litem["Connection"] = spConnectionMethod

Friday, June 13, 2008

Dragging Left navigation Bar in MOSS 2007

Hi All,

Let me give you a scenario where you may need this kind of feature available. Lets say you are having a long named List Or document library, at that time you will find that name will break to the next line. (See below image)




Let me give you better example. In your document library you are having many folders. Inside each folders you have many other folders as well.

Now you would definitely not like the default structure of left navigation menu. So we can change it to TreeView so that we can explore the things around. But here also you will face one problem. Problem in terms of scrolling horizontally left to right and right to left. How nice will it be if you get something like Arrow from which you can just drag the left navigation bar to any amount to right side so that you get rid of scrolling.

For this you need to place one javascript in master page (default.master). If you have customized master page, then change in that master page.

Note : Make sure that you place this javascript after </BODY> tag. That means between </BODY> and </HTML> tag in master page.

Here is a link from where you can download this javascript.

Click Here to Download

Have a look at this snapshot taken from my PC.



This script will automatically saves the previous location of scrolled position so that it doesn't get lost between server trips.

When you move your mouse pointer to that area between content page and left navigation bar, you will notice that cursor gets changed and now you can drag according to your convenience.

Backup and Restore Problem

Hi,

here is a case when you want to restore WSS 3.0 site with Content database in SQL Server 2000 to wss 3.0 with Default Embadded Edition Microsoft##SSEE.


I have server "A" (Old server) where WSS 3.0 are installed. I have 2 sites created in WSS 3.0 and I have SQL Server 2000 on server "A".
Now I want to restore these four site on new server called "B" where WSS 3.0 installed with Default Microsoft##SSEE Sql instance.
so what should I do which is better and effective way to do this?
as there are two over load of backup from stsadm command in wss 3.0 which should I use.
1.Stsadm.exe -o backup -url http://a/ -filename "c:\backup\a_80.bak"
2.stsadm.exe -o backuo -backupmethod "full" -directoryname "c:\backup"
which one should I use?.
using second method of backup while restore on new server "B" I am getting error [SPManager] [ERROR] [6/9/2008 8:40:11 AM]: The signature of the public key is invalid.
Signing object:[dbo].[AllDocs]
[SPManager] [ERROR] [6/9/2008 8:40:11 AM]: at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)

while restoring WebApplication is successfully created but in second phase when it trying to attach contentdb with this webapplication it fires an error that remote connection is not enabled because its Microsoft##SSEE instance.

Solution is take backup from first method.. i.e.

1.Stsadm.exe -o backup -url http://a/ -filename "c:\backup\a_80.bak"

and restore it..

Thursday, June 12, 2008

Error while click on Search Setting from SSP from central admin

Hi to over come this error do following things.
Make sure that Search service is running from central admin
  1. Go To Run.
  2. write Services.msc
  3. Find Office SharePoint Search
  4. right click it and open LogOn Tab
  5. give admin user name and password or user who have rights on content database server.
for more see
Click here for more
Click here
Let me know your comments...


Monday, June 9, 2008

In FBA When I open document from Document Library Login Page Display in document itself.

Hi,
some time you may come accross the situation when you are using Form Base Authentication(FBA) and after Login when you open document from document library document itself open login page inside.
Problem is because of IE (internet explorer) when you login using form base authentication cookie is saved inside browser not on your machine.so that cookie is not available to your document which open outside browser.
To overcome this problem save cookie on your machine. or persist
In FireFox it will not happen.



Share your SharePoint Experiences with us...
As good as the SharePointKings is, we want to make it even better. One of our most valuable sources of input for our Blog Posts comes from ever enthusiastic Visitors/Readers. We welcome every Visitor/Reader to contribute their experiences with SharePoint. It may be in the form of a code stub, snippet, any tips and trick or any crazy thing you have tried with SharePoint.
Send your Articles to sharepointkings@gmail.com with your Profile Summary. We will Post them. The idea is to act as a bridge between you Readers!!!

If anyone would like to have their advertisement posted on this blog, please send us the requirement details to sharepointkings@gmail.com