Update to my SharePoint Name.dll ActiveX Fix

January 28th, 2008 by mossman

Dave Ginn recently tried out my name.dll fix (read more about it in my previous post) and ran into a problem with some users not being able to access the Site Actions menu. Personally, I have deployed the code to several external MOSS sites and not run into the problem. Let me know in the comments if you have used my fix code successfully or not, as I'm trying to determine what sort of setup causes it to occur.

Note: Dave fixed his problem with some code modifications and posted it to his site. I may end up rolling this code back into my source here at this blog.

Microsoft Revamping Virtualization Strategy

January 22nd, 2008 by mossman

According to the news wire, Microsoft is embracing virtualization full force in the coming months. This is great news for us SharePoint developers as we live in VM's. Heres some quotes from the blurb:

Microsoft also said it will expand an alliance with another virtual desktop computing company, Citrix Systems Inc., that will help their respective products work well together.

Redmond-based Microsoft also announced it will cut the cost of licensing Windows for use on virtual machines to $23 from $78 per year for its big business customers.

Microsoft Takes Virtual Step Forward

Favicon's in a SharePoint Master Page

January 18th, 2008 by mossman

My buddy John Ross had asked me if I knew anything about adding Favicons to SharePoint branding, so this post is for him. He pointed me to this post on MindSharp Blogs. This method didn't work for him when he tried it so was wondering how I did one for a project we worked on. I think the method in that post technically should work as IIS will pickup favicons that are in your IIS root, but I think SharePoint may be blocking access in some instances. For me, in traditional html, I have always preferred to call out favicons specifically with a <link> tag in the html <head> this way I ensure that my code, not the server, is handling the file. So now, how do you do this in SharePoint? Here are my steps

Drag a favicon.ico file to the Images directory of your MOSS site with SharePoint designer.

Add the following line to your Master Page at the bottom of the head section right before the </head> tag:

  • <link rel="shortcut icon" href="/images/favicon.ico" />

Check-in, publish, and approve your Master Page so that anonymous folks can see the change.

Refresh the site, and you should see the favicon.

If you have problems seeing the icon, IE could be caching it, try Firefox and it should show eventually in IE.

More info on Favicons

Info on clearing IE's Favicon cache

 

Rumor: Microsoft to Buy Logitech?

January 10th, 2008 by mossman

There's a rumor around the intertubes (and apparently on wall street) that Microsoft is making a bid to become the world leader in the pc hardware accessory market. I'm a big fan of both company's mice and keyboards, so this could be an interesting synergy.

New York Times: Logitech Shares Jump on Microsoft Bid Rumors

NewsGator's FeedDemon and NetNewsWire RSS Readers are now FREE

January 9th, 2008 by mossman

Mossman has always been a huge fan of NewsGator's FeedDemon, now even more so, since it has had a price drop to $0.00. Many of you may already be using Outlook for your desktop RSS reading, but I urge you to try FeedDemon for some more advanced features.

SharePoint Designer SP1 Released

December 11th, 2007 by mossman

I don't normally like to repost stuff to death, but something that could be missed in the flurry of Office service pack 1's that have been released today is the SPD SP1 release. I just installed it in my local SharePoint Designer instance and so far I haven't had any problems (though I admittedly haven't put it through the paces yet). It seems slightly more responsive though that may be just a placebo affect. If you have any remarkable positive or negative upgrade outcomes, post a reply here.

Link to the SharePoint Designer SP1 Download for the lazy

Lost Another One to Ditec (or should I say Apple)

November 11th, 2007 by mossman

The Mossman was swayed by the Mac store inside the Best Buy and is now the owner of a Macbook Pro. Don't worry too much though as I've done the Boot Camp thing and installed Vista! It works really great and runs Vista surprisingly well. You can see from the photo that I got a Vista Experience rating of 4.8 and this is the low end Macbook Pro:

I'll post here if I have any problems living my Microsoft existence in a Mac world.

SharePoint 2007 Predicted by "Joel on Software" Back in 2004?

November 7th, 2007 by mossman

