Sofie Lemaire geht los…

Théhé, ‘t is dan nog waar ook! Vanochtend op StuBru gehoord.

Leave a Comment

Downloading Office 2007 documents from IIS 6

Today at work, I had to make a small asp.net form that enables the user to apply for a job and upload their resume. In the backoffice that I made, the admin has the possibility to view all applicants and download the files they’ve uploaded. Possible file types are .pdf, .doc and .docx. While testing this application, I had uploaded a Word file and checked via FTP that the upload including the renaming of the file and moving it to the correct folder went fine. So, as a final test, I tried to download the uploaded file via my browser, just like the admin would do when te application went live. This didn’t work at all! The server just returned a 404 Not Found error page. I tried for maybe half an hour and started to think I was going crazy. I could see the file through FTP, but could not download it. How is that possible!?

Then, after half an hour, I did what I should have done all along. I renamed the file from the Microsoft Word 2007 file extension .docx to a regular .doc and it worked instantly! After a few seconds looking in Google, I realized that IIS6.0 (which runs on our hosting provider’s server) is Secure By Design. This means that MIME types are in a white list. Everything that isn’t known to the server is hidden by default and thus returns a 404 error.

To solve this problem, you have to add a MIME type to IIS. To do this, you just follow these simple steps:

  • In the Internet Management console, you go to the properties of the web site, by right clicking onto it.
  • Under “HTTP Headers”, “Mime Types”, you add a new extension (without the leading dot) with the mime type “application/vnd.openxmlformats-officedocument.wordprocessingml.document”.

You can find a complete list of mime types for office 2007 documents on the Microsoft website.

Comments (3)

Get a mac

Nu we toch over macs bezig zijn. De nieuwste get-a-mac reclames zijn echt weer prachtig! Soms begin ik te denken dat den Bill gewoon zelf aandelen in Apple heeft en het allemaal expres doet :-)

Get a mac!

Comments (1)

Icoontjes op de mac

You gotta love them. Hierbij mijn beestjes-icoontjes :-)

Icoontjes op mac in de dock

Van links naar rechts: Cyberduck (FTP), Adium (Chat) & Twitterific (twitter)

Comments (5)

Indie Group zoekt .Net Programmeur

Indie Group nv zoekt voor onmiddellijke indiensttreding een

.NET Programmeur (M/V)
Voltijds voor onbepaalde duur

Kader
Indie Group ontwikkelt licentiesoftware en maatwerk multimedia voor interne en externe bedrijfscommunicatie, voor educatieve doeleinden en voor gaming en laat zich geregeld opmerken door innoverende projecten waarbij technisch vernuft en creativiteit op inventieve wijze gecombineerd worden.
Een weldoordachte mix van flexibele webtechnologie, offline media (CD-Rom, DVD) en interface design liggen steeds aan de basis van een functionele en gebruiksvriendelijke toepassing ten behoeve van de gebruiker, het product of de boodschap.

Profiel

  • Profiel Bachelor Informatica, Master ICT, Burgerlijk/Industrieel Ingenieur Informatica
  • Kennis van en ervaring met .NET 2.0, .NET 1.1,C#, Javascript, Ajax
  • Goede kennis OOP, basis kennis UML en bij voorkeur kennis Design Patterns
  • Vlot in het leggen van contacten, communicatief, zelfstandig en een goede team player
  • Minstens 2 jaar ervaring
  • Talenkennis: Nederlands en Engels is een must

Taken
U zal in overleg met de projectleider verantwoordelijk zijn voor de ontwikkeling en implementatie van internet en intranet applicaties.
U komt terecht in een team van creatieve multimedia ontwikkelaars binnen een jong en dynamisch bedrijf.

Contact: ann@indiegroup.be

Comments (1)

Koningsgezind

Koningquiz

Ik had 7 op 15. Net gebuisd dus en dan had ik nog geluk bij een paar gokjes. Een echte kenner van het koningshuis…

Leave a Comment

Photoshopped

Photoshop

Leave a Comment

Mental note to self

*Nerd-alert!*

Gewoon om het zelf nooit meer te vergeten, maar in SQL Server 2000 kan je de owner van een object veranderen met:

exec sp_changeobjectowner 'objectnaam', 'nieuwe_owner'

Ok, ‘t is gepasseerd. U mag terug ademen…

Comments (2)

Prank call

Leave a Comment

Je weet dat je in de IT-branche zit als…

Je volgende mail krijgt om pasta te bestellen:

Hier bestellen voor {SELECT datetime FROM [1vertrekken] WHERE id_reden = 5} uur.

Leave a Comment