Wednesday 8 December 2010

Disable "The Web site wants to run the following add-on: 'Name ActiveX Control'" Message

Consider the following scenario. You use Windows Internet Explorer 7 to browse to a Microsoft Windows SharePoint Services 3.0 site or to a Microsoft Office SharePoint Server 2007 site. The SharePoint site is located in the Internet zone. Additionally, the SharePoint site has online presence enabled. When you browse to the SharePoint site, you receive the following message in the Information bar in Internet Explorer 7:
The Web site wants to run the following add-on: 'Name ActiveX Control' from 'Microsoft Corporation'. If you trust the Web site and the add-on and want to allow it to run, click here...

This issue occurs if the Name ActiveX control (Name.dll) is not added to the list of preapproved controls in Internet Explorer 7. The Name ActiveX control is included in the 2007 Microsoft Office system.

Configure the master page of the SharePoint site on the front-end Web server
loadTOCNode(3, 'workaround');

If the SharePoint site does not require online presence for anonymous users, configure the master page of the SharePoint site to use a new InitNoPresence.js file. Note: Disabling this control can also disable the Multiple Document Upload control for the affected audience which is why it is recommended to target the change below to anonymous users only. To do this, follow these steps:
Create the InitNoPresence.js file. To do this, follow these steps:
Start Notepad and create a InitNoPresence.js file on the front-end Web server in the same file folder as Init.js.Note The Init.js file is located in the Drive:\Program Files\Common Files\Microsoft Shared\Web server extensions\12\Template\Layouts\1033 folder.
In the InitNoPresence.js file, add the following lines of code.
function ProcessImn()
{
if (typeof(ctx)=="undefined") return;
if (ctx.CurrentUserId == -1) return;
if (EnsureIMNControl() && IMNControlObj.PresenceEnabled)
{
imnElems=document.getElementsByName("imnmark");
imnElemsCount=imnElems.length;
ProcessImnMarkers();
}
}
Save the InitNoPresence.js file.
Configure the master page of the SharePoint site to use the InitNoPresence.js file. To do this, follow these steps:
Start Microsoft Office SharePoint Designer 2007. Then, open the a copy of the master page for the SharePoint site.
In the copy of the master page, locate the following line of code.

Below the line that you located in the step 2b, add the following line of code.

Save the new copy of the master page and set it as the new default master page.Note Microsoft does not support making changes directly in the Init.js file. By adding a new file to override the function the customization will not be removed by an update. By using a new master page the customization can be easily removed for testing by restoring the original default.master page.

To fix this issue follow the instruction from the link below:

http://support.microsoft.com/kb/931509

No comments:

Post a Comment