1 Comment

VSTO Tip - Stop the built in Ribbon reflection from slowing your add-in's load time

Behind the scenes, when a VSTO addin or customization loads, the runtime uses reflection to search for all Ribbon controls and customizations and automatically adds them to the appropriate extension regions. This process makes it easy for developers as they don’t have to worry about hooking up the Ribbon Tab that they’ve developed to the Ribbon, or add a new menu item to the Office Menu. However, it can make the add-in’s startup time slower if your Office solution has many references and assemblies.

1 Comment

2 Comments

VSTO - Error when adding items to ComboBox

Ran into this issue when designing a Ribbon (Visual Designer) control that contained a ComboBox. After you add items to the ComboBox using the properties window, everything appears fine until you attempt to Save or Build. You will get the following error:

Code generation for property ‘Items’ failed. Error was: ‘Object reference not set to an instance of an object’

2 Comments

1 Comment

Tip – Test sending emails from your application without an SMTP Server

Frequently the applications that we develop will need to send out an email (e.g. for account registration, order confirmation or newsletter). How does a developer tests that the emails are formatted and mail merged correctly? The options you have are:

  • Local or other SMTP server (not applicable for Windows 7 as there is no local SMTP server option anymore)
  • Local Directory Delivery
  • Smtp4Dev (recommended)

1 Comment

Comment

Configuring IIS 6.0 for Silverlight

By default when you deploy a Silverlight application to an IIS 6.0 server and try to load the page, you will get a JavaScript error:

Error: Unhandled Error in Silverlight Application
Code: 2104   
Category: InitializeError      
Message: Could not download the Silverlight application. Check web server settings

Comment

Comment

Setting up ASP.NET 4.0 with IIS 6.0

You may run into an error with Windows 2003 Server and IIS 6.0 when trying to deploy an ASP.NET 4.0 web application.

<compilation debug=”true” targetFramework=”4.0”>
    <assemblies> 
        :
        :
    </assemblies>
</compilation>

Exception information:
    Exception type: ConfigurationErrorsException
    Exception message: Unrecognized attribute ‘targetFramework’. Note that attribute names are case-sensitive.

At this point there are two options:

  1. Configure IIS 6.0 to run the .NET 4.0 framework (more involved)
  2. Retarget your ASP.NET web application to use the .NET 3.5 Framework (easy)

Comment