vbdotnet.it

Tricks & tips, workaround, forum and ideas with .Net

About the author

Enrico Rossini è il gestore di questo blog.
E-mail me Send mail

Recent posts

Recent comments

Contributi

Best 6 ~ 6 users ~ 6 comments

Info legali

Le opinioni espresse in questo blog sono strettamente personali e ogni persona è responsabile dei commenti che inserisce. I marchi citati sono delle rispettive aziende.

© Copyright 2010

Advertising


IIS 7 e MSCaptcha

Vorresti utilizzare su IIS7 il componente MSCaptcha ma nonostante tutti le configurazione questo non funziona. Per configurare correttamente e farlo funzionare, nella sesione system.weserver\handlers inserire le seguenti righe di codice:

<add name="MSCaptchaImage"

path="CaptchaImage.axd"

verb="GET"

type="MSCaptcha.CaptchaImageHandler, MSCaptcha"

preCondition="integratedMode,runtimeVersionv2.0" />

In allegato il controllo

Bin.zip (16,72 kb)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,
Categories: iis | windowsform
Posted by enrico on Wednesday, May 05, 2010 8:43 PM
Permalink | Comments (0) | Post RSSRSS comment feed

Tipi MIME per Microsoft Office 2007

Non so se a voi vi è mai capitato, a me si. Se da un vostro sito volete far eseguire il download di un documento in formato Office 2007, il documento non viene trovato. Forse perché non esiste? No, perché il server IIS non ha probabilmente configurato le estensioni MIME per i nuovi tipi di file Office.

La lista delle estenzioni e delle tipologie MIME è la seguente:

.docm,application/vnd.ms-word.document.macroEnabled.12
.docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document
.dotm,application/vnd.ms-word.template.macroEnabled.12
.dotx,application/vnd.openxmlformats-officedocument.wordprocessingml.template
.potm,application/vnd.ms-powerpoint.template.macroEnabled.12
.potx,application/vnd.openxmlformats-officedocument.presentationml.template
.ppam,application/vnd.ms-powerpoint.addin.macroEnabled.12
.ppsm,application/vnd.ms-powerpoint.slideshow.macroEnabled.12
.ppsx,application/vnd.openxmlformats-officedocument.presentationml.slideshow
.pptm,application/vnd.ms-powerpoint.presentation.macroEnabled.12
.pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation
.xlam,application/vnd.ms-excel.addin.macroEnabled.12
.xlsb,application/vnd.ms-excel.sheet.binary.macroEnabled.12
.xlsm,application/vnd.ms-excel.sheet.macroEnabled.12
.xlsx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.xltm,application/vnd.ms-excel.template.macroEnabled.12
.xltx,application/vnd.openxmlformats-officedocument.spreadsheetml.template

Per eseguire l'aggiornamento è possibile seguire una di queste due strade:

  1. aprire IIS (strada consigliata), cliccare il tasto destro sul nome del server e quindi proprietà. Cliccare sul bottone tipi MIME e quindi aggiungere estensione e tipologia MIME. Riavviare IIS.
  2. bloccare IIS. Aprire la cartella C:\WINDOWS\system32\inetsrv ed editare con il blocco note il file MetaBase.xml. Cercare l'elemento IIsMimeMap ed aggiungere la precedente lista

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by enrico on Tuesday, August 05, 2008 7:43 PM
Permalink | Comments (0) | Post RSSRSS comment feed