Wednesday, 24 September 2008
Post
Sorry it's been a while since my last post, but I've been flat out with a project. I have a list of a lot of issues I've come across and work arounds, so in the next week or so I'll have heaps of posts.
Fadi
Wednesday, 27 August 2008
SharePoint SiteMap Generator - Version 2
http://www.thesug.org/blogs/lsuslinky/Lists/Posts/Post.aspx?ID=14
Fadi
Friday, 25 July 2008
Content Deployment's Next Run Changing Time
If anyone knows why, can you please let me know cause I'm curious about it.
Fadi
Thursday, 17 July 2008
SharePoint Infrastructure Updates Available (Post SP1)
Key updates for Windows SharePoint Services 3.0 include:
- Platform performance improvements and fixes.
- Several backup and restore fixes.
- Several core Workflow fixes.
- New Search features such as federated search and a unified search administration dashboard.
- Several core fixes to Search to improve performance and scale.
- Platform performance improvements and fixes.
- Several core fixes to the publishing Content Deployment features to improve reliability.
- Infrastructure Update for Windows SharePoint Services 3.0 (KB951695) - x86 http://www.microsoft.com/downloads/details.aspx?FamilyId=256CE3C3-6A42-4953-8E1B-E0BF27FD465B&displaylang=en
- Infrastructure Update for Windows SharePoint Services 3.0 (KB951695) - x64 http://www.microsoft.com/downloads/details.aspx?FamilyId=3A74E566-CB4A-4DB9-851C-E3FBBE5E6D6E&displaylang=en
- Infrastructure Update for Microsoft Office Servers (KB951297) - x86 http://www.microsoft.com/downloads/details.aspx?FamilyId=3811C371-0E83-47C8-976B-0B7F26A3B3C4&displaylang=en
- Infrastructure Update for Microsoft Office Servers (KB951297) - x64 http://www.microsoft.com/downloads/details.aspx?FamilyId=6E4F31AB-AF25-47DF-9BF1-423E248FA6FC&displaylang=en
Ill let you know if I have any issues with installing them....
Fadi
Monday, 14 July 2008
Jobs...
Fadi
Thursday, 10 July 2008
Content Deployment Scheduled time keeps changing
Wednesday, 9 July 2008
Error “Guid should contain 32 digits with 4 dashes” during content deployment
If you are referencing fields via GUID and including { and }, that is what causes this error.
eg field id="ab78ad79-6a48-1182-c3e5-93a3ed3e7831"
not field id="{ab78ad79-6a48-1182-c3e5-93a3ed3e7831}"
After going through all the site and removing the { and }, I did a content deployment and it worked.
Saturday, 28 June 2008
Just because you can, doesn't mean you should!!!!!
So before deciding to develop in SharePoint, please sit back and decide if SharePoint is the appropriate application or is there some other development platform you can use that will make your job easier and speed up development.
Fadi
Saturday, 21 June 2008
SharePoint User Group Presentation
If anyone is interested in finding out some of the problems we faces and how we found work arounds, just contact me.
Fadi
Thursday, 12 June 2008
App Pool Monitor/HDD Monitor/Service Monitor
Tuesday, 10 June 2008
Optimizing SharePoint
http://blogs.technet.com/waynemo/archive/2008/03/19/moss-server-performance-considerations.aspx
It goes through and talks about the recommendations, the reason and the benefits. It's come in very handy for me when it comes to Internet deployment.
Thursday, 5 June 2008
Windows SharePoint Services 3.0 Tools: Visual Studio 2008 Extensions, Version 1.2
Do download, go to http://www.microsoft.com/downloads/details.aspx?FamilyID=7bf65b28-06e2-4e87-9bad-086e32185e68&displaylang=en
Included in this release is:
Visual Studio 2008 Project Templates
- Web Part
- Team Site Definition
- Blank Site Definition
- List Definition
- Empty SharePoint Project
Visual Studio 2008 Item Templates (items that can be added into an existing project)
- Web Part
- Custom Field
- List Definition (with optional Event Receiver)
- Content Type (with optional Event Receiver
- Module
- List Instance
- List Event Handler
- Template
SharePoint Solution Generator
This stand-alone program generates a Site Definition project from an existing SharePoint site. The program enables developers to use the browser and Microsoft Office SharePoint Designer to customize the content of their sites before creating code by using Visual Studio.
Fadi
Thursday, 29 May 2008
SharePoint 2007 Best Practice Analyzer
"The SharePoint 2007 Best Practices Analyzer will collect all the data from your database, registry, etc�and apply a set of comprehensive �best practice� rules against the data set.� A detailed report listing is provided after the completion so you can make your SharePoint 2007 Portal faster and more flexible"
To download it, go to http://www.microsoft.com/downloads/details.aspx?familyid=cb944b27-9d6b-4a1f-b3e1-778efda07df8&displaylang=en
To run it, go to a command prompt and type:
sharepointbpa.exe -cmd analyze
If you have any problems, let me know.
Fadi
Wednesday, 28 May 2008
70-631 Configuring Microsoft Windows SharePoint Services
eg, What does ISA config got to do with SharePoint config? As a SharePoint administrator, I don't think you need to know the exact steps to setting up rules in ISA, or MOM, or SQL. Now, Im not saying that you shouldn't know it, but for a SharePoint exam, it should only ask you questions about SharePoint.
Anyway, if anyone needs a hand with it, just ask me.
Fadi
Monday, 26 May 2008
Optimize Blob Cache by including most used file extensions and increasing the cacheabilty value
Please ensure that the “Office Sharepoint Server Publishing” feature is activated on all Publishing sites. Also, you should update the location to the best performing drive, add in extra paths, and add in the max-age to expire based on your situation. For example:
Current setting: <BlobCache location="C:\blobcache" path="\.(gif|jpg|png|css|js)$ " maxSize="10" enabled="false"/>
Example Setting: <BlobCache location="E:\blobcache" path="\.(gif|jpg|png|css|js|htc)$ " maxSize="10" max-age="86400" enabled="true"/>
If you have any problems, let me know.
Fadi
Thursday, 15 May 2008
Good Tool
Fadi
Tuesday, 13 May 2008
Switching off Versioning for Content Deployment
I don't know if any of you are using content deployment, but for those who are, you would have realised that the destination db is usually the same size as the source (if not bigger). The main reason for this is every time you deploy, it creates a new version of the document. The best way to get round this is to switch off versioning. Here's a little script i've written where you pass in the URL and it will switch off versioning for every list in every site.
class Program
{
static void Main(string[] args)
{
string strurl = args[0];
try
{
using (SPSite spsite = new SPSite(strurl))
{
SPWebCollection web = spsite.AllWebs;
for (int i = 0; i < web.Count; i++)
{
foreach (SPList list in web[i].Lists)
{
if (list.EnableVersioning)
{
list.EnableVersioning = false;
list.Update();
}
}
}
spsite.Dispose();
Console.WriteLine("Application run successfully!");
}
}
catch (Exception e) {
Console.WriteLine(e.Message);
}
}
}
Let me know if you have any problems running it. Sorry about the formating of the code, this blog editor doesn't import in properly from VS2005.
Fadi
Monday, 12 May 2008
Vista Bluescreen
To replicated the problem, simply follow the steps after Vista loads:
- AVG antivirus was began its usual scan.
- MSN loaded up as usual.
- Open up Windows Media Center and selected "Live TV".
- Open up Virtual PC and began to run WS2003 to do some site definition testing.
- I Opened IE7 to go to Gmail.
Could anyone that's able to replicate this problem let me know. We're trying to figure out if it's hardware related or a Vista bug.
Fadi
Tuesday, 6 May 2008
Partial Keyword Search/Wildcard Search Webpart part # 2
Fadi
Monday, 5 May 2008
Partial Keyword Search/Wildcard Search Webpart
Fadi
Friday, 2 May 2008
Excluding and AD Group from a site.
It's very simple. Simply create a AD group and add those users to the group, then through Central Admin, create a policy to deny them access. To do this:
- Go to Central Admin,
- Click Application Management
- Click Policy for Web Application
- Click Add Users
- Select the Web Application you want to deny users access to
- Click next
- In the users box, put the AD group (or if you didn't create the AD group, simply put the Usernames in there)
- Click the Deny All or Deny write check box (or if you want to only give a specific user access, grant all)
- Click Finished
Now the users in that group can't access the site, even though Authenticated Users have permission on the site level.
If you need any help doing this, please ask.
Fadi
Sunday, 20 April 2008
Instructions on restoring a content database to a new farm.
Please note, you might sometimes see that once you attach it, it comes up saying sites as 0. To fix this, open up your restored database and configuration database in SQL Server. Then find the sites table in the restored database and located the ID of the site. Now open up the configuration database and find the SiteMap table. Located the row with the same site ID and then delete it. You should now be able to attach the restored database without issue.
Let me know if you have any problems with this.
Fadi
Wednesday, 9 April 2008
Backup and Restore
I still HIGHLY recommend spliting the content database to more than one db as it's getting very big and SQL will manage it much better. As I said, I will post about how to split it later when I get a chance.
Thursday, 3 April 2008
Web Applications and System Accounts
Anyway, I'm building a new farm for a client. It's a pretty large farm involving 6 servers (not including the DB). One thing I recommended was to have a different system account for each application they install on the farm. The main reason for this is to limit problems like accounts being locked or passwords being changed etc. This way, if a system account becomes locked, only the application using that system will stop functioning (instead of the entire farm). Now there's a bit more maintenance involved, however in the long run it's worth the work.
Fadi
Wednesday, 19 March 2008
SharePoint and Silverlight
Tuesday, 11 March 2008
Changing Alternate Access Mapping
Tuesday, 4 March 2008
Exclude Search from hitting a specific list
To exclude all the items in the document library or list then go to advanced settings of the list and check the option to remove from search results at the bottom (set it to no). This will stop the search from hitting that specific list.
Fadi
Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))
1, Recreate the site collection
2, Webtempcustom.xml file in the C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\1033\XML directory was corrupt and it was causing the problem.
You can try to fix the xml file, but much easier just to re-create the site collection.
Fadi
Tuesday, 26 February 2008
On a different subject, Outlook Crashing
After much looking into it deeper, I managed to find the problem. Some of the customised menu items (I think it was the google search) was causing the problem. After deleting the file outcmd.dat - find it in the hidden folder -c:\Documents and Settings/username/ApplicationData/Microsoft/Outlook - just rename it to outcmd.old. When you restarted Outlook 2007, it will create a new fresh file. Lost my menu customizations, but no big deal - at least it does not crash now.
Monday, 25 February 2008
"0x80040E14" or "HTTP 500" error message when you connect to your Windows SharePoint Services Web site after you install a Windows SharePoint Services
Exception from HRESULT: 0x80040E14. Troubleshoot issues with Windows SharePoint Services.
HTTP 500 - Internal server error
either in search error logs or event error logs, specially after installing a service pack or a hot fix, there's an easy fix.
The main cause of this error is when the content databases in Windows SharePoint Services are not updated correctly during the installation.
Simply go to a command prompt and type:
cd /d %commonprogramfiles%\Microsoft Shared\Web Server Extensions\60\Bin stsadm -o upgrade -forceupgrade
This is a fix for both WSS 2.0 and WSS 3.0. If you're still having the problem, please let me know.
Friday, 22 February 2008
Cascading Drop Down Lists
http://datacogs.com/datablogs/archive/2007/08/26/641.aspx
It shows you how to do it. If you have any problems, let me know.
Fadi
Thursday, 21 February 2008
Performance with large lists...
- http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2545505&SiteID=1 (SQl and workflow issues)
- http://blogs.msdn.com/sharepoint/archive/2007/07/25/scaling-large-lists.aspx (white paper that gives a good comparision of different accessing strategies)
- http://blog.krichie.com/2007/02/14/can-you-really-have-more-than-2000-items-per-folder-in-sharepoint-now/ (performance)
I will play around with it a bit and see if I can find some solid evidence that SharePoint lists should not have more than 2000 items. If anyone has such proof, please send it to me.
Fadi
Wednesday, 20 February 2008
AJAX and Web parts.
NEW:
if you restart the http service as well as IIS it will fix the issue. To restart the http server and IIS, here's the steps:
- net stop http /y
- net start http /y
- IISReset /start
let me know if you experience the same issues I did.
Fadi
Tuesday, 19 February 2008
Exception from HRESULT: 0x80040E2F, what does it mean?
Some of you during a restor (STSADM restore that is) might have come across this erorr:
Exception from HRESULT: 0x80040E2F
This HRESULT simply means, "Violation of PRIMARY KEY constraint ", which generally means one thing, you have entries in the database for this site previously, possibly orphaned, that is preventing the restore to continue.
Sometimes a simple -overwrite after the restore command would work, but sometimes the problem isn't that there was orphaned data to begin with, but rather "New" data related to the site added outside of the restore, that then causes the restore to fail.
The reason in this case, may be due to the fact that while the restore is progressing, the site isn't locked and therefore users accessing the site is causing the duplicate entries.
2 easy ways to fix this:
- Lock the site from Central Admin
- Switch off the site from IIS and remember to start it once the restore is complete.
This should fix your problem. If you are still having this issue, let me know and ill see if i can help.
New Daylight Savings Issue with SharePoint 2007
- Apply the latest cumulative time zone updates to the host Windows Server operating system.
- Apply the latest hotfix or service pack to WSS to rectify known daylight saving issues and obtain the most recent version of TIMEZONE.XML.
- Update TIMEZONE.XML to reflect the changes in daylight saving time.
- Use the SharePoint TZMOVE function to adjust any time-dependent data items that fall between the old and new daylight saving times.
Tuesday, 12 February 2008
Announcing the Final Release of VSeWSS 1.1 (and the upcoming version 1.2)!
What's New in VSeWSS 1.1?
- "WSP View", aka "Solution Package editing"
- No more hidden, non-editable solution content!
- Create new Features
- Reorder Elements between Features
- Conflict validation against existing Features
- Rename existing Features
- Change Feature activation order
Visual Basic support!
New Item Templates:
- "List Instance" project item
- "List Event Handler" project item
- "SharePoint Template" item template, e.g. "layouts" files
Faster F5 speed (The tool no longer performs an IISReset. Now it only recycles the app pool.)
Solution Generator: you can now choose which lists should be included when exporting a site.
Many bug fixes, e.g.
- No more GUIDs in Feature Names
- Support complex project names, e.g. with periods.
- Can deploy assemblies to the bin folder, instead of GAC
Plus many more. Download it and let me know what you think.
Fadi.......
Monday, 11 February 2008
AJAX/ASP.net in a Sharepoint Web Part
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
namespace Sample.SayHello
{
public class SayHelloWebPart : WebPart
{
private Label displayName;
private TextBox inputName;
protected override void CreateChildControls()
{
base.CreateChildControls();
//Fix for the UpdatePanel postback behaviour.
EnsurePanelFix();
LinkButton btnHello= new LinkButton();
LinkButton btnBye = new LinkButton();
UpdatePanel refreshName = new UpdatePanel();
ScriptManager scriptHandler = new ScriptManager();
displayName = new Label();
inputName = new TextBox();
//Set up control properties.
this.displayName.ID = "displayName";
this.displayName.Text = "Hello!";
this.inputName.ID = "inputName";
btnHello.ID = "btnhello";
btnJan.Text = " Hello ";
btnBye.ID = "btnBye";
btnBye.Text = " Goodbye";
scriptHandler.ID = "scriptHandler";
refreshName.ID = "refreshName";
refreshName.UpdateMode = UpdatePanelUpdateMode.Conditional;
refreshName.ChildrenAsTriggers = true;
//Add the EventHandler to the Button.
btnHello.Click += new EventHandler(ClickHelloHandler);
btnBye.Click += new EventHandler(ClickByeHandler);
//Add the user interface (UI) controls to the UpdatePanel.
refreshName.ContentTemplateContainer.Controls.Add(this.inputName);
refreshName.ContentTemplateContainer.Controls.Add(btnHello);
refreshName.ContentTemplateContainer.Controls.Add(btnBye);
refreshName.ContentTemplateContainer.Controls.Add(this.displayName);
//The ScriptManager control must be added first.
this.Controls.Add(scriptHandler);
this.Controls.Add(refreshName);
}
private void ClickHelloHandler(object sender, EventArgs args)
{
this.displayName.Text = "Hello "
+ this.inputName.Text.ToString() + ".";
}
private void ClickByeHandler(object sender, EventArgs args)
{
this.displayName.Text = "Goodbye "
+ this.inputName.Text.ToString() + ".";
}
private void EnsurePanelFix()
{
if (this.Page.Form != null)
{
String fixupScript = @"
_spBodyOnLoadFunctionNames.push(""_initFormActionAjax"");
function _initFormActionAjax()
{
if (_spEscapedFormAction == document.forms[0].action)
{
document.forms[0]._initialAction =
document.forms[0].action;
}
}
var RestoreToOriginalFormActionCore =
RestoreToOriginalFormAction;
RestoreToOriginalFormAction = function()
{
if (_spOriginalFormAction != null)
{
RestoreToOriginalFormActionCore();
document.forms[0]._initialAction =
document.forms[0].action;
}
}";
ScriptManager.RegisterStartupScript(this,
typeof(SayHelloWebPart), "UpdatePanelFixup",
fixupScript, true);
}
}
}
}
===========================================
Sorry, let out the web.config changes. This blog won't let me post up the changes, so email me and i will send it back.
Tuesday, 5 February 2008
The search request was unable to connect to the Search Service
"The search request was unable to connect to the Search Service"
After looking at it, it was a very simple fix. The server wasn't configure to server search queries. A simple ticking of the box in central admin and it fixed the problem. To fix this:
- Go to Central Admin
- Operations
- Services on Server
- Office SharePoint Server Search Service Setting
- Make sure "User this server for serving search queries is ticket
Problem solved.
Another thing that could be causing it is the Account used to search might not have the right access needed or the Search services aren't running. Check that
- Office SharePoint Server Search and
- Windows SharePoint Services Search
Should be both running. If you're still having problems, let me know and I'll try to help you out.
Fadi...
Tuesday, 29 January 2008
ASP.NET (AJAX) in SharePoint 2007
Monday, 21 January 2008
Anyone need help?
On another note, .net 3.0 SP1 is out now. I recommend you download it and install it on your system. It's help me eliminate some of the errors I've been seeing in the event logs.
Friday, 11 January 2008
Creating Event Handlers
http://msdn2.microsoft.com/en-us/library/ms453149.aspx
If you still have difficulty creating an event handler, please let me know.
Monday, 7 January 2008
SharePoint Service Pack 1 crash
Some people have had SharePoint stop working after the installation of Service Pack One. This is mainly due to the upgrade process not completing. You can force an upgrade by running the following command from a command prompt:
psconfig -cmd upgrade -force
This will force the upgrade process to run again and should fix the problem for you.
# Added 11 Jan 2008
You might want to also try this:
Click Start, click Run, type cmd in the Open box, and then click OK.
At the command prompt, type the following lines, and then press ENTER after each line:
cd /d %commonprogramfiles%\Microsoft Shared\Web Server Extensions\60\Bin
stsadm -o upgrade -forceupgrade
Let me know how it goes.....
Fadi