2010年12月21日 星期二

解決IIS6.0上放置的文檔無法下载的問題

一般採用 net 開發自動更新,會採用http(web)方式來放置
如:
System .Net.WebClient
My.Computer.Network.DownloadFile

該開放運作站台 對應 INI 或其他版本對照檔,IIS 就必須對 MIME 開放
---
底下為各副檔名的MIME對照表
---
.asx,video/x-ms-asf
.xml,text/xml
.tsv,text/tab-separated-values
.ra,audio/x-pn-realaudio
.sv4crc,app1ication/x-sv4crc
.spc,app1ication/x-pkcs7-certificates
.pmc,app1ication/x-perfmon
.lit,app1ication/x-ms-reader
.crd,app1ication/x-mscardfile
.isp,app1ication/x-internet-signup
.wmlsc,app1ication/vnd.wap.wmlscriptc
.vst,app1ication/vnd.visio
.xlam,app1ication/vnd.ms-excel.addin.macroEnabled.12
.ttf,app1ication/octet-stream
.pfm,app1ication/octet-stream
.csv,app1ication/octet-stream
.aaf,app1ication/octet-stream
.one,app1ication/onenote
.hta,app1ication/hta
.atom,app1ication/atom+xml
.323,text/h323
.mhtml,message/rfc822
.midi,audio/mid
.p7r,app1ication/x-pkcs7-certreqresp
.mny,app1ication/x-msmoney

.clp,app1ication/x-msclip
.vsd,app1ication/vnd.visio
.lpk,app1ication/octet-stream
.bin,app1ication/octet-stream
.onetoc,app1ication/onenote
.x,app1ication/directx
.wvx,video/x-ms-wvx
.vcf,text/x-vcard
.htc,text/x-component
.htt,text/webviewhtml
.h,text/plain
.mht,message/rfc822
.mid,audio/mid
.p7b,app1ication/x-pkcs7-certificates
.gz,app1ication/x-gzip
.dvi,app1ication/x-dvi
.cpio,app1ication/x-cpio
.vdx,app1ication/vnd.ms-visio.viewer
.sldm,app1ication/vnd.ms-powerpoint.slide.macroEnabled.12
.xlm,app1ication/vnd.ms-excel
.fdf,app1ication/vnd.fdf
.setreg,app1ication/set-registration-initiation
.eps,app1ication/postscript
.p7s,app1ication/pkcs7-signature
.toc,app1ication/octet-stream
.mdp,app1ication/octet-stream
.ics,app1ication/octet-stream
.chm,app1ication/octet-stream
.asi,app1ication/octet-stream
.afm,app1ication/octet-stream
.evy,app1ication/envoy
.wmp,video/x-ms-wmp
.qt,video/quicktime
.mpv2,video/mpeg
.xslt,text/xml
.etx,text/x-setext
.cod,image/cis-cod
.snd,audio/basic
.au,audio/basic
.man,app1ication/x-troff-man
.qtl,app1ication/x-quicktimeplayer
.pmw,app1ication/x-perfmon
.class,app1ication/x-java-applet
.iii,app1ication/x-iphone
.csh,app1ication/x-csh
.z,app1ication/x-compress
.vtx,app1ication/vnd.visio
.vsw,app1ication/vnd.visio
.wps,app1ication/vnd.ms-works
.potx,app1ication/vnd.openxmlformats-officedocument.presentationml.template
.ps,app1ication/postscript
.p7c,app1ication/pkcs7-mime
.thn,app1ication/octet-stream
.mso,app1ication/octet-stream
.dot,app1ication/msword
.doc,app1ication/msword
.sgml,text/sgml
.nws,message/rfc822
.pbm,image/x-portable-bitmap
.ief,image/ief
.wav,audio/wav
.texi,app1ication/x-texinfo
.mvb,app1ication/x-msmediaview
.hdf,app1ication/x-hdf
.vsx,app1ication/vnd.visio
.dotm,app1ication/vnd.ms-word.template.macroEnabled.12
.docm,app1ication/vnd.ms-word.document.macroEnabled.12
.pptx,app1ication/vnd.openxmlformats-officedocument.presentationml.presentation
.psm,app1ication/octet-stream
.java,app1ication/octet-stream
.eot,app1ication/octet-stream
.jar,app1ication/java-archive
.mpeg,video/mpeg
.xsf,text/xml
.map,text/plain
.uls,text/iuls
.rf,image/vnd.rn-realflash
.m3u,audio/x-mpegurl
.wma,audio/x-ms-wma
.aifc,audio/aiff
.mdb,app1ication/x-msaccess
.mvc,app1ication/x-miva-compiled
.stl,app1ication/vnd.ms-pki.stl
.ppsx,app1ication/vnd.openxmlformats-officedocument.presentationml.slideshow
.xlsb,app1ication/vnd.ms-excel.sheet.binary.macroEnabled.12
.setpay,app1ication/set-payment-initiation
.prm,app1ication/octet-stream
.mix,app1ication/octet-stream
.lzh,app1ication/octet-stream
.hhk,app1ication/octet-stream
.onepkg,app1ication/onenote
.xaf,x-world/x-vrml
.flr,x-world/x-vrml
.IVF,video/x-ivf
.cnf,text/plain
.asm,text/plain
.tiff,image/tiff
.wax,audio/x-ms-wax
.ms,app1ication/x-troff-ms
.tcl,app1ication/x-tcl
.shar,app1ication/x-shar
.sh,app1ication/x-sh
.nc,app1ication/x-netcdf
.hlp,app1ication/winhlp
.oda,app1ication/oda
.pfb,app1ication/octet-stream
.fla,app1ication/octet-stream
.wm,video/x-ms-wm
.rgb,image/x-rgb
.ppm,image/x-portable-pixmap
.ram,audio/x-pn-realaudio
.sit,app1ication/x-stuffit
.dir,app1ication/x-director
.mpp,app1ication/vnd.ms-project
.xla,app1ication/vnd.ms-excel
.ssm,app1ication/streamingmedia
.axs,app1ication/olescript
.ods,app1ication/oleobject
.psp,app1ication/octet-stream
.jpb,app1ication/octet-stream
.wrz,x-world/x-vrml

