Lorenzo Barbieri @ Weblogs.Asp.Net

Shake your thoughts... Confessions of a MSF and .NET addicted
        www.lorenzobarbieri.info

Activities

My articles<br><font size="1">(in English)</font>

My articles<br><font size="1">(in Italian)</font>

My old articles<br><font size="1">for <a href="http://www.objectway.it">ObjectWay SpA</a> (in Italian)</font>

My projects

The Italian Blog...<br><font size="1">(my Official Italian blog)</font>

July 2004 - Posts

Book: Test-Driven Development in Microsoft.NET

At last UGIdotNet workshop (22th, June) I received this book.

Yesterday I started reading it, and it was so cool that I've already finished it, from cover to cover.

The book is really well done, it explains TDD without being too abstract. In fact, every step is explained with a practical example.

If you need a book that explains not only the theory, but also how to use NUnit to obtain your results, this is the right one.

MSDN Subscriber Downloads down?

I can enter, but when I try to download something I receive an error message.

Do you have the same problem?

Playing again with Timestamp check and a stupid exception trick...

To be notified on the server that the WSE2 client has a Timestamp problem (and perhaps doing something like logging the problem), I used this solution on the client:

try

{

proxyWse.DoSomething();

}

catch

{

try

{

proxy.LogError();

throw;

}

catch

{

throw;

}

}

 

In this way if there is an error with WSE2 the method called on the "normal" proxy succeedes, and then the code re-throws the exception that was generated by WSE2.

If the method called on the "normal" proxy fails, probably there is a connectivity problem, and an exception is thrown.

I don't know if this is the right way, but it works...

Posted: Jul 12 2004, 04:26 PM by barbilor | with no comments
Filed under:
Other info about WSE2 and timestamps

Regarding my previous post called "I really hate Timestamp check in WSE..." I've discovered (on WSE NGs)  how to mitigate the problem.

There is an element in the .config file that is used to change the default value (5 minutes):

<microsoft.web.services2>
  <security>
    <timeToleranceInSeconds>value</timeToleranceInSeconds>
  </security>
</microsoft.web.services2>

Of course the documentation doesn't specify the maximum value (24hrs, 86400 seconds), that I've discovered by receiving an exception.

And of course I've not yet found a way to completely disable the timestamp check...

Posted: Jul 12 2004, 03:45 PM by barbilor | with 1 comment(s)
Filed under:
Nice utility: Eraser... and why Virtual PC is so poor on details...

Eraser is a tool to securely remove data from HDs/floppies, etc...

It can erase files and unused space, using different secure algorithms.

The REAL use for this tool for me is to ERASE unused disk space, filling it with 0s (I created a custom rule), on my virtual HDs, so I can compress them using the Virtual Disk Wizard.

<RANT>Why such a tool is not included in Virtual PC additions?</RANT>

<RANT>Why Virtual Disk Wizard tells me to use a third-party tool to erase the unused space on the HD, but doesn't suggest any?</RANT>

Posted: Jul 12 2004, 12:40 PM by barbilor | with no comments
Filed under:
What happened to ReSharper...

Planned date of ReSharper release is July 5, 2004.

Uhm... I think that there is something wrong...

I'm back in Italy from Holland from 4 days... but I can't see the difference...

It's four days that it's raining, then there is a little bit of sun, then rain, than wind, and the temperature is below the normal...

I need some good days to go to the swimming pool... I really need it...

I really hate Timestamp check in WSE...

<RANT>

Why it's enabled by default?

Ok... for security reasons.... but I don't care at all about securing all of my services, only some...

For some other I'm only using WS-Attachments...

And what about the documentation, that is SOOO clear, easy and straightforward... It looks like some Java libraries when you search the documentation and you find only the JavaDoc... :-((((((((

</RANT>

Posted: Jul 08 2004, 05:21 PM by barbilor | with 2 comment(s)
Filed under:
Don't touch this!

I was playing with the System.Reflection when I discovered this nice thing (taken from the QuickWatch window):

((System.Reflection.Assembly)((System.Reflection.Assembly.GetExecutingAssembly().GetName())))._DontTouchThis

I really like it... Let's see what happens if I change it... :-D!

Posted: Jul 06 2004, 04:34 PM by barbilor | with 5 comment(s)
Filed under:
Last picture about Hands On Labs...

This was taken some minutes before the closure...

A lot of people here!

Thanks to my company www.objectway.it for hosting the photos!

More Posts Next page »