Thursday
28Jan2010

SharePoint 2010 – renaming features and web parts in VS.NET 2010 SharePoint Solutions

 

  1. In solution, select the Feature

    clip_image002

    Change the “Folder Name” property to new name. Press Enter – VS.NET will try to help you rename everything correctly.  The reason this field is called “Folder Name” is because SharePoint packaged solutions are deployed to the 14 HIVE, and are organized by folders there.
    Double click on the feature to bring up the Feature designer UI, you still need to change the Title and Description

    clip_image004
  2. To rename the web part

    clip_image006

    Change the Folder Name
    You still need to change the actual UserControl file name

    clip_image008

    As well as the user control filename, class name… standard .NET stuff.  Some tools such as VS.NET’s rename tool, or if you use Resharper, can help you with class renaming.
  3. WARNING: generally renaming packages is very bad after you have deployed to production. This should not be done lightly. 
Tuesday
12Jan2010

SharePoint 2010 and Silverlight

Was working on a presentation on SharePoint 2010 and Silverlight.

Finally, I get to marry my two favourite technologies in one awesome demo.

 

There’s not a lot of people blogging about this yet, but what we were digging up was very delightful.

In bullet point form – because this is a brain dump blog post, and if you want to know how everything ties together you’ll have to catch up to one of the user groups where I present this stuff (or Adam Cogan… he gets around a lot more than me):

Technologies that made it possible:

  • SharePoint web services
  • SharePoint REST / OData services NEW
    • This is actually great news for the AJAX / JavaScript crowd.  Technically, you can write JQuery solutions that will query SharePoint for you.
  • Microsoft.SharePoint.Client.dll(s), and the corresponding Microsoft.SharePoint.Client.Silverlight.dll(s) – which are awesome wrappers
  • CAML is nearly gone, but still lingers on for huge data processing.
  • LINQ to SharePoint is the new crafting knife
  • Silverlight XAP files can be uploaded anywhere
  • Silverlight web part can load XAP files and run them
    • So a user that can upload a short movie to SharePoint, then configure a Silverlight movie player to play that movie… already has the permissions required to run custom XAP applications.
  • Which, if you stop and think about it, is a “different” deployment model!
Thursday
24Dec2009

ASP.NET "5.7.1 Unable to relay for email" when SmtpClient.UseDefaultCredentials = true

 

Was looking at a problem with Andy regarding using SmtpClient.UserDefaultCredentials = true, and sending emails within an authenticated WCF service.

We can send emails within the domain without any issues, but when sending emails outside of the domain the mail server rejects us with the 5.7.1 Unable to relay for email@external.com

The easier fix would probably be to UseDefaultCredentials = false, and specify a NetworkCredential(username,password).  But we were stubborn and didn’t want to have to enter a email address somewhere in the web.config.

While investigating – we realized that if we specify the mail server by IP address instead of DNS name – then the email will be delivered.

 

Our suspicions are that the Exchange mail server has different rule sets to decide if it trusts the source to be somewhere local.  If the IP address specified is a local network IP – it seems to relax the relay rules somewhat.

Monday
21Dec2009

SharePoint 2010 Speed, and Boot to VHD

Been pouring through all the new goodies in SharePoint 2010 like a kid opening his first Christmas present -
So much fun, so little time.

A few people have made the comment that SharePoint 2010 Public Beta runs pretty slowly for demo’s – here’re a few suggestions I’ve noticed that helps for me:

  1. You need more than 2GB of RAM for SharePoint on your demo machine. 
  2. Ideally, a generous amount of hard drive space

My setup has worked pretty well for me:

  1. Host is Win7 x64
  2. Created a VHD (virtual hard drive) with about 50GB allocated space. 
  3. Installed Windows 2008 R2, SQL Server 2008, SharePoint 2010 public beta, Office Web Apps, and Office 2010 client apps.
  4. Configure the VHD as a bootable device (new in Win7)
  5. On start of laptop, I get to choose to boot into Windows 2008 / SharePoint 2010 directly, which allocates all the laptop’s resources to the VM
  6. Oh – grab the ATI display drivers for DELL (see my previous post) to make sure Windows 2008 R2 can display via an external projector – ahead of the presentation.  (I nearly had a panic attack but got it all sorted before I had to go on stage).

The best part is when we move on from the public beta, I’ll just copy a new VHD over the same directory under Win7, then it’s all set.

Monday
14Dec2009

ATI x64 driver fail - Catalyst Install Manager has stopped working

This could possibly be the last ATI product that I'd purchase.  For almost as long as I could remember I can not get the ATI drivers to install.

  • Download from ATI website
  • Download beta from ATI website
  • Download from Dell website

I've always had to rely on Windows Update - but then it doesn't come with the Catalyst utilities.

 

Today I was forced to upgrade the drivers...

  • Running Boot to VHD on the machine with Windows Server 2008 R2 x64 installed
  • Default driver that Windows Update picked up is the Generic one
  • I need to be able to use an external monitor for presentation tomorrow - Yikes!

Fortunately, I found my solution here:

