28 Eylül 2015 Pazartesi

webfontlar mime type ve web.config ayarları

.eot - application/vnd.ms-fontobject
.woff - application/font-woff
.ttf - application/x-font-truetype
.svg - image/svg+xml
.otf - application/x-font-opentype

IIS (Web.Config)
<system.webServer>
  ...
  <staticContent>
  ...
    <remove fileExtension=".eot" />
    <mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
    <remove fileExtension=".woff" />
    <mimeMap fileExtension=".woff" mimeType="application/font-woff" />
    <remove fileExtension=".ttf" />
    <mimeMap fileExtension=".ttf" mimeType="application/x-font-truetype" />
    <remove fileExtension=".svg" />
    <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
    <remove fileExtension=".otf" />
    <mimeMap fileExtension=".otf" mimeType="application/x-font-opentype" />
  ...
  </staticContent>
  ...
</system.webServer>


Apache (.htaccess)
    AddType application/vnd.ms-fontobject .eot
    AddType application/font-woff .woff
    AddType application/x-font-truetype .ttf
    AddType image/svg+xml .svg
    AddType application/x-font-opentype .otf
    
    # could use application/octet-stream for default binary file transfer
    #AddType application/octet-stream .otf .ttf 

12 Eylül 2015 Cumartesi

Windows 8, windows 10'da .Net Framework 3.5 sorunu çözümü

Microsoft kendi uygulamasını açmamak için elinden geleni yapmış,
araştırmalarım sonucunda aşağıdaki gibi yaparak .Net Framework 3.5 sürümünü yükleyebilirsiniz. 


Command prompt ta hemen hemen tüm Windows 8 kullanıcıları eminim % 60-65 olunca "the dism log file can be found at c:\windows\logs\DISM\dism.log" hatası almışlardır. Aşağıda bahsettiğim yöntemle .Net Framework 3.5 versiyonunun başarılı yüklenmesi sağlanmaktadır. 

Yöntem: 
1- Regedit.exe çalıştır.
2- HKEY_LOCAL_MACHINE\ SOFTWARE\ Policies\ Microsoft\ Windows\ WindowsUpdate\ AU  anahtarında  ‘UseWUServer’ DWORD değeri 0 olarak ayarla.
3- Yeniden başlat.
4- .Net Framework 3.5 online indir ve kur. 
Opsiyonel: 
5. Regedit.exe çalıştır.
6- HKEY_LOCAL_MACHINE\ SOFTWARE\ Policies\ Microsoft\ Windows\ WindowsUpdate\ AU  anahtarında  ‘UseWUServer’ DWORD değerini 1' olarak ayarla. 


Kaynak: Çözümpark