Category: IIS

Error: Unable to get the private bytes memory limit for the W3WP process

Error

==================
Event Type: Error
Event Source: ASP.NET 2.0.50727.0
Event Category: None
Event ID: 1093
Date: 13.01.2011
Time: 11:11:50
User: N/A
Computer: Server01

Description:

Unable to get the private bytes memory limit for the W3WP process. The ASP.NET cache will be unable to limit its memory use, which may lead to a process restart. Error: 0x80070005

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
==================

Environment

  • Windows Server 2003
  • IIS 6
  • .NET 2.0 and 1.1

Summary

This Error is caused by the a know issue with permissions of the IIS metabase. The metabse ACL’s do not include the IIS_WPG group on the W3SVC/AppPools part in the metabase.

Solution

  • Download metaacl.vbs
  • Run the following command:
    cscript metaacl.vbs IIS://Localhost/W3SVC/AppPools IIS_WPG RE

More Information



How to redirect sites to HTTPS in IIS 7.5

This little guide shows you how you can redirect http request to the https website using IIS Settings. You can do the same on other versions of IIS slightly different.

  1. First set “require SSL” under the SSL Settings from the Website
    SSL Settings
  2. Under the Error Page Settings edit the 403 Error Page
    Error Page Settings
  3. mark the Setting “Respond with a 302 redirect” and add the https URL
    Respond with a 302 redirect


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: [email protected]



    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

    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