Asked by:
Followed the SDK but my add-in doesn't work

Question
-
I built the SDKSample add-in and followed the SDK to the letter with the following exceptions:
1. I built the SDKSample project in VB instead of C#. The build went through with no warnings or errors.
2. I installed Votive 3.0 and got several warnings about deprecated attributes that I removed as instructed.
My problem is this: the MSI successfully installs the add-in but it doesn't appear in the console as expected and leaves no error traces that I can find in the event viewer or anywhere else.
So where does one begin to troubleshoot this sort of thing?
Also, has anyone noticed the number of errors in this first part of the SDK documentation? Seems like this document wasn't ready for primetime.
Saturday, December 29, 2007 2:51 AM
All replies
-
The first place to look for any kind of errors is in the HomeServerConsole logs which are stored in the following directory on your Home Server:
C:\Documents and Settings\All Users\Application Data\Microsoft\Windows Home Server\logs\
Biggest issue I’ve seen with an add-in not loading in the Server Console is something being goofed up with the assembly name or class name... remember, your assembly must be named:
HomeServerConsoleTab.YourTabName.dll
When your class(es) are named:
Microsoft.HomeServer.HomeServerConsoleTab.YourTabName.HomeServerSettingsExtender
and
Microsoft.HomeServer.HomeServerConsoleTab.YourTabName.HomeServerTabExtenderIf those are both good... I’d suggest giving a try to the test loading tool I created for more easily troubleshooting loading issues outside of the Home Server Console.
Saturday, December 29, 2007 3:22 AMModerator -
Thanks for the reply. I looked in those files and I don't see anything unusual that is related to the add-in I wrote. I do see a liberal sprinkling of lines that look like this but they're throughout the file and don't mean much to me at first glance:
MSI (s) (F0:7C) [21:40:46:689]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1302
What do these mean? There are a bunch of these in the additions.log file and they all have a different error code at the end of the SQL statement.
Saturday, December 29, 2007 9:08 AM -
I would suggest you to build this add-in in c# and see if that works. It took me couple of tries to get it going correctly. Mostly I had either missed some code or added extra code.
Wednesday, January 2, 2008 10:51 PM -
Another option (which I forgot to mention earlier) is to use a WHS Project Template to build the project for you.
Friday, January 4, 2008 2:44 AMModerator