Author Archives: Gaston

Unknown's avatar

About Gaston

MCT, MCSD, MCDBA, MCSE, MS Specialist

Fresh installation of IIS doesn’t recognize .svc requests

This problem can be solved easily by running the ServiceModelReg tool. This can be found in %SystemRoot%\Microsoft.Net\Framework\v3.0\Windows Communication Foundation. ServiceModelReg –i will do the trick. More information at http://msdn.microsoft.com/en-us/library/ms732012.aspx Technorati Tags: IIS,WCF,SVC,ServiceModelReg

Posted in Geen categorie | 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

Securing a WCF service with a username / password

When you read the MS documentation, this looks like a trivial thing to do, but of course there are always some things that just don’t work as you’d like them to work. I got it working thanks to some excellent … Continue reading

Posted in Geen categorie | 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

VS 2008 – View white space

I gladly use a lot of VS’s shortcuts, and one of my favorites is Ctrl+E, Ctrl+D which will format your document. Today I missed and typed something else than Ctrl+E, Ctrl+D, causing my editor to show all the tabs as … Continue reading

Posted in Geen categorie | Leave a comment

Receiving a long response (> 64kb) from a web service (WCF client)

Tags van Technorati: WCF   I’m calling a web service which returns (after a long while) a large string. This string is more than 64 KB in size, so I had to tweak the config file on the client. Here … Continue reading

Posted in Geen categorie | 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

Showing a SmartPart in a Windows form

Tags van Technorati: CAB,SCSF The easy part: create a form with a SmartPartPlaceholder on it. Second: provide a property like this: public UserControl SmartPart{    get { return (UserControl)smartPartPlaceholder1.SmartPart; }    set { smartPartPlaceholder1.SmartPart = value; }} Third: From within a presenter … Continue reading

Posted in Geen categorie | Leave a comment

Deploying a SCSF Application

First attempt: right click shell > Deploy, then follow the wizard. This works, and it will allow you to deploy the files that are referenced in the Shell application. That doesn’t include any Business or Foundational modules because they’re added … Continue reading

Posted in Geen categorie | Leave a comment