Category Archives: Development

WCF – Issue a request over https with custom header

In my current project I need to call a web service over https. Security is implemented by using a custom header (old school). To support this in WCF follow the following simple steps: In the configuration file (app.config) make the … Continue reading →

Posted in Development | Leave a comment

CLR trigger – External access

By default when you create a CLR trigger, VS 2008 will deploy it as a SAFE trigger: CREATE ASSEMBLY HelloWorld FROM @SamplesPath + ‘HelloWorld\CS\HelloWorld\bin\debug\HelloWorld.dll’ WITH PERMISSION_SET = SAFE;   This is good, you always want to start with the minimal … Continue reading →

Posted in Development | Leave a comment

MS Access has a problem with date/time fields when the Milliseconds aren’t 0.

I was trying to add a record with a date/time field in an MS Access database like this: const string UpdateContactPersonSQL =    "UPDATE ContactPerson set Firstname = ?" +    […]         ", ModificationDate = ? " +    "WHERE ContactpersonID … Continue reading →

Posted in Development | Leave a comment

MIME Type Detection in Internet Explorer

Just a quick one: here you can find the possible values for Response.ContentType, like: Response.ContentType = "application/x-zip-compressed"; http://msdn.microsoft.com/en-us/library/ms775147(VS.85).aspx   Tags van Technorati: mime,asp.net,ContentType

Posted in Development | Leave a comment

Starting a scheduled task in C#

I had to start a scheduled task. Most of the examples on MSDN use C++ for this, because there are no managed APIs to work with the task scheduler. Lucky for me the COM components for the Task Scheduler are … Continue reading →

Posted in Development | Leave a comment

Using a SmartPartPlaceHolder

Tags van Technorati: CAB,SCSF,SmartPart,SmartPartPlaceholder When you want to present a SmartPart like a Usercontrol, you can use a SmartPartPlaceholder. The placeholder hase a property ‘SmartPartName’ which is used to store it in a collection of the WorkItem. This means that … Continue reading →

Posted in Development | Leave a comment

SCSF – giving a smartpart a title using attributes

When creating a [SmartPart] in SCSF, and adding it in a Tabbed Workspace, its title is empty by default. This results in a tab without a label in the workspace, not a pretty view. The standard way to solve this … Continue reading →

Posted in Development | Leave a comment

Choose Items crashing Visual Studio 2008

When trying to choose items to add to the toolbox in VS 2008 the following happened: * Wait for a couple of minutes * VS 2008 shuts down, no error message, just gone.   After the crash, the following events … Continue reading →

Posted in Development | Leave a comment

WCF – get identity of calling user

To get the identity of the calling user of your web method, you can use something like this:   string name = OperationContext.Current.ServiceSecurityContext.WindowsIdentity.Name;   Constraint: your service contract must have a session. In WSSF you can change this in the … Continue reading →

Posted in Development | Leave a comment

Debugging a webservice created by WSSF

To debug the webservice rightclick on the solution name and get the Startup Projects. Select the client app that you’re going to use for your debugging, and put its action on start or start without debugging. Do the same for … Continue reading →

Posted in Development | Leave a comment