http://insomniacgeek.com/blog/catalyst-install-manager-has-stopped-working/

To cut a long story short - this worked for me:

bin64\ATISetup.EXE –install –output SCREEN

 

Thursday
30Jul2009

The iPhone design flaw

Hi Apple,

When I first got my iPhone it truly was a thing of joy. New apps were being created and continued to blew away my expectations of what a phone can do.

Not anymore, I have not found anything worth downloading or buying in the last month. I've browsing through the paid apps section now and filtering anything above $10. Still nothing that I'd consider truly must-have.

I will not buy anything above $10 for a platform that I’m considering to abandon in the next cycle.

I gave up a bit.
I cleaned out my iPhone apps list, call it a defrag, if you will - it is now down to only 20. At its height I had well over 7-8 pages full of apps.

 

I don't know what it is that you are doing - but perhaps it's also what you are NOT doing.

Whatever it is, I call it a design flaw.

 

Please bring back the developers and the great apps.  Otherwise you will lose your users - me.  There are plenty of other mobile vendors that are eyeing your market and they will happily take your developers from you.

I remember the days when I was using a Mac and we had no software.  I don’t know if you had forgotten those dark days.

Tuesday
14Jul2009

SharePoint 2010 – sneak peek

Microsoft has begin to move and has blasted off with the SharePoint 2010 sneak peek website – I can’t help but think the timing was strategic – right after the NZ SharePoint conference, before the US SharePoint conference coming up in October.  If this had go up one week before the NZ SharePoint conference – there would have been many speakers ambushed with questions they might not know how to answer.

http://sharepoint.microsoft.com/2010/Sneak_Peek/

Anyway, the areas I’ll be paying extreme close attention to are:

Overview:

  • Love the ribbon!
  • Love the cross browser support!
  • Love the AJAX – though the video looks like there were still full screen refreshes
  • Curious about Visio services
  • Curious about Business Connectivity Services
  • Like the SharePoint designer – wish they allow more admin control to turn off features so that it can be more accepted in the enterprise.

Admin:

  • Like new central admin
  • Love SharePoint best practice analyzer!
  • Love usage reporting and logging!
  • Love the unattached content database recovery!

Developer:

  • Curious about VS.NET 2010 integration – I hope it’s heaps better than VSeWSS 1.3
  • Love LINQ for SharePoint!
  • Curious about Developer Dashboard
  • Love client object model!

Anyway, lots of love for now – no hate yet.

Friday
10Jul2009

Google hates Bing and is evil? Surely not!

So Microsoft has an outage in their data centre for Bing travel.  I’ve heard great amazing stories over the grapevine about this one, but anyway…
Bad Microsoft – slap on the wrist – don’t put your eggs in the same basket!

Google caches it (on 4 July) – and displays it in their search for bing – long after the Bing servers are up and operational again (it is now 10 July).

clip_image002clip_image002[4]

 

http://www.google.com.au/search?hl=en&q=bing&btnG=Google+Search&meta=&aq=f&oq=
(Google result for Bing – currently)

http://www.bing.com/travel/
(Bing travel is running fine now!  And has been – for the last 5 days!)

Makes you wonder if GMail (their own internal product), or CNN (a major external website), or even Microsoft.com (MS itself!) had an error whether Google search would continue to show the cached error page for 6 days.

 

I guess bing.com (their competitor) gets special cache rules.

Tuesday
16Jun2009

SharePoint – Blank IIS manager, events 6398, 6482, 7076

Working on a client’s SharePoint site – I wanted to pop into the IIS configuration screen:

image

Now when your IIS manager shows you a blank page – you know something’s up.
Event log shows a horrible series of errors repeating event IDs:
6398: The Execute method of job definition Microsoft.Office.Server.Administration.ApplicationServerAdministrationServiceJob (ID <guid>) threw an exception. More information is included below.
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

7076: An exception occurred while executing the Application Server Administration job.
Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

6482: Application Server Administration job failed for service instance Microsoft.Office.Excel.Server.ExcelServerSharedWebServiceInstance (7d2d13a5-e9ca-4b92-972c-8e3bdfcaced4).
Reason: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Fortunately, many people have blogged about this issue – if you bing it you’ll see many references pointing to the same MS KB article: http://support.microsoft.com/default.aspx?scid=kb;EN-US;946517

This is scheduled to be included in the next service pack – affects both Windows Server 2003 sp2 and 2008 sp2.  In our case we needed to request the hotfix and install it right away.

Tuesday
09Jun2009

Facebook – tattoo ad and privacy?

So I was looking at my wife Lina using her Facebook and saw this ad on the right:

image

I exclaimed oh wow – Facebook told the advertiser what her husband’s name is.  Look it says John.  I started to wonder what are the privacy implications of that, and whether there are privacy controls for this…

So I flipped back to my Facebook account, and started refreshing the page to look for the same ad.

image

She exclaimed oh wow – who is Jen?

I am in so much trouble because of Facebook :-(

So it was all a false alarm – it looks like the ad only knows your gender, and displays John or Jen accordingly.