# Wednesday, January 31, 2007

Onlangs kreeg ik de volgende melding in Visual Studio 2005: The project file ' ' has been renamed or is no longer in the solution. Hierdoor was het niet meer mogelijk om ook maar iets van het project te bouwen. Het vervelende aan dit probleem is dat je geen idee hebt wat er nu eigenlijk aan de hand is. Na enige tijd vond ik uit dat dit gebeurt als een Web Project referenties bevat naar assemblies of projecten die het niet kan vinden. Je lost dit als volgt op:

  1. Rechts-klik op het Web project en kies Property Pages.
  2. Er verschijnt een venster met alle referenties, zowel naar de bin-map, GAC of andere projecten in de solution.
  3. Verwijderer de referenties gemarkeerd met (unavailable).
  4. Waarschijnlijk kun je nu niet bouwen omdat je assemblies mist. Als je de referenties daar naartoe maakt zou alles moeten werken.
Wednesday, January 31, 2007 4:42:56 PM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 

We were recently faced with the error message The project file ' ' has been renamed or is no longer in the solution in Visual Studio 2005. The problem is that from this message you have no idea what is actually the matter. We finally figured out that this happens when a Web Project contains references to assemblies or projects it can't find. Here's how you solve this:

  1. Right click the Web project and select Property Pages.
  2. A window will open which lists all the references, either to the bin-folder, GAC or other projects in the solution.
  3. Remove those that show (unavailable) behind it.
  4. Chances are that now you can't build because the reference is not there. Simply add the reference again and you should be OK.
Wednesday, January 31, 2007 4:36:21 PM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [9]  | 

XQuery 1.0 en XSLT 2.0 hebben heel lang op zich laten wachten. Al drie jaar geleden wilde ik een boek schrijven over XQuery en toen was volgens W3C de specificatie bijna klaar. Dat "bijna" was dus een ruim begrip... maar goed, ze hebben nu eindelijk W3C Recommendation status verworven. Moet ik de voorgestelde inhoudsopgave voor m'n te schrijven XML boek helaas wel aanpassen :(.

Wednesday, January 31, 2007 3:57:44 PM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 

Hoera! ASP.NET Ajax 1.0 is beschikbaar. Met ASP.NET Ajax kun je pagina's maken die alleen die delen van de pagina verversen die ook daadwerkelijk gewijzigd moeten worden. Dat scheelt netwerkverkeer, maar maakt bovendien de gebruikerssinterface veel mooier.

Maar, het is nog beter. Microsoft geeft ook de source code vrij van ASP.NET Ajax! Je kunt de source code hier downloaden. De source code wordt uitgegeven onder de Microsoft Permissive License (Ms-Pl), die het toestaat om de broncode aan te passen en in aangepast vorm te gebruiken en te verspreiden. Dat smaakt dus min of meer als open source.

Wednesday, January 31, 2007 9:04:04 AM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Tuesday, January 30, 2007

Onlangs schreef ik ASP.NET 2.0 - de basis, een boek voor de beginnende ASP.NET ontwikkelaar. In dezelfde serie ga ik nu ook nog een boek schrijven over mijn oude liefde XML. 6 jaar geleden heb ik al eens een boek geschreven over XSLT, Sams Teach Yourself XSLT in 21 Days, en nu komt daar een soort vervolg op voor mij. Ik vind het daarom leuk dat de uitgever mij gevraagd heeft of ik het XML boek in de serie voor m'n rekening wilde nemen. De goede samenwerking rond het ASP.NET boek was voor mij een belangrijke reden om daarop "ja" te zeggen.

Tuesday, January 30, 2007 12:01:10 PM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 

Van 25 t/m 29 maart is in San Fransisco VSLive (ASPLive) waar ik twee sessie ga doen over ASP.NET:

  • Understanding Multi-Threading (in ASP.NET)
  • Creating Scalable Apps with Asynchronous Processing

De eerste sessie gaat in op het feit dat ASP.NET een multi-threaded omgeving is en bekijkt wanneer en hoe dat relevant is voor ons als (web) ontwikkelaars. De tweede sessie bespreekt asynchronous pages, handlers en modules, waarmee je de schallbaarheid van je applicatie kunt verbeteren zonder extra hardware. Zie voor meer informatie de sessieomschrijvingen op de site van VSLive.

Tuesday, January 30, 2007 11:52:13 AM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 

I've been invited to speak at VSLive in San Fransisco ASPLive from March 25 to March 29. I will be doing two sessions on ASP.NET:

  • Understanding Multi-Threading (in ASP.NET)
  • Creating Scalable Apps with Asynchronous Processing

The first session takes a closer look at the fact that ASP.NET is a multi-threaded environment and what that means for us (web )developers. The second session looks at asynchronous pages, handlers and modules, to increase the scalability of our apps without adding new hardware. For more information checkout the session abstracts on the VSLive site.

I hope to see you there.

Tuesday, January 30, 2007 11:45:51 AM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Monday, January 08, 2007

