Showing posts with label MOSS. Show all posts
Showing posts with label MOSS. Show all posts

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).

Original post