Friday, March 25, 2011

Microsoft SharePoint Foundation 2010 prerequisites

Before you start to install Microsoft SharePoint Foundation 2010, ensure you installed all the prerequisites. You can check them directly from the setup package.

Otherwise download them from Microsoft download center or other web resources - like this one:

http://forum.it-share.ro/Forum/Sharepoint%202010%20Prerequisite%20Download/Forms/AllItems.aspx?View={F50B49F5-3617-43BB-9FB4-3C4F51B805C7}

Here is as for today only the reporting services add-in missing – you will find it here:

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b3bebf9d-d86d-48cd-94e2-0639a846be80

Enjoy!

Thursday, March 03, 2011

ASP.NET & AJAX: “Object required” Script error while using ModalPopupExtender

Loading an ASP.NET Webpage containing ModalPopupExtender you may encounter following error:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Thu, 3 Mar 2011 07:21:58 UTC


Message: Object required
Line: 106
Char: 13
Code: 0
URI:
http://localhost:49461/ScriptResource.axd?d=dVTmaeP-mJEQBF1x5WPACI57lI3BdxWWqqcjOSvk5IFYlzy3XmoJ3-mETMUX_E93dUXCirqabEt7Y5F8nk9OJF0v1sSq6MFJL4n1ystjZ74KXzsw7JAw7fRseSEZ165rrnTm4dOfgdUE7UZpQUpfBqdlctB5nzYxeqQR46Jg_TR_hyK50&t=ffffffffa4fab0f1

image

Start debugger, and you will learn more:

image

this._popupElement = $get(this._PopupControlID);
if (this._DropShadow) {
this._foregroundElement = document.createElement('div');
this._foregroundElement.id = this.get_id() + '_foregroundElement';
this._popupElement.parentNode.appendChild(this._foregroundElement);
this._foregroundElement.appendChild(this._popupElement);
}
else {
this._foregroundElement = this._popupElement;
}


The cause of this error is most likely the Panel used as TargetControl for ModulPopupExtender. Check if this Panel not set accidentally to



Visible="false"


In this case ASP.NET doesn’t render this panel at all, and the _PopupControlID property of the popup extender on the client side points to non existent object.


Check the Visible attribute of the popup panel, reset it to visible and enjoy!

Wednesday, March 02, 2011

Internet Explorer reports error: “The specified module could not be found”

Browsing (your customized?) ASP.NET application with IE7/8/9 you may encounter following error:

clip_image001

The error message says: “The specified module could not be found”. Most frequently you will encounter this error while displaying the pages containing Accordion AJAX control.

Surprisingly, other browsers like Firefox or Chrome do not cause this error and still display the Web application pages and all the controls correctly.

There are numerous methods to debug this error, we selected the local instance of Visual Studio:

clip_image001[4]

The error occurs exactly in getOpacity() function of a local JScript:

clip_image001[6]

getElementOpacity : function(element) {
if (!element) {
throw Error.argumentNull('element');}
var hasOpacity = false;var opacity;if (element.filters) {
var filters = element.filters;if (filters.length !== 0) {
var alphaFilter = filters['DXImageTransform.Microsoft.Alpha'];if (alphaFilter) {
opacity = alphaFilter.opacity / 100.0;hasOpacity = true;}
}
}

Quick watch on the filters says exactly the error we saw above:

clip_image001[8]

The Interface IHTMLFilterCollection is implemented in oleaut32.dll:

clip_image002

clip_image002[4]

clip_image002[6]

clip_image002[8]

There’s a Microsoft KB article describing a similar problem: http://support.microsoft.com/kb/281679/de.

According this article just try to re-register the oleat32.dll and actxprxy.dll:

clip_image002[10]

clip_image001[10]

clip_image001[12]

On some computers it helped.

On others we were obliged to re-run dxdiag: to detect any DirectX errors on the workstations. Some of them were cured just after installing of most recent DirectX graphics drivers

The rest of boxes displayed the same error: “DCIMAN32.DLL is missing”.

This is a symptom, some of latest software updates or new installations corrupted the system and removed the DCIMAN32.DLL from the %SYSTEM% folder. Short description was presented here: http://answers.microsoft.com/en-us/windows/forum/windows_7-system/dciman32dll/b38a81fa-89f2-4550-8749-89e91a6f0a40

But one more tasks of this library is to provide Internet Explorer with additional graphics related functions, that rely on the interfaces of this library and underlying modules. Fortunately, other browsers do not rely on this operating system dependent functionalities, so they can display the pages correctly.

What we’ve done was the fresh copy of DCIMAN32.DLL form an healthy reference system directly into %SYSTEM% folder of the victim machine – you do not event need to register this library with regsvr32 or reboot the computer.

It just worked after this – try to follow the steps and enjoy!