Since January 1st Slovenia is using the Euro, so all e-commerce need to change to the euro. More accurately, the culture settings for Slovenia in Windows need to be changed. Unfortunately there is no patch available yet for Windows and you can't change the settings through the Configuration Panel (it'll change back automatically). Until the patch arrives, the following code can remedy the situation:

CultureInfo culture = (CultureInfo)Thread.CurrentThread.CurrentCulture.Clone();
culture.NumberFormat.CurrencySymbol =
"€";
culture.NumberFormat.CurrencyPositivePattern = 2;
// € 19.95
culture.NumberFormat.CurrencyNegativePattern = 12; // € -19.85
Thread.CurrentThread.CurrentCulture = culture;

This changes the culture settings at thread level. Adding this to Application_BeginRequest in global.asax works like a charm, but don't forget to check the initial culture first...

Monday, January 08, 2007 3:50:22 PM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 

Sinds 1 januari gebruikt slovenie de euro en dus moeten alle e-commerce sites over op de euro. Of eigenlijk beter gezegd, de culture settings van Windows moeten nu gebruik maken van de euro voor Slovenie. Helaas is dit niet aan te passen (verandert automatisch terug) en zou er dus een Windows update moeten komen. Zolang die er niet is, moet je de standaardinstellingen overschrijven. Dit kan met de volgende code:

CultureInfo culture = (CultureInfo)Thread.CurrentThread.CurrentCulture.Clone();
culture.NumberFormat.CurrencySymbol =
"€";
culture.NumberFormat.CurrencyPositivePattern = 2;
// € 19.95
culture.NumberFormat.CurrencyNegativePattern = 12; // € -19.85
Thread.CurrentThread.CurrentCulture = culture;

Hiermee wordt op thread niveau de CultureInfo aangepast. Deze zet je tijdelijk in Application_BeginRequest van global.asax en dan werkt het prima. Overigens niet vergeten of the thread wel Sloveens is om mee te beginnen...

Monday, January 08, 2007 3:45:47 PM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Thursday, January 04, 2007

Via het blog van m'n collega's bij Ordina Development Center Microsoft kwam ik deze aardige IE add-in (IEeee) tegen. Geweldig voor testers omdat ze vanuit IE de bug kunnen rapporteren. Daarbij worden de volgende gegevens toegevoegd aan het item in Team System:

  • Screenshot
  • HTML Van de pagina en alle frames/iframes
  • Stylesheets en scripts die door de pagina gebruikt worden
  • Details over de machine en de browser van de gebruiker
Thursday, January 04, 2007 9:39:39 AM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Tuesday, January 02, 2007

Deze fout schijnt nogal vaak voor te komen bij het installeren van Visual Studio 2005 SP1. Dit knowledgebase artikel vertelt wat je eraan kunt doen.

Tuesday, January 02, 2007 10:52:37 PM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Monday, January 01, 2007

Monday, January 01, 2007 10:02:19 PM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 

For some reason the traffic on my blog has exploded. Not from regular users, but because of Trackback and Pingback. The log is full of requests to these to services. I have turned them off, because I don't have the time to fix it (if I felt like doing it in the first place).

UPDATE: I figured out why my traffic jumped. My blog was victim to a spam attack, which added numerous trackback URLs. Unless I figure a way out to get around that (or Dasblog has), I'm not turning on trackback ever again.

Monday, January 01, 2007 9:59:09 PM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 

Om een of andere duistere reden is de traffic op mijn blog enorm toegenomen. Zoveel, dat ik voor het eerst in m'n leven traffickosten moet betalen aan m'n hosting provider. Niet te zuinig ook, want ik zit 10 GB over de maand limiet heen. De boosdoener? Trackback en Pingback, elk log staat vol met aanvragen naar die twee diensten. Ik heb ze dus maar uitgezet, want ik heb geen tijd (en zin) om uit te zoeken wat er precies mis is.

UPDATE: Trackback blijft uit, want ik weet nu waardoor de traffic zo hoog was. M'n blog was slachtoffer van een ordinaire spam aanval om zo trackback URLs te laten tonen. Ik moet dus maar eens gaan kijken naar een update van Dasblog dat dit tegengaat, hoewel ik eigenlijk gewoon niet meer van plan ben om trackback ooit weer aan te zetten.

Monday, January 01, 2007 9:56:41 PM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Monday, December 18, 2006
Visual Studio 2005 SP1 is beschikbaar. Het lost allerlei bugs op en biedt een aantal verbeteringen, waaronder
  • Nieuwe project types voor ASP.NET
  • Ondersteuning voor nieuwe processor types voor code generatie en profiling
  • Integratie van Excel 2007 en Project 2007 met Team Foundation Server
  • Ondersteuning voor Windows Embedded 6.0 platform en tools
Meer informatie is te vinden op de MSDN pagina Visual Studio 2005 Service Pack 1 (SP1).
Monday, December 18, 2006 1:05:13 PM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Wednesday, December 13, 2006

Microsoft heeft een security patch uitgebracht voor Visual Studio. Het "gat" in VS2005 wordt als kritiek beschouwd, dus is het heeeel verstandig de patch te installeren. Zie voor meer informatie en download Microsoft Security Bulletin MS06-073.

Wednesday, December 13, 2006 1:05:09 PM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  |