Unit Testing with Silverlight 2

It doesn't appear there is any VS IDE integrated support for running SL unit tests but there is a browser-based unit testrunner, 
 
To get the correct templates follow this straightforward guide:
 
 
Then just create your unit test project(s) and write tests using the same attributes as [TestClass] [TestMethod] etc.
 
To run your SL tests (they don't show in VSs Test View window) set you SL unit test project as Startup and run, a browser opens and runs the tests, detailed instructions at http://www.jeff.wilcox.name/2008/03/silverlight2-unit-testing/#option2

SHARE:

Imported posts not appearing in BlogEngine.NET

 If you've used the BlogEngine.NET import tool and your post are not showing you could try the following:

  http://mcgeown.co.uk/BlogEngine/post/2008/05/09/Force-BlogEngineNet-to-update-its-cache-after-an-import.aspx

 I recycled the IIS app pool and that seems to have flushed BEs cache.

SHARE:

Importing posts from Blogger into BlogEngine.NET

Just managed to successfully get my posts from Blogger into DCT.

Read a post suggesting using a new temp WordPress blog which can import directly from Blogger. Then export, then use the Import tool in the Settings page of BlogEngine.Net (which launches a ClickOnce app). Although in retrospect I wonder if just pointing the Importer to the Blogger RSS feed might have made the WordPress step unnecessary.

 There is a caveat in that comments are not imported - also did not attempt images\files import.

SHARE:

Blogengine.net install on Discountasp.net

After weighing up the options (or at least 2) for a .Net based blogging engine for DCT I've chosen Blogengine.Net over dasBlog. Have to run IIS 7 in Classic Application Pool Pipeline Mode , also there were a few odd behaviors with the settings page outputting C# source and the referrals page not working; then the Month List widget not working.... it now appears to be ok... want to sort a theme and then I've a couple of ideas for some custom widgets.

SHARE:

Dataset designer global:: namespace issues

If you change the namespace of a typed dataset in Visual Studio 2005, you may find that the .designer.cs doesn’t re-generate properly, for example the connection string init. To fix, delete the .designer.cs file for your dataset and rebuild; you will probably get a build warning “custom tool failed” for the dataset generator. Double click [...]

SHARE:

encrypt and decrypt app.config in .NET 2.0

To encrypt, decrypt app.config file… private void button1_Click(object sender, EventArgs e){ UnProtectSection(”connectionStrings”);} private void button2_Click(object sender, EventArgs e){ ProtectSection(”connectionStrings”,“DataProtectionConfigurationProvider”);} private void ProtectSection(string sectionName, string provider){ Configuration config = ConfigurationManager. OpenExeConfiguration( ConfigurationUserLevel.None); ConfigurationSection section = [...]

SHARE:

To XSLT a large file (.NET1.1)

To XSLT a large file use XPathDocument rather than XmlDocument, e.g. Slower: Me.m_oldStream.Position = 0Dim xsl As New Xml.Xsl.XslTransformxsl.Load(Me.m_xsltFilePath)Dim xDoc As New Xml.XmlDocumentxDoc.Load(Me.m_oldStream)xsl.Transform(xDoc, Nothing, Me.m_newStream, Nothing)Me.m_newStream.Flush() Faster: Me.m_oldStream.Position = 0Dim xslt As XslTransform = New XslTransformxslt.Load(Me.m_xsltFilePath)Dim doc As XPathDocument = New XPathDocument(Me.m_oldStream)xslt.Transform(doc, Nothing, Me.m_newStream, Nothing)Me.m_newStream.Flush() http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/ScaleNetChapt09.asp claims 20-30% faster processing.In one extreme example of a project I have worked on, [...]

SHARE: