Solved: Cannot download File from IIS6 FTP

Today we a ticket which was escalated by the second level support to the engineering. A customer could not download, remove or rename the file via FTP. The Hosting is running on a Windows Server 2003 R2 with IIS6. After checking the file on the filesystem I saw that the filename had a space in before.

Normalfilename:

“filename.html”

Wrongfilename:

” filename.html”

You cannot really name a file like that with a windows machine. But Linux and Unix systems like Mac OS X allow this.

After renaming the file to a normal Windows filename, the customer you download the file again.

Btw you can simple rename the file with powershell

Rename-Item " filename.html" "newfilename.html"

Genotec released Shared Hosting with .NET Framework 4

Last Monday we added support for the .NET Framework 4 to our Windows Shared Hosting Server at Genotec. Today the official Press release was published.

We also added support for:

  • .NET Framework 4
  • ASP.NET MVC 2.0
  • Silverlight 4
  • New Versions of Persits AspMail, AspPDF, AspJPEG

Genotec: .Net Freamwork 4 for Webhosting (German)

Der in Allschwil/Basel ansässige Internet Service Provider Genotec AG lanciert mit .NET Framework 4 die neueste Version des Microsoft Entwickler-Frameworks.

Microsoft .NetMit dem Ziel stets neue Features und aktuelle Produkte zu integrieren, hat Genotec das .NET Framework 4 von Microsoft lanciert. Ab sofort steht allen Windows Webhosting-Kunden der Genotec dieses Angebot zur Verfügung.

«Die neue Version von .NET lässt Projekte im Windows-Umfeld noch einfacher und mit vielen neuen Features erstellen. Unsere Kunden werden grosse Freude daran haben.» so Thomas Betz, Entwickler bei Genotec. Die neue Version mit vielen Features überzeugt auf der ganzen Linie. Zu den wichtigsten Neuerungen zählen unter anderem Codeverträge, eine DLR (Dynamic Language Runtime), neue Diagnose und Leistungstools sowie eine verbesserte automatische Speicherbereinigung. Die komplette Abwärtskompatibilität rundet den sehr guten Eindruck des .NET Framework 4 ab.

Verfügbar ist das .NET 4.0 bereits ab dem kleinsten Angebot für CHF 9.90 pro Monat. Mit dem Shared Hosting Entry erhalten Kunden ein Webhosting mit bis zu 10 Domains, komplettes Mailhosting inkl. Webmail, tägliches Backup, Statistiken sowie der kompletten Integration ins Hosting Control Center von Genotec und weiteren Features.

Über Genotec AG:
Der Schweizer Internet Service Provider Genotec AG wurde 2001 gegründet. Das Unternehmen beschäftigt 36 Mitarbeitende und betreut in den eigenen Rechenzentren in Zürich, Basel, Bern und Allschwil über 50’000 Domain- und rund 500 Serverkunden. Genotec ist ein BAKOM-registrierter Provider und als «Microsoft Gold Certified Partner» zertifiziert. Genotec wurde von der simsa mit dem Gütesiegel «Swiss Quality Hosting» ausgezeichnet und ist providerliste.ch geprüft.

Seit 2008 ist Genotec neu bei Computerworld in den Top-500 der stärksten IT-Firmen der Schweiz gelistet.

Weitere Informationen zur Genotec: www.genotec.ch

Pascal Leu, Product Manager
Genotec AG
Binningerstrasse 95
CH – 4123 Allschwil
Tel. +41 (0)848 321 123

E-Mail: pressemitteilungen@genotec.ch

    HowTo: Install Roles and Features Windows Server 2008 R2 Core (Shell)

    This Guide should help you to install Roles and Features on Windows Server 2008 R2 per shell or on a Windows Server 2008 R2 Core Server.

    Under Windows Server 2008 you could install Roles and Features with the command OCSETUP. Since we use Windows Server 2008 R2 Microsoft used the tool called DISM (Deployment Image Servicing and Management tool).

    For checking availible Server roles type:

    Dism /online /get-features /format:table

    To enable a Feature or a Role, in this case the DNS Server Role, you just type:

    Dism /online /enable-feature /featurename:DNS-Server-Core-Role

    Configuring IIS for Silverlight Applications

    silverlightYou can simply add Silverlight support to your IIS6 webserver running on Windows Server 2003.

    To enable IIS 6.0 in Windows Server 2003 or IIS7 in Windows Vista RTM with the appropriate MIME Types, add:

    • .xap     application/x-silverlight-app
    • .xaml    application/xaml+xml
    • .xbap    application/x-ms-xbap

    Adding MIME Types by a simple VB script:

    • Here is a VBS script you could run to enable each of these types:


    Const ADS_PROPERTY_UPDATE = 2
    '
    if WScript.Arguments.Count < 2 then
    WScript.Echo "Usage: " + WScript.ScriptName + " extension mimetype"
    WScript.Quit
    end if
    '
    'Get the mimemap object.
    Set MimeMapObj = GetObject("IIS://LocalHost/MimeMap")
    '
    'Get the mappings from the MimeMap property.
    aMimeMap = MimeMapObj.GetEx("MimeMap")
    '
    ' Add a new mapping.
    i = UBound(aMimeMap) + 1
    Redim Preserve aMimeMap(i)
    Set aMimeMap(i) = CreateObject("MimeMap")
    aMimeMap(i).Extension = WScript.Arguments(0)
    aMimeMap(i).MimeType = WScript.Arguments(1)
    MimeMapObj.PutEx ADS_PROPERTY_UPDATE, "MimeMap", aMimeMap
    MimeMapObj.SetInfo
    '
    WScript.Echo "MimeMap successfully added: "
    WScript.Echo " Extension: " + WScript.Arguments(0)
    WScript.Echo " Type: " + WScript.Arguments(1)

    • If you copy and paste the code above into a VBS file and save it as ADDMIMETYPE.VBS the syntax to add each type would be:

    ADDMIMETYPE.VBS .xap application/x-silverlight-app ADDMIMETYPE.VBS .xaml application/xaml+xmlADDMIMETYPE.VBS .xbap application/x-ms-xbap

    or you could add it very simple over the IIS Manager.

    How can I check the password of the IUSR and IWAM local accounts on a machine?

    After a late night session doing some work on a new webserver, I found a really important blog post (windowsitpro.com) for IIS administrators. The blog post shows how you get the password of the IUSR and the IWAM local accounts form the metabase.

    Normally the IUSR and IWAM password are set automatically and unknown. But if you import the metabase on another you have to change the passwords of these two users (IUSR_<local machine name> and IWAM_<local machine name>).

    • First you have to update the adsutil.vbs script (localdiskdrive:\Inetpub\AdminScripts). You have to replace all the “”IsSecureProperty = True” with “”IsSecureProperty = False” otherwise the command would not show the real password.
    • Now you can run the following commands to get the password of these users

    Get the IUSR password:

    C:\Inetpub\AdminScripts>cscript adsutil.vbs get w3svc/anonymoususerpass

    return:

    anonymoususerpass : (STRING) "password"

    Get the IWAM password:

    C:\Inetpub\AdminScripts>cscript adsutil.vbs get w3svc/wamuserpass

    return:

    wamuserpass : (STRING) "password"

    • you also can set the passwords for those accounts in the metabase

    Set the IUSR password:

    C:\Inetpub\AdminScripts>cscript adsutil.vbs set w3svc/anonymoususerpass "password"

    Set the IWAM password:

    C:\Inetpub\AdminScripts>cscript adsutil.vbs set w3svc/wamuserpass "password"

    • after you change the passwords, you should sync the password from IIS with Microsoft Transaction Server (MTS) and component services with the following command

    sync MTS:

    C:\Inetpub\AdminScripts>cscript.exe synciwam.vbs -v

    Thanks to John Savill

    Problem with NTLM Authentication with IE8 on Windows Server 2008

    After I installed a Sharepoint (WSS 3.0) test environment and created a new Site Collection, I tried to logon on to a new Site Collection. But the login didnt work. After I spend some hours checking the whole configuration of IIS7 and AD on a Windows Server 2008 I finally found the problem and the solution here:

    http://ppalakollu.blogspot.com/2009/04/ie-8-ntlm-authentication-on-windows.html

    If you are using host headers to resolve the websites, then you might have seen the following issue with NTLM authenticated sites on IE 8. When you access the websites on a machine other than the one where it is hosted, you will be able to get to the sites.
    Once you RDP onto the server and try to connect to the website, it will prompt for your windows credentials and will get an access denied message. This problem occurs because Windows includes a loopback check security feature that helps prevent reflection attacks on your computer(Probably some kind of security change has been made in IE8 related to this feature). Therefore, authentication fails if the FQDN or the custom host header that you use does not match the local computer name.

    Resolution: Disable the loopback check

    • Click Start, click Run, type regedit, and then click OK.
    • In Registry Editor, locate and then click the following registry key:
      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
    • Right-click Lsa, point to New, and then click DWORD Value.
    • Type DisableLoopbackCheck, and then press ENTER.
    • Right-click DisableLoopbackCheck, and then click Modify.
    • In the Value data box, type 1, and then click OK.
  • Quit Registry Editor, and then restart your computer.
  • I did not try the registry modification, I just installed Mozilla Firefox and it worked without any problems.I really hate to install software like these on a server, but I also hate to do registry “hacks” as well.