Wednesday, May 18, 2011

Microsoft Office 2010 Service Pack 1 is here

As announced on the TechEd 2011, “Service Pack 1 [for Microsoft Office 2011 – mb]is on track for release at the end of June.”.

The most important highlights:

  • Outlook fixes an issue where “Snooze Time” would not reset between appointments.
  • The default behavior for PowerPoint "Use Presenter View" option changed to display the slide show on the secondary monitor.
  • Integrated community content in the Access Application Part Gallery.
  • Better alignment between Project Server and SharePoint Server browser support.
  • Improved backup / restore functionality for SharePoint Server
  • The Word Web Application extends printing support to “Edit Mode.”
  • Project Professional now synchronizes scheduled tasks with SharePoint task lists.
  • Internet Explorer 9 “Native” support for Office Web Applications and SharePoint
  • Office Web Applications Support for Chrome
  • Inserting Charts into Excel Workbooks using Excel Web Application
  • Support for searching PPSX files in Search Server
  • Visio Fixes scaling issues and arrowhead rendering errors with SVG export
  • Proofing Tools improve spelling suggestions in Canadian English, French, Swedish and European Portuguese.
  • Outlook Web Application Attachment Preview (with Exchange Online only)
  • Office client suites using “Add Remove Programs” Control Panel

Lucky me, starting from now I can display the PP presentation on the secondary monitor (usually projector), having my primary display on the notebook running web browser and mail client without risk to expose sensible data to the students.

I was really waiting for this feature…

Monday, May 16, 2011

Federal Communications Commission’s Website unavailable

Days after announcing PLAN (Personal Localized Alerting Network) stays the Federal Communications Commission’s Website unavailable – occasion?

x10sctmp

Friday, April 15, 2011

Internet Explorer 10 Preview: download the testdrive

IE10 is available for download: http://ie.microsoft.com/testdrive/

Here is it:
image

Lot of Demos, Developer Information etc. User Guide is here: http://ie.microsoft.com/testdrive/Info/UserGuide/

Developer Tools are already included and can be launched as usual: F12. As expected, browser compatibility mode 10 has been added:

image

Useful: main menu –> Report Issue –> Run IE Diagnostics. Displays a lot of info about current system and provides 2 protocol options - network and process activity:

image

The results are written in a cab file.

“Microsoft continues HTML5 commitment and leadership with the first platform preview of Internet Explorer 10.” (from here)

IE10 expected to be delivered also for tablets, in perspective probably also for Windows Phone devices.

While there is no support for Windows Vista and older, this preview version does install and run side-by-side with IE9 on the Win7 with all most recent updates and fixes – at least on my machine. The public updates are expected to be available every 12 weeks.

Download and enjoy the exploring of IE10!

Friday, April 08, 2011

Troubleshooting Firefox 4 and delicious bookmarks

If you used delicious bookmarks with FF 3.x and recently updated FF to the version 4.0, you’ll be negatively surprised, the delicious toolbar is not displayed anymore: the delicious bookmarks add-on isn’t yet officially compatible to FF 4.0.

