Wednesday, July 9, 2008

Using Ajax Technology & RadControls with MOSS 2007 Site

In this post we will take about how to Enable Ajax and Use RadControls in your sharepoint site.

*) Enable Ajax in your Sharepoint Site :

Two ways to do it.

First way:

This way will enable Ajax 3.5 in your sharepoint site using VS 2008.
  • Open Vistual Studio 2008.
  • Go to File --> Open --> Web Site
  • Browes to your MOSS 2007 site location, for example :

C:\inetpub\wwwroot\wss\VirtualDirectories\90
supposing your site's port number is 90.

  • Upgrade message will appear asking you for updating your site from .Net Framework 2.0 to .Net Framework 3.5.

  • Click Yes to Upgrade your site to .Net Framework 3.5
  • Open web.config file and you will see the changes that you need for enableing Ajax into your site automatically there .

Second way :

In this way we will follow the normal way to enabel Ajax in any ASP.NET application.(manually).

Note : if you choose to install AJAX 3.5 , you have to replace the assembly version from Version=1.0.61025.0 to Version=3.5.0.0

*) Using RadControls in MOSS 2007 Site.

To use RadControls in MOSS 2007 site , follow the following steps.

  • Open your MOSS 2007 Site with VS 2005 , 2008.

C:\inetpub\wwwroot\wss\VirtualDirectories\90

supposing your site's port number is 90.

  • Add RadControls to your ToolBox using Telerik.Web.UI.dll file.
  • Create new ASPX page inside a folder for example MyPage folder.
  • Test RadControls by Drag and Drop a Script Manager OR RadScriptManager and RadAjaxManager OR RadUpdatePanel to your page and any other RadControls.

Note : Till this moment, if you test your page from the browser, you will get a security exception becos RadControls should run under a Full Trust.

  • deploy Telerik.Web.UI.dll assembly into the GAC and everything will work fine

enjoy :)

Thanks,

Mohammed Barakat Kharboush

401 unauthorized error when accessing "MySite" in MOSS 2007

Problem :

I installed MOSS 2007 and after creating my first web application and the SSP (Shared Service Provider), When I try to access "MySite" I was receiving a credential prompt, although I entered the correct username & password three times I was getting the a 401 unauthorized error.

Solution :

From the Central Admin, I deleted the site collection that host mysite and then I create it again using My Site Host template which can be found under the Enterprise tab in creating new site collection page and everything works fine.

Thanks,
Mohammed Barakat Kharboush