<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Mel Lota's Weblog</title><subtitle type="html">Silverlight, SharePoint and other related technologies</subtitle><id>http://weblogs.asp.net/mellota/atom.aspx</id><link rel="alternate" type="text/html" href="http://weblogs.asp.net/mellota/default.aspx" /><link rel="self" type="application/atom+xml" href="http://weblogs.asp.net/mellota/atom.aspx" /><generator uri="http://communityserver.org" version="3.0.20510.895">Community Server</generator><updated>2007-09-30T16:23:00Z</updated><entry><title>Adding Silverlight Toolkit Controls to the Visual Studio Toolbox</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/mellota/archive/2008/10/30/adding-silverlight-toolkit-controls-to-the-visual-studio-toolbox.aspx" /><id>http://weblogs.asp.net/mellota/archive/2008/10/30/adding-silverlight-toolkit-controls-to-the-visual-studio-toolbox.aspx</id><published>2008-10-30T08:38:00Z</published><updated>2008-10-30T08:38:00Z</updated><content type="html">&lt;p mce_keep="true"&gt;Some great news, the latest version of the Silverlight Toolkit (November 08)&amp;nbsp;has been made available to download&amp;nbsp;on &lt;a title="Silverlight Toolkit" href="http://www.codeplex.com/Silverlight" mce_href="http://www.codeplex.com/Silverlight"&gt;CodePlex&lt;/a&gt;. This release includes a host of new controls for Silverlight including &lt;strong&gt;TreeView&lt;/strong&gt;, &lt;strong&gt;AutoCompleteBox&lt;/strong&gt;, &lt;strong&gt;DockPanel &lt;/strong&gt;and one I've been eagerly awaiting - &lt;strong&gt;WrapPanel&lt;/strong&gt;.&lt;/p&gt;
&lt;p mce_keep="true"&gt;Once you've&amp;nbsp;downloaded the toolkit you'll probably want to add the controls to the Visual Studio toolbox. This can be achieved by the following steps:&lt;br&gt;(Note: I'm doing this on an installation of Visual Studio 2008 SP1 with the latest &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=c22d6a7b-546f-4407-8ef6-d60c8ee221ed&amp;amp;displaylang=en" mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyId=c22d6a7b-546f-4407-8ef6-d60c8ee221ed&amp;amp;displaylang=en"&gt;Silverlight Tools RTW&lt;/a&gt; installed)&lt;/p&gt;
&lt;p mce_keep="true"&gt;- Extract the Toolkit zip file&amp;nbsp;to a location on your computer&lt;/p&gt;
&lt;p mce_keep="true"&gt;- Open up a Silverlight project in Visual Studio 2008 SP1&lt;/p&gt;
&lt;p mce_keep="true"&gt;- Open up a XAML file&amp;nbsp;and ensure that the Visual Studio toolbox is visible (if not it can be turned on via &lt;strong&gt;View &amp;gt; Toolbox&lt;/strong&gt; or &lt;strong&gt;Ctrl+Alt+X&lt;/strong&gt;)&lt;/p&gt;
&lt;p mce_keep="true"&gt;- Right click on one of the toolbox headings and select &lt;strong&gt;Choose Items... &lt;/strong&gt;(Note: The dialog took quite a while to load up on my machine)&lt;/p&gt;
&lt;p mce_keep="true"&gt;&amp;nbsp;&lt;a href="http://weblogs.asp.net/blogs/mellota/addcontrols.jpg"&gt;&lt;img border="0" src="http://weblogs.asp.net/blogs/mellota/addcontrols.jpg"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p mce_keep="true"&gt;- From the &lt;strong&gt;Choose Toolbox Items&lt;/strong&gt; dialog, click on the &lt;strong&gt;Silverlight Components&lt;/strong&gt; tab and then click &lt;strong&gt;Browse&lt;/strong&gt;. Navigate to the folder where you extracted the Silverlight Toolkit and open the &lt;strong&gt;Binaries&lt;/strong&gt; folder and select one of the assemblies and click &lt;strong&gt;Open&lt;/strong&gt;. In this example I selected &lt;strong&gt;Microsoft.Windows.Controls.dll&lt;/strong&gt;. Then on the Choose Toolbox Items dialog you should see that new controls have been added to the list and preselected (AutoCompleteBox, DockPanel etc.)&lt;/p&gt;
&lt;p mce_keep="true"&gt;&lt;a href="http://weblogs.asp.net/blogs/mellota/selecttoolkits.jpg"&gt;&lt;img border="0" src="http://weblogs.asp.net/blogs/mellota/selecttoolkits.jpg"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p mce_keep="true"&gt;- Click &lt;strong&gt;OK&lt;/strong&gt; and you should then see the new controls available in the toolbox.&lt;/p&gt;
&lt;p mce_keep="true"&gt;&lt;a href="http://weblogs.asp.net/blogs/mellota/finished.jpg"&gt;&lt;img border="0" src="http://weblogs.asp.net/blogs/mellota/finished.jpg"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p mce_keep="true"&gt;- Repeat these steps for the other assemblies included with the Toolkit and you're good to go :)&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6711639" width="1" height="1"&gt;</content><author><name>mlota</name><uri>http://weblogs.asp.net/members/mlota.aspx</uri></author><category term="Visual Studio" scheme="http://weblogs.asp.net/mellota/archive/tags/Visual+Studio/default.aspx" /><category term="Silverlight" scheme="http://weblogs.asp.net/mellota/archive/tags/Silverlight/default.aspx" /></entry><entry><title>WebPart Tip: How to quickly view the public key for an assembly in the output window</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/mellota/archive/2007/10/25/webpart-tip-how-to-quickly-view-the-public-key-for-an-assembly-in-the-output-window.aspx" /><id>http://weblogs.asp.net/mellota/archive/2007/10/25/webpart-tip-how-to-quickly-view-the-public-key-for-an-assembly-in-the-output-window.aspx</id><published>2007-10-25T09:43:00Z</published><updated>2007-10-25T09:43:00Z</updated><content type="html">&lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/mellota/GetPublicKey.jpg" mce_href="http://weblogs.asp.net/blogs/mellota/GetPublicKey.jpg"&gt;&lt;img border="0" src="http://weblogs.asp.net/blogs/mellota/GetPublicKey.jpg" mce_src="http://weblogs.asp.net/blogs/mellota/GetPublicKey.jpg"&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I saw this handy little helper function being used on a MOSS
screencast by Todd Bleeker and decided to figure out how he did it :).
Basically it allows you to view the public key token of an assembly
from within Visual Studio's output window, which saves time when you
need to grab the key for use with the safe control entries in the
web.config for example.&lt;/p&gt;&lt;p&gt;First step, fire up your copy of Visual Studio 2005 and open up a webpart class library project. Then from the &lt;b&gt;Tools&lt;/b&gt; menu select &lt;b&gt;External Tools&lt;/b&gt;. This will bring up the following dialog:&lt;/p&gt;&lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/mellota/ExternalTools.gif"&gt;&lt;img border="0" src="http://weblogs.asp.net/blogs/mellota/ExternalTools.gif"&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;From the options, click &lt;b&gt;Add&lt;/b&gt; and then give your utility a title. Now all we're doing here is essentially grabbing the output from the sn.exe command, so you will need to provide the path to your local sn.exe file. Mine was located in the following folder:&lt;/p&gt;&lt;p&gt;&lt;b&gt;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\sn.exe&lt;/b&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now, just like if we were running the strong name utility from the command line, we're going to need to pass in the correct arguments. Firstly we'll need to pass the &lt;b&gt;-Tp&lt;/b&gt; argument, as we want to get the token for the public key, together with the public key itself. Then we need to specify the target assembly, which can be done by clicking on the button to the right of the Arguments field and selecting '&lt;b&gt;Target Path&lt;/b&gt;'. This basically gets the full qualified path to item which is being built, in our case a webpart assembly. Lastly just tick the 'Use Output Window' checkbox and then click ok and you're good to go :)&lt;/p&gt;&lt;p&gt;The new utility you've just created should now show up in the &lt;b&gt;Tools&lt;/b&gt; menu, you can go ahead and click it and you should now see the output window popup with the details of the public key. This is a really nice feature of Visual Studio and I'm sure this can be tailored for many other uses.&lt;br&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4739506" width="1" height="1"&gt;</content><author><name>mlota</name><uri>http://weblogs.asp.net/members/mlota.aspx</uri></author><category term="MOSS" scheme="http://weblogs.asp.net/mellota/archive/tags/MOSS/default.aspx" /><category term="Sharepoint 2007" scheme="http://weblogs.asp.net/mellota/archive/tags/Sharepoint+2007/default.aspx" /><category term="WebParts" scheme="http://weblogs.asp.net/mellota/archive/tags/WebParts/default.aspx" /><category term="Visual Studio" scheme="http://weblogs.asp.net/mellota/archive/tags/Visual+Studio/default.aspx" /></entry><entry><title>Sharepoint 2007 task notification alert emails not working</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/mellota/archive/2007/10/11/sharepoint-2007-task-notification-alert-emails-not-working.aspx" /><id>http://weblogs.asp.net/mellota/archive/2007/10/11/sharepoint-2007-task-notification-alert-emails-not-working.aspx</id><published>2007-10-11T14:37:00Z</published><updated>2007-10-11T14:37:00Z</updated><content type="html">&lt;p mce_keep="true"&gt;"Where are my alert emails!" I hear you cry.&amp;nbsp;I've been repeating these same words for a number of days now and I've finally&amp;nbsp;managed to get them working so I thought I'd share my solution.&lt;br&gt;&lt;br&gt;&lt;strong&gt;Scenario:&lt;/strong&gt;&amp;nbsp;&lt;br&gt;I've been working with a MOSS site which has three environments; development, staging and live.&amp;nbsp;We have a number of custom workflows which were created using Workflow Foundation&amp;nbsp;and&amp;nbsp;InfoPath for the forms. Each of the workflow tasks should automatically send out a task notification email whenever the task is reassigned to a different person. This has always worked fine on staging and live environments, but I've never seen them working in the development environment. Interestingly all the standard scheduled alert emails were working fine (ie. if you were to subscribe to a list), it was just the task notifications from the workflows which were not.&lt;/p&gt;
&lt;p mce_keep="true"&gt;&lt;strong&gt;Solution:&lt;/strong&gt;&lt;br&gt;First thing I did was go through the usual process of checking the log files and&amp;nbsp;windows event viewer for errors which yielded no significant results. Next thing I checked were the email settings for the site in Central Admin which again all looked fine. The development site is using local SMTP, so I checked if the emails were getting generated in the 'DROP' folder in the mailroot. The scheduled alert emails were getting generated in here fine, but the task notifications were not. I also checked that the Timer service was running correctly and under the right account in the windows Services, which it was.&lt;/p&gt;
&lt;p mce_keep="true"&gt;Next thing I checked were the database tables, after&amp;nbsp;I &lt;a title="UReader.com" href="http://www.ureader.com/message/33224584.aspx" mce_href="http://www.ureader.com/message/33224584.aspx"&gt;read about the same problem&amp;nbsp;in this newsgroup posting&lt;/a&gt;.&amp;nbsp;The following four tables in the content database contain entries related to the alert emails:&lt;br&gt;&lt;br&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/ms998697.aspx" mce_href="http://msdn2.microsoft.com/en-us/library/ms998697.aspx"&gt;ImmedSubscriptions&lt;/a&gt; (Stores the alerts for emails that are sent immediately when changes occur)&lt;br&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/ms998703.aspx" mce_href="http://msdn2.microsoft.com/en-us/library/ms998703.aspx"&gt;SchedSubscriptions&lt;/a&gt; (Stores daily or weekly scheduled alerts)&lt;br&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/ms998693.aspx" mce_href="http://msdn2.microsoft.com/en-us/library/ms998693.aspx"&gt;EventLog&lt;/a&gt; (This table contains events for which only non-immediate alerts exist)&lt;br&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/ms998692.aspx" mce_href="http://msdn2.microsoft.com/en-us/library/ms998692.aspx"&gt;EventCache&lt;/a&gt;&amp;nbsp;(This table contains a list of site events for which users have requested alerts. WSS inserts events into this table as they occur)&lt;/p&gt;
&lt;p mce_keep="true"&gt;I checked in these table to see if information about the alerts were being inserted and discovered that in the ImmedSubscriptions and EventLog tables there were actually entries which were related to the live server, as I believe the content database had been restored from a live copy a while ago, and the references obviously had not been updated automatically. So I cleared out each each one of these tables and re-tested&amp;nbsp;the workflow. This made a bit of progress as I could now see that the alert information was getting inserted correctly into the EventCache and EventLog tables. However the ImmedSubscriptions table was still not receiving information about the alert.&lt;/p&gt;
&lt;p mce_keep="true"&gt;After some frustrated iisresets and restarts of the timer job service, I was still having no luck whatsoever at getting these alert&amp;nbsp;emails working&amp;nbsp;so I reverted back to trusty Google for some more answers. I found &lt;a href="http://mosschampions.com/blogs/moss/archive/2007/02/02/Error-when-creating-an-Alert-in-MOSS_2E00_.aspx" mce_href="http://mosschampions.com/blogs/moss/archive/2007/02/02/Error-when-creating-an-Alert-in-MOSS_2E00_.aspx"&gt;this blog&lt;/a&gt;, which although not directly related, provided the winning answer. &lt;strong&gt;Updating the alert templates&lt;/strong&gt;. After running the following stsadm command on the development machine, the task notification alert emails automagically started working again woohoo!&lt;br&gt;&lt;br&gt;&lt;strong&gt;stsadm -o updatealerttemplates -url &lt;/strong&gt;&lt;strong&gt;http://testserver&lt;/strong&gt;&lt;strong&gt; -f "c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML\alerttemplates.xml" -LCID 2057&lt;/strong&gt;&lt;/p&gt;
&lt;p mce_keep="true"&gt;So I can assume that the problem transpired from a restore of the content databased from a different server which somewhere along the line maintained some references to the original server. A clear out of the relevant databases and re-registering the alert templates seemed to solve the problem for me.&lt;/p&gt;
&lt;p mce_keep="true"&gt;Hopefully this&amp;nbsp;comes in handy for somebody else, as I spent many a frustrated hour over this one&amp;nbsp;:)&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4522889" width="1" height="1"&gt;</content><author><name>mlota</name><uri>http://weblogs.asp.net/members/mlota.aspx</uri></author><category term="WSS" scheme="http://weblogs.asp.net/mellota/archive/tags/WSS/default.aspx" /><category term="MOSS" scheme="http://weblogs.asp.net/mellota/archive/tags/MOSS/default.aspx" /><category term="Sharepoint 2007" scheme="http://weblogs.asp.net/mellota/archive/tags/Sharepoint+2007/default.aspx" /></entry><entry><title>Hello World!</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/mellota/archive/2007/09/30/hello-world.aspx" /><id>http://weblogs.asp.net/mellota/archive/2007/09/30/hello-world.aspx</id><published>2007-09-30T15:23:00Z</published><updated>2007-09-30T15:23:00Z</updated><content type="html">&lt;p mce_keep="true"&gt;This is the first post to my newly created weblog hosted at &lt;a href="http://www.asp.net/"&gt;www.asp.net&lt;/a&gt; (many thanks to &lt;a title="Joe on .NET" href="http://joeon.net/" mce_href="http://joeon.net/"&gt;Joe Stagner&lt;/a&gt; for setting this up for me), which I'm migrating from my existing site &lt;a title="Multividea" href="http://www.multividea.com/" mce_href="http://www.multividea.com"&gt;www.multividea.com&lt;/a&gt;.&amp;nbsp;So I'll start with an introduction; I'm Mel, I've been working with various Microsoft web technologies over the years including classic ASP, ASP.NET and have most recently started working with Sharepoint 2007 and Windows Sharepoint Services. I mostly make posts to share&amp;nbsp;problems and solutions I encounter whilst working on projects for my current employer.&lt;/p&gt;
&lt;p mce_keep="true"&gt;I also recently got inspired to start getting stuck in with some&amp;nbsp;SilverLight 1.0 after attending Microsoft Mix: UK 07 and listening to various seminars&amp;nbsp;by &lt;a title="Scott Gu's Blog" href="http://weblogs.asp.net/scottgu/" mce_href="http://weblogs.asp.net/scottgu/"&gt;Scott Guthrie&lt;/a&gt;, so this is also something I would like to start blogging about regularly as I get further into it.&lt;/p&gt;
&lt;p mce_keep="true"&gt;So thanks for reading,&amp;nbsp;hopefully you will find this site a valuable resource and I'm&amp;nbsp;happy to answer any comments on the upcoming posts.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4256964" width="1" height="1"&gt;</content><author><name>mlota</name><uri>http://weblogs.asp.net/members/mlota.aspx</uri></author></entry></feed>