The found solution (here in german: http://wordpress.kendaric.net/2011/03/17/delicious-plugin-im-firefox-4-nutzen/) described the steps to solve the problem:

  1. Start FF and navigate to “about:support”
  2. Click “Open containing folder”
    image
  3. Navigate in the newly opened explorer window to subfolder “extensions\{2fa4ed95-0317-4c6a-a74c-5f3e3912c1f9}”:
    image
  4. Open install.rdf and find the line with “em:maxVersion”
    image
  5. Change the value to “4.0”
    image
  6. Save the file and restart FF.
  7. Enjoy!Smile

Wednesday, April 06, 2011

Display last “build completed” time in Visual Studio 2008/2010

The build process in VS08/10 doesn’t display by default the timestamp of the “build completed”:

image

We use following post-build event setting:

[your code if necessary]
echo build completed
time /t


image


This generates a timestamp in output window displaying the time when the build was completed:


image


So you can see if you are dealing with most recent build.


Enjoy!

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!

Thursday, February 24, 2011

ASP.NET: FindControl() returns null for an existing control while this control is still accessible via member variable

Building an AJAX enabled ASP.NET application we encountered the effect mentioned in the title of this article.

There is a TabContainer with a TabPanel containing a TextBox.

<cc1:TabPanel runat="server" ID="TabPanel1" TabIndex="0" HeaderText="Person">
<
ContentTemplate>
<asp:TextBox ID="TextBoxName" runat="server"></asp:TextBox>
</
ContentTemplate>
</
cc1:TabPanel>


This TextBox is accessible via a member variable, which is automatically created by Visual Studio Designer:


this.TextBoxName.Text = "Enter name here...";


If you try to access the TextBox using FindControl() method of Page class, you will be alerted with following message:



image



The error message is: “Object reference not set to an instance of an object.”.



That means, the FindControl() method cannot find the control by specified ID an returns null.



Slightly surprised (the TextBox is still accessible via member variable) we looked towards Microsoft Knowledge Base and Forums and found following article: http://msdn.microsoft.com/en-us/library/y81z8326%28v=vs.90%29.aspx#Y2166



It says: “When a control is not inside a naming container, you can get a reference to it by using the control's ID. When a control is inside a naming container, you must call a method that searches the naming container for the control's ID. A control might also be inside a naming container that you do not have direct access to.”



To access a control by its ID inside a naming container, you have to extend your Page by instance method FindControlRecursive() described in the referenced article as well:

… 
((TextBox)this.FindControlRecursive(this,"TextBoxName")).Text = "Enter name here..."; 
… 
private Control FindControlRecursive(Control rootControl, string controlID) 
{ 
if (rootControl.ID == controlID) return rootControl; 
    foreach (Control controlToSearch in rootControl.Controls) 
    {


    Control controlToReturn =


                FindControlRecursive(controlToSearch, controlID);


     if (controlToReturn != null) return controlToReturn;


    }


    return null; 
}



It works! Enjoy…

Wednesday, February 23, 2011

HOWTO: find descendant XElement in XDocument by its name recursively using LINQ with namespaces

If you want to use LINQ to locate XML nodes by their names and your XML contains namespace notations, be aware to specify namespaces looking for descendants.

XML Example:

<?xml version="1.0" encoding="utf-8"?>
<
MyDataStruct xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <
DataRoot xmlns="http://mydata.org/2011/1">
    <
Dispatch xmlns="http://mydata.org/2011/1">
      <
Target>
        <
Organisation>
          <
Comment></Comment>
          <
ID></ID>
        </
Organisation>
        <
System>
          <
ID>100</ID>
          <
Comment></Comment>
        </
System>
      </
Target>
      <
Source>
        <
Organisation>
          <
Comment></Comment>
          <
ID></ID>
        </
Organisation>
        <
System>
          <
ID>101</ID>
          <
Comment></Comment>
        </
System>
      </
Source>
    </
Dispatch>
  </
DataRoot>
</
MyDataStruct>

LINQ based recursive search operations:

XDocument xDoc = XDocument.Load(xmlFileName);

XElement xe1 = xDoc.Descendants("{http://mydata.org/2011/1}Target").First(); // locate first “Target” node
   XElement xe1 = xDoc.Descendants("{http://mydata.org/2011/1}Source").First()
                                  .Descendants("{http://mydata.org/2011/1}ID").First(); // locate “ID” subnode of“Source” node

UPDATE: seen also here -

http://stackoverflow.com/questions/566167/query-an-xdocument-for-elements-by-name-at-any-depth

Enjoy!

Friday, February 11, 2011

Internet Explorer 9 RC to download

Internet Explorer 9 Release Candidate can be downloaded at http://www.beautyOfTheWeb.com or at http://windows.microsoft.com/en-US/internet-explorer/downloads/ie.

OS supported are: Windows Vista/Windows 7/Windows Server 2008/Windows Server 2008 R2. There are already many languages available.

Finally the old known display mode for XML is back! (see my article: Internet Explorer 9 Beta does not display XML files in tree view ).

image

The site http://www.beautyOfTheWeb.com offers interesting information about new features and development tools for IE9.

Additionally there are advertised some featured sites tuned/created for IE9. One of my famous sites is BeatKeep: http://www.beatkeep.net/ - online music editor for (hobby) musicians.

Just download IE9 RC, navigate to BeatKeep and enjoy!

Saturday, January 29, 2011

Outlook Hotmail Connector for Office 2010: error on send/receive emails 4102 (80004102A, 8de00002)

Using Microsoft Outlook 2010 (both 32 and 64 bit versions) for Office 2010 you may encounter following troubles:

  • Outlook stops to download emails
  • Outlook stops to send emails
  • Outlook breaks unexpectedly synchronizing email folders

As error code you may see 4102 (different error messages may be shown), 0x80004102A or 0x8de00002.

The long and academically correct way is to analyze the reason and repair it.

The quick and pragmatically easiest way is:

  • Remove Hotmail account from Outlook email accounts
  • Close Outlook
  • Go to your local Outlook data folder ( %USERPROFILE%\AppData\Local\Microsoft\Outlook – for example, c:\users\mike\appdata\local\microsoft\outlook)
  • Delete .ost files (ddo not worry, they will be re-created  later)
  • Start Outlook and add the Hotmail account to email accounts (let the connector automatically detect settings)
  • Switch to Hotmail folders and let Outlook download all the emails

Enjoy!

Wednesday, January 19, 2011

Error: Windows Movie Maker cannot be used with Remote Desktop Connection or Terminal Services

Imagine, you’d like to use Windows Movie maker as known within Windows XP – whatever you reason should be. With Windows 7 and Windows XP mode you get an individual single instance of Windows XP inside of your Windows 7.

Starting Windows (XP) Movie Maker you may get following error message:

 image

Go to the settings of your VM and disable integration features WHILE THE VM IS RUNNING:

image

Re-login if required and enjoy!

Monday, January 03, 2011

‘JSON’ is undefined error after you install DivX Software

After you installed DivX Software (standard free of charge DivX package4 including codec, player, evaluation version of converter etc.) your Internet Explorer may start to display following error message directly after browser start or while surfing:

x10sctmp

The error message:

Message: 'JSON' is undefined
Line: 418
Char: 6
Code: 0
URI: about:blank

Somehow DivX Internet Explorer add-ons caused this message: after we disabled them – everything started to work as before.

image

There are numerous articles in internet describing alternative ways – up to changing code of a web site and so on, but what code do you expect in about:blank ?

Enjoy!

Fail to open Internet Options using IE7 or IE8 on Windows Server 2008 or Vista

As it usually happens on a computer being used by multiple persons one day on of our development machines (Windows Server 2008 Standard EN) started to show very strange behavior:

  • Trying to open Internet Options Dialog there’s just nothing happens – if the IE8 was running with no UAC escalation.
  • Trying to open Internet Options Dialog from an instance of IE8 started with administrator privileges – following error message appears:

image

“This operation has been cancelled due to restrictions in effect on this computer. Please contact your system administrator.”

Well, the box is a member of domain, but nobody from admins played with additional restrictions…

Some internet search showed numerous advices starting from editing computer’s registry (here) over editing Group Policy (here) up to re-install the machine…

Nothing from above could help (except new setup, what was too much overhead).

We tried to uninstall Internet Explorer 8: it was also tricky – IE8 may be missing in the list of installed software (“Programs and Features” applet). Then you should look for it in the list of installed updates (same applet, “View installed updates” – the are listed grouped by product). Even here you may still miss the IE8 entry – in this case the uninstall operation for IE8 is described here: http://support.microsoft.com/kb/957700. Check out additional information about dedicated command line to clean up the system from IE8:

FORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-8*.mum /c "cmd /c echo Uninstalling package @fname && start /w pkgmgr /up:@fname /norestart"

So we uninstalled the IE8, but the IE7 (that replaced the IE8 on our box) still reported an error on each try to open Internet Options. This time the message looks like a DLL is missing: RASDLG.DLL.

Indeed, we detected, that one of numerous last system updates (from Microsoft as well as from 3rd party vendors) somehow deleted RASDLG.DLL: the only copy we still could find was in WinSxS directory – where all side-by-side versions of same named DLLs live.

All the recovery operations (including usage of sfc /scannow, repair from boot disk) won’t restore this DLL and just failed.

So we copied the only found version of this DLL into %WINDIR%/System32 folder and restarted IE7: it worked now!

Then we updated the system with IE8 again, restart the box – and it still works! We still do not know, which step deleted this library and what shadow effects we will encounter using this version (6.0.6001.18000 instead of reported 6.0.6001.18005 as required by SFC).

So, once you see this strange error message by opening Internet Options – look into System32 folder: maybe you are missing this DLL…

Enjoy!

Tuesday, December 21, 2010

SQL Server Reporting Services report export failed: “Internet Explorer cannot download …ed.ReportViewerWebControl.axd from <server>”

Using SSRS (Microsoft © SQL Server Reporting Services) you may encounter following problem: once you select export of the currently displayed report in one of comfort formats -

image

your Internet Explorer pops-up following error:

image

The reason is: you are using SSL/TLS to connect to SSRS and “Do not save encrypted pages to disk” setting of Internet Explorer is activated:

image

Uncheck the box and retry.

Enjoy!

Friday, December 17, 2010

ASP.NET SQL based state management: mirroring state management database

Using Microsoft SQL Server for ASP.NET state management you may like to use SQL database mirroring to increase Web application availability while using NLB Web cluster. Basically, ASP.NET supports three ways for application state management:

  • in-process: unsuitable for NLB based architectures, since state data are managed in-process on one Web frontend node and are unavailable for any other nodes in failure case
  • using ASP.NET own state management service: this proprietary service of ASP.NET requires dedicated installation and management, using TCP-based connection from each Web frontend node
  • using SQL database: this case covers management of the state data in a dedicated SQL database available for any node from ASP.NET NLB cluster (configuration assumed)

Once the state management database is going down, all the session data becomes unavailable and may impact availability of the ASP.NET application. To avoid it, there are different approaches: among them usage of mirrored databases as one of the features came with SQL 2005 and higher.

The important things to know while you configure your ASP.NET application to get state managed using SQL mirrored database:

  1. Configure SQL database mirroring properly, refer to manual here (Microsoft)
  2. Pay attention and configure your connection string ON EACH NLB node properly:
    • add allowCustomSqlDatabase=”true” attribute to the sessionState element parameters, do not ask, just add;
    • add “initial catalog=ASPState” section to the sqlConnectionString – even if you use the standard database named ASPState (as installed by default using aspnet_regsql utility), you need this connection string extension;
    • add “failover partner=<name or IP address of the SQL mirror>”;
    • check “data source=<name or IP address of the master SQL server>” for validity;
  3. Since some of state data is encrypted, you have to take care about the encryption process: all the Web frontend nodes must be able to encrypt/decrypt state management data same way – otherwise the encrypted data becomes unusable. For this goal ensure, that all the nodes have same <machineKey …/> setting in web.config of the application. Refer to Microsoft article, how to configure and generate this setting (quick start – use IIS manager)
    image

If you paid enough attention to the conditions listed above, your application should just work in NLB with mirrored SQL state management database behind. Enjoy!