.m1v,video/mpeg
.mno,text/xml
.cmx,image/x-cmx
.jpeg,image/jpeg
.dib,image/bmp
.rmi,audio/mid
.aiff,audio/aiff
.wmd,app1ication/x-ms-wmd
.wri,app1ication/x-mswrite
.pub,app1ication/x-mspublisher
.ins,app1ication/x-internet-signup
.wks,app1ication/vnd.ms-works
.xls,app1ication/vnd.ms-excel
.ai,app1ication/postscript
.crl,app1ication/pkix-crl
.qxd,app1ication/octet-stream
.dwp,app1ication/octet-stream
.xof,x-world/x-vrml
.wmv,video/x-ms-wmv
.nsc,video/x-ms-asf
.mpa,video/mpeg
.pnm,image/x-portable-anymap
.rpm,audio/x-pn-realaudio-plugin
.aif,audio/x-aiff
.me,app1ication/x-troff-me
.pml,app1ication/x-perfmon
.trm,app1ication/x-msterminal
.m13,app1ication/x-msmediaview
.js,app1ication/x-javascript
.dxr,app1ication/x-director
.potm,app1ication/vnd.ms-powerpoint.template.macroEnabled.12
.xltx,app1ication/vnd.openxmlformats-officedocument.spreadsheetml.template
.xlt,app1ication/vnd.ms-excel
.xlc,app1ication/vnd.ms-excel
.p10,app1ication/pkcs10
.smi,app1ication/octet-stream
.sea,app1ication/octet-stream
.hqx,app1ication/mac-binhex40
.spl,app1ication/futuresplash
.movie,video/x-sgi-movie
.lsf,video/x-la-asf
.txt,text/plain
.jfif,image/pjpeg
.jpe,image/jpeg
.zip,app1ication/x-zip-compressed
.wmf,app1ication/x-msmetafile
.m14,app1ication/x-msmediaview
.latex,app1ication/x-latex
.wcm,app1ication/vnd.ms-works
.pptm,app1ication/vnd.ms-powerpoint.presentation.macroEnabled.12
.xlsx,app1ication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.hhp,app1ication/octet-stream
.aca,app1ication/octet-stream
.accdb,app1ication/msaccess
.jcz,app1ication/liquidmotion
.wrl,x-world/x-vrml
.wmx,video/x-ms-wmx
.asr,video/x-ms-asf
.lsx,video/x-la-asf
.xsl,text/xml
.html,text/html
.tif,image/tiff
.der,app1ication/x-x509-ca-cert
.pfx,app1ication/x-pkcs12
.p12,app1ication/x-pkcs12
.ppsm,app1ication/vnd.ms-powerpoint.slideshow.macroEnabled.12
.cur,app1ication/octet-stream
.accdt,app1ication/msaccess
.hdml,text/x-hdml
.htm,text/html
.xbm,image/x-xbitmap
.jpg,image/jpeg
.texinfo,app1ication/x-texinfo
.ppam,app1ication/vnd.ms-powerpoint.addin.macroEnabled.12
.xlw,app1ication/vnd.ms-excel
.rm,app1ication/vnd.rn-realmedia
.pdf,app1ication/pdf
.rar,app1ication/octet-stream
.psd,app1ication/octet-stream
.inf,app1ication/octet-stream
.emz,app1ication/octet-stream
.dsp,app1ication/octet-stream
.onea,app1ication/onenote
.jck,app1ication/liquidmotion
.mpe,video/mpeg
.mp2,video/mpeg
.sct,text/scriptlet
.ras,image/x-cmu-raster
.swf,app1ication/x-shockwave-flash
.wmz,app1ication/x-ms-wmz
.gtar,app1ication/x-gtar
.dcr,app1ication/x-director
.sldx,app1ication/vnd.openxmlformats-officedocument.presentationml.slide
.pps,app1ication/vnd.ms-pps
.p7m,app1ication/pkcs7-mime
.xsn,app1ication/octet-stream
.ocx,app1ication/octet-stream
.accde,app1ication/msaccess
.mov,video/quicktime
.wmls,text/vnd.wap.wmlscript
.cpp,text/plain
.c,text/plain
.bas,text/plain
.css,text/css
.art,image/x-jg
.mp3,audio/mpeg
.t,app1ication/x-troff
.roff,app1ication/x-troff
.tar,app1ication/x-tar
.hhc,app1ication/x-oleobject
.scd,app1ication/x-msschedule
.pko,app1ication/vnd.ms-pki.pko
.sst,app1ication/vnd.ms-pki.certstore
.ppt,app1ication/vnd.ms-powerpoint
.xtp,app1ication/octet-stream
.u32,app1ication/octet-stream
.pcx,app1ication/octet-stream
.msi,app1ication/octet-stream
.exe,app1ication/octet-stream
.asd,app1ication/octet-stream
.onetoc2,app1ication/onenote
.fif,app1ication/fractals
.mpg,video/mpeg
.vml,text/xml
.xdr,text/plain
.vcs,text/plain
.hxt,text/html
.eml,message/rfc822
.xpm,image/x-xpixmap
.ico,image/x-icon
.gif,image/gif
.dwf,drawing/x-dwf
.src,app1ication/x-wais-source
.tr,app1ication/x-troff
.pmr,app1ication/x-perfmon
.pma,app1ication/x-perfmon
.dll,app1ication/x-msdownload
.bcpio,app1ication/x-bcpio
.wmlc,app1ication/vnd.wap.wmlc
.wdb,app1ication/vnd.ms-works
.dotx,app1ication/vnd.openxmlformats-officedocument.wordprocessingml.template
.docx,app1ication/vnd.openxmlformats-officedocument.wordprocessingml.document
.pot,app1ication/vnd.ms-powerpoint
.xltm,app1ication/vnd.ms-excel.template.macroEnabled.12
.rtf,app1ication/rtf
.prf,app1ication/pics-rules
.snp,app1ication/octet-stream
.cab,app1ication/octet-stream
.avi,video/x-msvideo
.asf,video/x-ms-asf
.dtd,text/xml
.wml,text/vnd.wap.wml
.vbs,text/vbscript
.rtx,text/richtext
.dlm,text/dlm
.xwd,image/x-xwindowdump
.pgm,image/x-portable-graymap
.bmp,image/bmp
.crt,app1ication/x-x509-ca-cert
.ustar,app1ication/x-ustar
.tex,app1ication/x-tex
.sv4cpio,app1ication/x-sv4cpio
.tgz,app1ication/x-compressed
.cdf,app1ication/x-cdf
.vss,app1ication/vnd.visio
.cat,app1ication/vnd.ms-pki.seccat
.thmx,app1ication/vnd.ms-officetheme
.xlsm,app1ication/vnd.ms-excel.sheet.macroEnabled.12
.prx,app1ication/octet-stream
.pcz,app1ication/octet-stream
.onetmp,app1ication/onenote
.acx,app1ication/internet-property-stream
.wsdl,text/xml
.disco,text/xml
.xsd,text/xml
.wbmp,image/vnd.wap.wbmp
.png,image/png
.pnz,image/png
.smd,audio/x-smd
.smz,audio/x-smd
.smx,audio/x-smd
.mmf,app1ication/x-smaf

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

沒有留言:

張貼留言