Saturday, January 16, 2010
Create a Sharepoint 2010 Virtual Machine in 32 bits host machine
I just found this article which points to this issue: “HOW TO: Create a SharePoint 2010 VM in 32 bits host machine”.
The solution is to build your virtual machine using VirtualBox; a virtualization software package developed by Sun Microsystems, and you will find all details to install VirtualBox, and how to build your first virtual machine in above article.
One plus Important thing you need to do is to Enable virtualization (VT) in BIOS for 64bit support, this option is disabled by default in BIOS specially for hardware shipped by DELL.
The location of this option in BIOS differs from hardware vendor to another, so you need to search your BIOS for the location of this option; for HP you need to navigate in BIOS through: Security > OS Security > Intel Virtualization Technology.
Wednesday, January 13, 2010
SharePoint Programming in 64bit environment
This is my first time to develop on a 64bit machine, so i started visual studio, wrote my framework, and created a unit test.
The test failed because of the following exception, while creating a new SPSite
The Web application at http://HostName:Port/ could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.
first thing came to my mind is that i am using a wrong URL, but it was the same URL i am using in the browser, so i created a new console application with the failed line of code
var site = new SPSite(“http://HostName:Port/”);
and guess what? it worked.
After some investigation i knew that MS UnitTest is not compatible with 64bit Process, so the test context runs as 32bit process which conflict with the SPSite object as it a COM unmanaged object.
Till now i have no solution for that but as i read NUnit is a great tool for testing with 64bit platform, so i will try it and get back with the results and solutions.
Related links:
Tuesday, January 12, 2010
SharePoint Intranet Portal Samples
Last week i was googling for intranet portal samples because we was working with a client who is creating his portal for the first time, so as you know an image could save a hundred words. So after a couple of attempts i found the following links and they are very helpful when you want to describe an enterprise portal either to a client, technical guy or even a graphic designer, leaving you with the links
[update: 30-01-2012] Thanks to ahattab for the new links.
The Office SharePoint Server Standard Web application features feature must be activated" on Windows Server 2008 R2
After creating my development machine and added different sites using WSS templates (such as Team Site), i had the above error when i tried to add a Collaboration Portal site. The solution is:
1- Deactivate the feature
2- Create a publishing site collection (The error still there)
3- Activate the feature
4-Create a publishing site collection again (Voila , its working).
Tuesday, January 5, 2010
Word is unable to save documents to SharePoint
Lets say you opened a document library from you browser, clicking new word document, and trying to save it to the library.
but MS Word is not showing the document library
and even if you entered the URL in the address bar its not working
This is because the WebClient service is turned off, so your PC cannot communicate to SharePoint using DAVWWW -also it breaks the explorer view-.
Turn the service on (if its disabled, change the start type to automatic) , close MS Word and try again, everything will work properly.
Monday, January 4, 2010
MySite, and MyLinks are not showing
If you are accessing you SharePoint site using a different name than the host name (such as FQN or IP address), it will hide Mysite, and MyLinks from the page.
To solve it either access your site with the assigned host name or change the host name to the desired name (if its left blank, its by default the machine name).
Error While Search (Unknown Error / Object reference not set to an instance of an object)
Yesterday i started a new SharePoint project; so after setting up my MOSS farm with proper configuration for SSP and search settings i tried to search a word (opening IE from the server itself) and it worked perfectly :).
Today i opened my machine, navigated to the portal using the FQN (Fully qualified name hostName.domainName.com), tried to search and the following error popped up : Unknown error. also i modified the web.config to call the Stacktrace and turn off customError, then error changed to:
Object reference not set to an instance of an object. at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
So the reason for the error was simply because i am using the FQN (which is not the hostname as understandable by MOSS), so i added the machine name to the hosts file (because the DNS only resolves FQN) and it worked.