TechEd 2010 – Day #2

PeopleToday, the rally of sessions started.

The first one was on “Code First Development with Entity Framework (EF)“. EF v4.0 is still a new product, but for RAD (Rapid Application Development) this can help to quickly create a new project and have a sense of the data model in a short period of time. However, the feature that “re-creates” the database everytime you launch the application must not be delivered into Production (right now, you must implements the logic in the configuration or comment that part of the code before building the application and shipping it into Production).

Open Data Protocol slideNext, I went to “Open Data for the Open Web” (OData) – speaker: Jonathan Carter – Excellent session. (more…)

How to Debug the Installation/Uninstallation of Windows Service (.NET)

(original blog entry)

Just setup in your “Debug” tab of your Visual Studio “Windows Service” project:

  • Select “Start external program” and find “InstallUtil.exe” (usually under <Windows>\Microsoft.NET)
  • Then as command line argument put the name of your executable
  • As a working directory, select the output folder of your project

It should look like this:

 

Setup the breakpoints and hit F5. The installation should start and stop at your breakpoint.

If you want to debug uninstallation of your Windows Service (.NET), use the “/u” argument of InstallUtil.exe.

If the debug session is aborted (because you stopped it in the middle or an error arose) , then the service might not be completely installed or removed. If that is the case, just open a command line window and type in:

>InstallUtil.exe /u <path:filename of your .NET executable>

Good debug session.

%d bloggers like this: