Passer au contenu principal

Install docunil8

Mise en place des services ftpdoc, davdoc et webdoc de docunil

Table des matières

Configuration de la machine. 1

Machine. 1

Ajout du role de serveur web. 2

Install du FrameWork .Net 3.5 sp1. 2

Firewall interne. 2

Installation de SQL 2005 Standard Edition. 2

Utilisateur filemanlogin. 2

Création de la base FILEMAN. 3

Copie des tables existantes 5

Configuration IIS 7. 5

Installation de FTP pour IIs7. 5

Installation de Webdav pour IIS 7. 5

User webiis7. 5

Importation du certificat 5

Centraliser la configuration du serveur web. 6

IIS7: ajout des applications pool davdoc8 et webdoc8. 6

IIS7: ajout du site davdoc8. 6

Site davdoc8. 6

Site davdoc8 (http -> https) 8

IIS7: ajout du site webdoc8 – échec on ne le met pas en route. 8

Dossier de l'application Fileman. 8

Site webdoc8. 10

Site webdoc8 (http -> https) 10

IIS7: ajout du site ftpdoc8. 10

Site ftpdoc8. 10

IIS7: ajout du site webdoc8 avec HTTPCommander (sept 2010) 11

IIS7: ajout du site webdoc8 avec HTTPCommander (sept 2010) 12

HTTPCommander: modification des sources 12

Documentation IIS7: fichiers de configuration. 13

Activer les Custom Properties (06.03.2013) 14

Enabling Custom Properties Using IIS Manager 14

Nouvel essai d’install de fileman sur win2008 (mars 2013) 16

Running classic ASP on IIS 7 16

 

Configuration de la machine

Machine

Machine virtuelle VmWare:

Nom:

docunil8.unil.ch, davdoc8.unil.ch: 130.223.27.147

webdoc8.unil.ch :                   130.223.27.179

OS:

Windows Server 2008

Ajout du role de serveur web

Dans "Initial Configuration Tasks"

          Cliquer sur "Add roles"

          Sélectionner "Web Server (IIS)

                    Add Required Features

          Next

          Sélectionner tous les "Role Services"

                    Chaque fois accepter " Add Required Features "

Install du FrameWork .Net 3.5 sp1

On le télécharge depuis le site de microsoft et installe

Firewall interne

Il n'est pas actif.

Installation de SQL 2005 Standard Edition

Prendre SQL 2005 Standard Edition sur MSDNAA.

 

Installation:

Server components, tools, Books Online, and samples

Components to Install: tout selectionner

Sélectionner: Default instance

Service Account:      User a domain user account: AD\gesu

                              Start Services at the end of setup: sélectionner uniquement SQL Server

Authentication Mode: Windows Authentication Mode

Collation Sttings: French, Accent-sensitive

 

Installer SQL 2005 SP3

 

Dans les Services, démarre et mettre en automatique les services suivanzs:

          SQL Server Agent

          SQL Analysis Services

 

Démarrer SQL Server Surface Area Configuration tool

          Add New Administrator

                    SQL Server 2005 User Provisioning Tool

Donner tous les droits à Ad\gesu

Utilisateur filemanlogin

On rechange le mode d'authentification du SQL Server et on met "SQL Server and Windows Authetication mode":

To change security authentication mode

1. In SQL Server Management Studio Object Explorer, right-click the server, and then click Properties.

2. On the Security page, under Server authentication, select the new server authentication mode, and then click OK.

3. In the SQL Server Management Studio dialog box, click OK, to acknowledge the need to restart SQL Server.

 

On crée l'utilisateur "filemanlogin":

SQL Server Management Studio

Item Security

Bouton droit sur Logins -> New Login

SQL Server authentication

Login name: filemanlogin

Password: c……..8

De-sélectionner "Enforce password policy"

Création de la base FILEMAN

On crée la base FILEMAN:

SQL Server Management Studio

Bouton droit sur Databases -> New Database

Database Name: FILEMAN

Owner: filemanlogin

 

