Archive for February, 2009

Developing and Testing Data Access of SQLCEPad tool using Self-Shunt and Stub tetsing patterns

Sometimes ago I developed a simple tool for creating and executing SQL statements against SQL CE 3.5 database. Yesterday, I’ve decided to re-develop and improve it in a new version. I’ve started with implementation of data access part of it. The data access is very simple; it retrieves all needed DB schema meta-data that the [...]

Permission exception during development of custom web parts for WSS 3.0

If you develop a custom Web part for the WSS 3.0 and you’d like to manually install it you can get an error as those below.
Request for the permission of type ‘Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’ failed.

It is a quite common error if the trust level for the web site where you deploy your custom [...]

Rhino.Mocks ExpectationViolationException

Today, a colleague of mine Alex and me run into an exception thrown by Rhino.Mocks Framework by Ayande Rahien. How does it happen?
Let’s say that we have code like this.

1: [Test]
2: public void TestSomeMethod()
3: {
4: MockRepository mocks = new [...]

What licenses are required for WSS 3.0?

Some times ago I had a need to answer this question. After some googling and investigations I got an idea of what licenses are required for WSS 3.0. I spent some time for the research and decided to share what I’ve found. Let me clear that I’m not an expert in MS products licensing and [...]

Compile and deploy an application using aspnet_compiler

I’d a need to compile and to deploy a compiled version of an ASP.Net web site to a directory that the web site is published. For this purpose, I’ve decided to use an utility from .Net Framework 2.0 named aspnet_compiler.exe. It is located in <windows_directory>\Microsoft.NET\Framework\ v2.0.50727. The advantage of using it is that I can [...]