I was wikipedia'ing the word "Portal" today at work and stumbled across an interesting article from Joel on Software (if you have never read his blog, you might as well read up… because it full of pure gold) on how Microsoft has "Lost the API War"… written in 2004. Its interesting to see his points in this article and how they parallel with what Microsoft has done with SharePoint 2007. From what I can tell, he was "dead on" and Microsoft (despite being accused of often times being slow to market) was able to notice the same trends and create a viable contender for continuing its domination over the API through SharePoint 2007 and the web. If you don't feel like reading the whole post I'll sum it up with a quote:

"None of this bodes well for Microsoft and the profits it enjoyed thanks to its API power. The new API is HTML, and the new winners in the application development marketplace will be the people who can make HTML sing." – Joel on Software (June 2004)

Fast forward three years and it looks like Microsoft may have achieved that. Sure its not quite perfect still, but I think SharePoint does a better job of fitting what Joel was talking about then most other options available today, especially for the enterprise marketplace.

Using Firebug to Manage CSS Effectively

October 4th, 2007 by mossman

I often talk about the benefits of using Firebug for Firefox in the MSDN Design and Customization Forums. Rather than try to type out a long winded article on why it rules, I found a video that should help to convince non believers that it is truly superior to the IE Developers Toolbar:

Firebug 1.0 Beta Screencast by Jesse Newland

 Takes a little bit of time to download the video, but its worth it.

Fixing the name.dll ActiveX Problem the Mossman Way

September 13th, 2007 by mossman

Have you seen this message on public facing SharePoint sites:

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…

For an example of one (at least until they fix it), check out:

http://www.mseventseurope.com/teched/07/itforum/content/Pages/Default.aspx 

There are quite a few nice examples of internet facing SharePoint 2007 sites on the interwebs these days, however many of them seem to be plagued by this minor annoyance that seems to have slipped through the Microsoft cracks. The problem is compounded by the fact that most developers won't even notice the issue until their portal is available to internet users. This is due to the fact that the problem is seen only in Internet Explorer 7 and only when you are visiting a WSS v3 website that is NOT in your trusted site list for IE. You will not see the message most of the time in your local environment because, by default IE knows you are visiting an intranet site and auto-magically puts the site in your trusted list… then as soon as you visit the site with an external domain name, boom, your see the warning pop up.

Apparently, SharePoint is trying to access "Presence" information that is available in Office, and for some reason they decided to name this ActiveX "name.dll", which really couldn't sound more like a trojan horse. Asking for more information on the ActiveX control doesn't help either. Most end users get immediately turned off to your website, and generally its just not a very professional way to present your portal.

So, I'm sure your thinking "Mossman, how do I correct this problem?" Microsoft has a knowledgebase article on the topic here: http://support.microsoft.com/kb/931509. But, at least for me, this never works, since the "InitNoPresence.js" seems to always load after my custom .js in a SharePoint publishing site. What I do instead is include my own custom javascript file in the PlaceHolderAdditionalPageHead of my master page which overrides the offending out of the box javascript line. This ensure2 that our javascript is always loaded last in the chain (which is key). I have no idea if this is an approved way of tackling the problem, but it effectively does the same thing described in the kb article, only it actually works. So, without further fanfare, I will show you my code. You are free to use it in your sites but please leave in my comments.

In your master page, place a reference to my custom javascript file in your <head> section after a PlaceHolderAdditionalPageHead, like this:

<head runat="server">
    <asp:ContentPlaceHolder id="PlaceHolderAdditionalPageHead" runat="server"/>
    <script type="text/javascript" src="/_catalogs/masterpage/custom_activex_override.js"></script>
</head>

Now upload the following javascript file to the "_catalogs/masterpage" directory of your SharePoint site. Also, you might as well Publish and Approve the uploaded file as well (since anonymous users won't be able to see it otherwise).

custom_activex_override.js

Basically, this javascript file overrides the out of the box "ProcessDefaultOnLoad" and comments out the call to "ProcessImn()" which causes the ActiveX to be called.

Please, feel free to try it out and let me know if you experience any problems or if you have any suggestions on better ways to tackle this problem.