On créer les tables nécessaires pour Fileman:

SQL Server Management Studio (comme user fileman)

 

Avec le bouton "NewQuery", on exécute successivement les trois commande suivantes:

      Use [FILEMAN]

      GO

      CREATE TABLE [dbo].[Login] (

                [ID] [int] IDENTITY (1, 1) NOT NULL ,

                [User] [nvarchar] (250) NOT NULL ,

                [Pass] [nvarchar] (50) NULL ,

                [GroupID] [smallint] NOT NULL DEFAULT (2),

                [CrDate] [smalldatetime] NULL DEFAULT (GetDate()),

                [Info] [nvarchar] (255) NULL ,

                [UserRootFolder] [nvarchar] (255) NULL ,

                [IsDisabled] [bit] NULL DEFAULT (0),

                [LanguageFile] [nvarchar] (50) NULL DEFAULT ('French.dat'),

                [ItemsPerPage] [smallint] NULL DEFAULT (26),

                [SortBy] [nvarchar] (255) NULL DEFAULT ('type'),

                [ShowItems] [nvarchar] (255) NULL DEFAULT ('name, type, size, moddate, ') ,

                [History] [ntext] NULL ,

                [NumLogins] [int] NULL DEFAULT (0) ,

                [LastTime] [smalldatetime] NULL ,

                [LastIP] [nvarchar] (50) NULL ,

                [LastDir] [nvarchar] (255) NULL ,

                [LastPassChange] [smalldatetime] NULL ,

                [Email] [nvarchar] (255) NULL ,

                [TotalBandwidth] [int] NULL DEFAULT (0) ,

                [BandwidthThisMonth] [int] NULL DEFAULT (0) ,

                [BandwidthLastReset] [smalldatetime] NULL ,

                [AccountExpires] [smalldatetime] NULL ,

                [UploadNotification] [bit] NULL DEFAULT (0),

                [IsGroupAdmin] [bit] NULL DEFAULT (0) ,

      ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

      GO

 

 

 

      Use [FILEMAN]

      GO

      CREATE TABLE [dbo].[Groups] (

                [GroupID] [int] IDENTITY (1, 1) NOT NULL ,

                [GroupName] [nvarchar] (50) NOT NULL ,

                [Description] [nvarchar] (255) NULL ,

                [IsAdmin] [bit] NOT NULL DEFAULT (0) ,

                [IsGroupDisabled] [bit] NOT NULL DEFAULT (0) ,

                [SettingsMask] [nvarchar] (100) NOT NULL DEFAULT ('11111111111111111111111111101111111001111111111111111111111111111111111111') ,

                [RootFolder] [nvarchar] (255) NULL DEFAULT ('c:\temp\%user%') ,

                [MaxRootFolderSize] [int] NULL DEFAULT ( 5242880) ,

                [ForbiddenList] [ntext] NULL ,

                [MinPassLength] [tinyint] NULL DEFAULT (6) ,

                [DefaultFolderStructure] [nvarchar] (255) NULL ,

                [NumUploadFields] [tinyint] NULL DEFAULT (6) ,

                [MaxPassAge] [smallint] NULL DEFAULT (0) ,

                [LoginMsg] [nvarchar] (255) NULL ,

                [GroupCreated] [smalldatetime] NULL DEFAULT (GetDate()) ,

                [CustomButtons] [ntext] NULL ,

                [StartPage] [nvarchar] (255) NULL ,

                [MaxBandwidth] [int] NULL DEFAULT (0) ,

                [AllowMapDrives] [bit] NOT NULL DEFAULT (0)

      ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

      GO

    

 

 

      Use [FILEMAN]

      GO

      CREATE TABLE [dbo].[FMLog] (

                [Date] [smalldatetime] NULL DEFAULT (GetDate()),

                [IP] [nvarchar] (50) NULL ,

                [User] [nvarchar] (255) NULL ,

                [Description] [ntext] NULL ,

                [LastError] [nvarchar] (255) NULL

      ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

      GO

 

Attention: ci-dessus on a mis

 

                [ItemsPerPage] [smallint] NULL DEFAULT (26),

 

   à la place de

 

                [ItemsPerPage] [smallint] NULL DEFAULT (25),

 

   pour que les 26 lettres de l'alphabète soit affichée dans les listes

 

 

 

Attention: ci-dessus on a mis

 

                [LanguageFile] [nvarchar] (50) NULL DEFAULT ('French.dat'),

 

   à la place de

 

                [LanguageFile] [nvarchar] (50) NULL DEFAULT ('English.dat'),

 

Attention: ci-dessus on a mis

 

                [ShowItems] [nvarchar] (255) NULL DEFAULT ('name, type, size, moddate, ') ,

 

   à la place de

 

                [ShowItems] [nvarchar] (255) NULL DEFAULT ('name, type, size, attribs, moddate, ') ,

 

    pour les colonnes affichées par défaut dans la liste des fichiers

 

Copie des tables existantes

 

Pour copier les tables de docunil2k:

Se connecter sur docunil2k

Démarrer "Enterprise Manager" de "Microsoft Sql Server

Bouton droitsur la bas FILEMAN -> All Tasks -> Export Data

          Data source

                    Microsoft OLE Provider for SQL Server

                    Server: (local)

                    Use Windows Authentication

                    Database: FILEMAN

          Choose a destination

                    Microsoft OLE Provider for SQL Server

                    Server: DOCUNIL8

                    Use SQL Server Authentication

                    Username: filemanlogin

                    Password: c……..8

                    Database: FILEMAN

          Copy table(s) and view(s) from the source databases

          Select source Tables

                    Sélection les 3 tables de FILEMAN

          Run immediatly

 

Après, il faut fermer l'acceés réseau sur docunil8

Configuration IIS 7

Installation de FTP pour IIs7

Désinstaller FTP 6: dans les Roles (Server Manager), il faut "Remove Role Services" pour "FTP Publishing Service" et "IIS 6 Management Compatibility".

Prendre FTP 7.5 pour IIS7 x86 (ftp7_x86intran_75.msi) sur le site de microsoft et procéder à l'installation.

Installation de Webdav pour IIS 7

Prendre "Microsoft WebDAV 7.5 for IIS 7.0 (x86)" (webdav_x86_75.msi) sur le site de microsoft et procéder à l'installation.

 

Installation de "Update for WebDAV 7.5 for IIS 7.0 (KB976526) (x86)". On prend  webdav_x86_kb976526.msp est on l'exécute.

User webiis7

On définit dans gestu un utilisateurs que l'on va utiliser sur le serveur IIS7.

Username:  webiis7

 

Importation du certificat

Démarrer IIS Manager

Item DOCUNIL8

          Item "Server certificates"

                    Import: fichier webdoc.pfx

 

Centraliser la configuration du serveur web

Démarrer IIS Manager

Item DOCUNIL8

          Item Feature Delegation

                    Mettre tout à "Read Only" si possible (ou Not Delegated)

 

On laisse .Net Roles et .Net Users à "Configuration Read/Write".

 

Avec cela tous les paramètres de configuration seront dans

C:\Windows\System32\inetsrv\config\applicationHost.config

 

IIS7: ajout des applications pool davdoc8 et webdoc8

Démarrer IIS Manager

Item DOCUNIL8

          Item Application Pools

                    Dans la partie centrale de la fenêtre

                              Bouton droit de la souris

                                        Add Application Pool

                                                   Name: webdoc8

                                                             .Net Framework: V2.0

                                                             Managed pipeline mode: Classic

                                                             (ces deux paramètres n'ont pas d'influence

                                                             sur la performance de fileman)

                    Dans la partie centrale de la fenêtre sur l'application pool "webdoc8"

                              Bouton droit de la souris

                                        Advanced Settings

                                                   Identity: ad\webiis7 (introduction du password)

 

Item DOCUNIL8

          Item Application Pools

                    Dans la partie centrale de la fenêtre

                              Bouton droit de la souris

                                        Add Application Pool

                                                   Name: davdoc8 (autre options par défaut)

                    Dans la partie centrale de la fenêtre sur l'application pool "davdoc8"

                              Bouton droit de la souris

                                        Advanced Settings

                                                   Identity: ad\webiis7 (introduction du password)

 

IIS7: ajout du site davdoc8

Site davdoc8

Démarrer IIS Manager

Item Sites (bouton droit de la souris)

          Add Web Site

                    Site Name: davdoc8

                    Application Pool: davdoc8

                    Physical path: \\docunil\docs

                    Connect As: Application user (pass-through authentication)

                    Binding: https, 130.223.27.147, 443

                    SSL certificate:webdoc.unil.ch

 

Item davdoc8

          Area IIS: double-clic sur Authentication

                    Disable toutes les méthodes d'authentification sauf

                    Basic Authentication: enable

                    Basic Authentication: bouton droit de la souris "Edit"

                              Default domain: ad.unil.ch

                              Realm: davdoc.unil.ch

 

          Area IIS: double-clic sur Authorization Rules

Dans la partie centrale de la fenêtre

          Retirer toutes les rules existantes

                              Bouton droit de la souris

                                        Add Allow Rule

                                                   Specified roles or user groups: Authenticated Users

 

          Area IIS: double-clic sur Directory Browsing

                    Enable

 

          Area IIS: double-clic sur WebDAV Authoring Rules

Enable WebDAV

                    Add Authoring Rule:

                              Allow access to: All content

                              Allow access to this content to: Authenticated Users

                              Permissions: Read, Source, Write

WebDAV settings: Changer Require SSL access: true

          Area IIS: double-clic sur Output Caching

                    Edit Feature Settings:

                              Dé-activer "Enable cache" et "Enable kernel cache"

 

          Area IIS: double-clic sur WebDAV Authoring Rules

                    Cliquer sur WebDAV

                              Allow Property Queries with infinite Depth: true

 

Changer le fichier inetsrv/config/applicationHost.config, ajouter maxAllowedContentLength:

<location path="davdoc8">

        <system.webServer>

            <security>

…

                <requestFiltering>

…

                        <requestLimits maxAllowedContentLength="157286400"/>

                </requestFiltering>

            </security>

 

J’ai ajouté deux extensions .sav et .sps dans les mime-types (application/spss) des virtual direcvtory IIS 7.5 davdoc8 et davdoc8-http-https, comme ça les gens ne reçoivent plus l’erreur 404 on essayant de télécharger les fichiers de sauvegarde pour l’application SPSS.

Autres mime type ajoutés:

.odt    application/vnd.oasis.opendocument.text

.odp    application/vnd.oasis.opendocument.presentation

.odb    application/vnd.oasis.opendocument.database

.r        application/R

.rdata application/R

.fp7    application/filemaker

.7z      application/x-7z-compressed

.m      text/x-matlab

.prop  application/octet-stream

.         application/octet-stream

 

Site davdoc8 (http -> https)

Démarrer IIS Manager

Stopper le site par défaut

Item Sites (bouton droit de la souris)

          Add Web Site

                    Site Name: davdoc8-http-https

                    Application Pool: davdoc8

                    Physical path: C:\inetpub\wwwroot

                    Binding: http, 130.223.27.147, 80

 

Item davdoc8-http-https

          Area IIS: double-clic sur HTTP Rdirect

                    Activer Redirect to this destination: https://davdoc8.unil.ch

 

J’ai ajouté deux extensions .sav et .sps dans les mime-types (application/spss) des virtual direcvtory IIS 7.5 docunil8 et docunil8-http-https, comme ça les gens ne reçoivent plus l’erreur 404 on essayant de télécharger les fichiers de sauvegarde pour l’application SPSS.

Ajout de 5 extensions (.ens, .enz, .enf, .os, .cap)avec le Mime Type "application/octet-stream".

 

Attention: la redirection http sur https ne fonctionne pas pour le protocole WebDAV.

 

Après la migration on a changer la redirection vers https://davdoc.unil.ch

IIS7: ajout du site webdoc8 – échec on ne le met pas en route

Dossier de l'application Fileman

On copie C:\fm depuis docunil2k sur docunil8.

 

Structure application fileman:

c:\fm

On la met sur le disque

Cela nous permet de cacher ce dossier aux utilisateurs.

Permissions NTFS:

- Full control pour le groupe AdminDocUnil@ad

- Full control pour le groupe Administrators

- Read & Execute, List Folder Contents et

   Read pour Domain Users

 

c:\fm\arbetur

Dossier où il y aura les scripts de Fileman accédés par les

          users en production

Permissions NTFS:

- même permissions que ci-dessus

 

c:\fm\test

Dossier où il y aura les scripts de Fileman pour les tests

Permissions NTFS:

- même permissions que ci-dessus

 

c:\fm\log

Dossier où il y aura les log de Fileman

Permissions NTFS:

- Full control pour le groupe AdminDocUnil@ad

- Full control pour le groupe Administrators

- Read & Execute, List Folder Contents et

                           Read pour Domain Users

 

créer le fichier vide c:\fm\log\fileman.log

      ajouter l'accès Write et écriture pour Domain Users

      au fichier c:\fm\log\fileman.log

 

c:\fm\database

Dossier où il y aura la base des utilisateurs (Access)

Permissions NTFS:

- Full control pour le groupe AdminDocUnil@ad

- Full control pour le groupe Administrators

                           de docunil2k

- Modify, Write, Read & Execute, List Folder

                           Contents et Read pour Domain Users

 

c:\fm\admin

Dossier où il y aura les script de Fileman pour l'admin de fm

Permissions NTFS:- Full control pour le groupe AdminDocUnil@ad

- Full control pour le groupe Administrators

                           de docunila

- Read & Execute, List Folder Contents et

                           Read à aroy@ad et gesu@ad

 

 c:\fm\src.6.3h

Dossier où il y a les source originale de la version 6.3h de Fileman

c:\fm\arbetur-original-6.3h

Dossier avec l'application Fileman originale Fileman

Permissions NTFS:

- Full control pour le groupe AdminDocUnil@ad

- Full control pour le groupe Administrators

                           de docunil2k

 

c:\fm\w32-Controls

Permissions NTFS:

- Full control pour le groupe AdminDocUnil@ad

- Full control pour le groupe Administrators

                           de docunila

- Read & Execute, List Folder Contents et

                           Read pour Domain Users

 

c:\fm\arbetur\global.asa

          Contient la configuration de fileman

 

On enregister le module FathUpload.dll (comme admin):

copy c:\fm\w32-Controls\FathUpload.dll c:\Windows\system32

regsvr32 c:\Windows\System32\FathUpload.dll

 

Site webdoc8

Démarrer IIS Manager

Item Sites (bouton droit de la souris)

          Add Web Site

                    Site Name: webdoc8

                    Application Pool: webdoc8

                    Physical path: C:\fm\arbetur

                    Connect As: Application user (pass-through authentication)

                    Binding: https, 130.223.27.179, 444

                    SSL certificate:webdoc.unil.ch

Item webdoc8

          Area IIS: double-clic sur Authentication

                    Disable toutes les méthodes d'authentification sauf

                    Basic Authentication: enable

                    Basic Authentication: bouton droit de la souris "Edit"

                              Default domain: ad.unil.ch

                              Realm: webdoc.unil.ch

 

          Area IIS: double-clic sur Authorization Rules

Dans la partie centrale de la fenêtre

          Retirer toutes les rules existantes

                              Bouton droit de la souris

                                        Add Allow Rule

                                                   Specified roles or user groups: Authenticated Users

 

Site webdoc8 (http -> https)

Démarrer IIS Manager

Stopper le site par défaut

Item Sites (bouton droit de la souris)

          Add Web Site

                    Site Name: webdoc8-http-https

                    Application Pool: on laisse le défaut

                    Physical path: C:\inetpub\wwwroot

                    Binding: http, 130.223.27.179, 80

 

Item webdoc8-http-https

          Area IIS: double-clic sur HTTP Redirect

                    Activer Redirect to this destination: https://webdoc8.unil.ch

 

IIS7: ajout du site ftpdoc8

Site ftpdoc8

Démarrer IIS Manager

Item Sites (bouton droit de la souris)

          Add FTP Site

                    FTP site name: ftpdoc8

                    Physical path: \\docunil\docs

                    IP addtress: 130.223.27.147

                    Port: 21

                    Allow SSL

                    Sélectionner le certificat Quovadis

Authentication: Basic (seulement)

          Default domain:ad.unil.ch

Allow Access: Specified roles or user groups

                    Authenticated Users

Permissions: Read, Write

 

La propriété "Pass-through authentication" est définie automatiquement.

 

Item ftpdoc8

          FTP Directory Browsing

                    Directory Listing Style: UNIX

                    Display the following information in directory listings : Activer « Virtual directories ».

 

IIS7: ajout du site webdoc8 avec HTTPCommander (sept 2010)

On commence par supprimer l'ancien site webdoc8.

On crée le dossier C:\InetPub\webdoc et on lui met les mêmes droits que C:\InetPub\wwwroot .

 

On crée le site webdoc8

Démarrer IIS Manager

          Bouton droit su Sites: Add Web Site

                    Site name: webdoc8

                    Physical path: C:\InetPub\webdoc

                    Type: https

                    Ip address: 130.223.27.179

                    SSL certificate: webdoc.unil.ch

 

Le 30.08.2010, téléchargement depuis le site http://www.element-it.com de HTTPCommanderAJS1.0Windows.zip, je renomme ce zip en HTTPCommanderAJS1.0Windows-20100830.zip

 

Le 15.09.2010, téléchargement depuis le site http://www.element-it.com de HTTPCommanderAJS1.0Windows.zip, je renomme ce zip en HTTPCommanderAJS1.0Windows-20100915.zip

 

Dans un premier temps, on utilise la version du 30.08.2010 appelée par moi version 1.

C'est à cette version que correspond les sources reçues.

 

La version du 15.09.2010 appelée par moi version 2.

Les sources reçues ne semble pas correspondre à cette version.

 

Dans le dossier C:\InetPub\webdoc, on déballe le .zip. Obtient le dossier HTCOMNET

 

On copie le contenu de HTCOMNET dans C:\InetPub\webdoc

 

Dans IIS Manager:

          Clic gauche sur webdoc8

                    Double clic sur Authentication

                              Disable Anonymous Authentication

                              Enable Basic Authentication

                                        Edit Basic Authentication:

Default domain: ad.unil.ch

Realm: WebDoc

                              Toutes les autres "Authetication" sont disable

 

Edition du fichier C:\InetPub\webdoc\Web.config

          On ajoute aroy comme administrateurs:

                    <add key="administrators" value="aroy,Administrator"/>

          On ajoute la clé de licence:

                    <add key="licenseKey" value="B01DF72D1EEED3C38B90F6D8277DFD59A2EB2E4800273903F117070164338E9C"/>

 

Item DOCUNIL8

          Item Feature Delegation

                    Custom Delegation

                              Mettre tout à "Read/write" si possible pour le serveur webdoc8

(pour que le fichier Web.config de HT soit pris en compte)

 

Donner tous les droits à ad\aroy sur le dossier C:\InetPub\webdoc\Data

Se connecter comme aroy sur https://webdoc8.unil.ch

          Clic Administration

                    ON enlève toutes les définitions de dossier

                    On ajoute

                              Folder name: home

                                        Phyical path: \\docunil.unil.ch\docs\users\%USERNAMEUNIL%

                                        Add user: regex:.*

                                        On laisse les permissions par défaut

                              Folder name: users

                                        Phyical path: \\docunil.unil.ch\docs\users

                                        Add user: regex:.*

                                        On laisse les permissions par défaut

                              Folder name: groups

                                        Phyical path: \\docunil.unil.ch\docs1\groups

                                        Add user: regex:.*

                                        On laisse les permissions par défaut

 

IIS7: ajout du site webdoc8 avec HTTPCommander (sept 2010)

 

Dans C:\InetPub\webdocdev\HT, je crée

·       C:\InetPub\webdoc\HT\HT1orig

o   Qui est la version 1 originale

·       C:\InetPub\webdocdev\HT\HT1mod

o   Qui est la version 1 modifiée

·       C:\InetPub\webdocdev\HT\HTF2orig

o   Qui est la version 2 originale, authentification par formulaire

 

HTTPCommander: modification des sources

Je charge les sources reçues et je fais les modifications suivantes:

 

Modification pour avoir le dossier home de chaque utilisateur:

·       Classe Utils du projet HttpCommander, méthode GetResultantPath, ajouter

if (resultantPath.Contains("%USERNAME1%"))

{

resultantPath = resultantPath.Replace("%USERNAME1%", Utils.CurrentUserName.Substring(0, 1));

}

if (resultantPath.Contains("%USERNAME12%"))

{

resultantPath = resultantPath.Replace("%USERNAME12%", Utils.CurrentUserName.Substring(0, 2));

}

 

 

Modification pour avoir le tri alphabétique croissant OK dans la partie droite

·       Dans le fichier Comparer.cs , ajouter la classe

    public class NameComparerAsc : IComparer<FileSystemInfo>

    {

 

        #region IComparer<FileInfo> Members

 

        public int Compare(FileSystemInfo x, FileSystemInfo y)

        {

            return x.Name.CompareTo(y.Name);

        }

 

        #endregion

    }

·       Dans le fichier GridHandler.ashx.cs remplacer

            JArray data = new JArray();

 

            IComparer<FileSystemInfo> comparer = null;

          Par

            JArray data = new JArray();

            

            IComparer<FileSystemInfo> comparer = new NameComparerAsc();                         

 

Modification pour avoir le tri alphabétique croissant OK dans la partie gauche (Folders)

·       Dans le fichier TreeHandler.ashx.cs remplacer

if (p.ListFolders)

{

foreach (DirectoryInfo di in diRoot.GetDirectories())

{

data.Add(new JObject(

Par

 if (p.ListFolders)

{

IComparer<FileSystemInfo> comparer = new NameComparerAsc();

DirectoryInfo[] dirs = diRoot.GetDirectories();

Array.Sort<FileSystemInfo>(dirs, comparer);

 

foreach (DirectoryInfo di in dirs)

{

data.Add(new JObject(

 

 

 

·       On regénère la solution et on remplace HttpCommander.dl dans C:\InetPub\webdoc\bin. On fait déjà le test dans HT1mod du serveur webdocdev

 

Documentation IIS7: fichiers de configuration

Répertoire principal de configuration (en particulier le fichier applicationHost.config):

C:\Windows\System32\inetsrv\config

 

Répertoire de configuration de .Net (en particulier le fichier machine.config):

C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG

 

Dans chaque "web content directories", il peut y avoir aussi  un fichier web.config pouvant contenir des structures de configuration IIS ou .Net applicable au niveau où il se trouve et en dessous.

 

In terms of inheritance hierarchy, the root file is machine.config, then web.config at the same directory (referred to as root web.config), then applicationHost.config, then the optional web.config files along the namespace.

 

In some cases it is useful to have the web.config file include some other .config file. This can be done by using the configSource attribute. Currently it is limited to point to relative physical paths in sub-directories, for security reasons (i.e. file A can only include file B if B is in physical subdirectory of A). Here's a basic example that shows how to use configSource:

<!-- in inetsrv\applicationHost.config -->

<configuration>

  <system.webServer>

    <!-- mimemaps moved by the customer to a different file -->

    <!-- so that this file is shorter and more readable -->

    <staticContent configSource="staticContent.config"/>

…

 

Activer les Custom Properties (06.03.2013)

Enabling Custom Properties Using IIS Manager

Voir http://www.iis.net/learn/publish/using-webdav/how-to-use-custom-properties-with-webdav

  1. In IIS Manager, in the Connections pane, expand the Sites node in the tree, then click the Default Web Site.
  2. As shown in the image below, double-click the WebDAV Authoring Rules feature.
    http://i3.iis.net/media/7185953/how-to-use-custom-properties-with-webdav-351-image001.png?cdn_id=2013-02-18-002
  3. When the WebDAV Authoring Rules page is displayed, click the WebDAV Settings task in the Actions pane.
    http://i2.iis.net/media/7185947/how-to-use-custom-properties-with-webdav-351-image003.png?cdn_id=2013-02-18-002
  4. When the WebDAV Settings page is displayed, specify the following options:
  • Click on the [...] button to launch the Namespace Collection Editor
  • Click on Add and then choose "webdav_simple_prop" from the drop-down list
  • Specify '*' for the XmlNameSpace and then click on OK.
  • http://i3.iis.net/media/7185959/how-to-use-custom-properties-with-webdav-351-6.jpg?cdn_id=2013-02-18-002

    1. Once you have completed the above steps, click the Apply task in the Actions pane.

    Nouvel essai d’install de fileman sur win2008 (mars 2013)

    Voir : http://www.alexthissen.nl/blogs/main/archive/2008/02/18/running-classic-asp-on-iis-7.aspx

     

    Running classic ASP on IIS 7

    It's not really difficult to run classic ASP on Internet Information Server 7, but there are some bumps down the road. Here's a little help to get you started:

    First of all, check whether you have the Windows feature for ASP installed. Go to Programs and Features in Control Panel and click Turn Windows features on and off. Navigate down the tree of features and make sure ASP is checked.

    ASPWindowsFeature

    Next, go to Internet Information Server (IIS) Manager (run inetmgr from the Start Search box to get there fast) and create a new application pool for ASP.

    ASPApplicationPool

    This should be a "No managed code" and "Classic" app pool if you do not intend to mix and match the .NET Framework and ASP.NET in the same pool. The Integrated pipeline would not make sense, because it only applies to integrating HTTP modules that are either native or managed .NET implementations.

    I had some difficulties setting the identity of the application pool to the new built-in IUSR account. This account replaces the former computer account called IUSR_machinename. Same goes for the IIS_WPG group for application pools that is replaced by the builtin group IIS_IUSRS. Read more about it here. Under the Advanced Settings of the "ASP" application pool you will find the Identity property under Process Model. The default value is NetworkService. I found no way to set this to the BUILTIN\IUSR by choosing SpecificUser and setting BUILTIN\USR under Identity SpecificUser Credentials. I guess that you shouldn't be running ASP sites under IUSR anymore. It is used for anonymous users automatically.

    ASPIUSRIdentity

    To easy the administration effort, there is a way to turn off the IUSR account without turning off anonymous identification:

    appcmd set config -section:anonymousAuthentication -userName:"" --password

    And lastly, create your new web application. For example, copy the ASP site folder under C:\inetpub\wwwroot, where the default installation location of "Default Web Site" of IIS. Convert the folder (or virtual directory) to an application and choose "ASP" as the application pool. Check whether the .asp extension is mapped to the correct handler and whether it is enabled. Also make sure that the identity of your application pool has sufficient rights (and no more than that) to access the files in the web site's folder.

    IISASPEnabled

    One final note: whenever there is a error in the ASP website, and you get this error message: "An error occurred on the server when processing the URL. Please contact the system administrator",

    ASPErrorMessage

    it's probably because by default no error messages are sent to the client in IIS7. Change the setting "Send Errors To Browser" of your web application under the ASP icon to reveal such errors.

    ASPReturnErrorMessages

    Side note: if you get the nice Internet Explorer 500 error message and no particular details at all, remember to uncheck the "Show friendly HTTP error messages" checkbox under Internet Options, Advanced of IE.

    Some more tips for classic ASP developers on IIS7 can be found on Bills' IIS blog.