Announcement

Collapse
No announcement yet.

Apache und ASP.NET

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Apache und ASP.NET

    Hallo,
    Ich habe jetzt für Apache 2.2.11 die 2006er Version von mod_aspdotnet installiert und den im Folgenden genannten Code in die httpd.conf eingefügt.
    Code:
    LoadModule aspdotnet_module modules/mod_aspdotnet.so
    
    # Use the asp.net handler for all common ASP.NET file types
    AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj                    licx rem resources resx soap vb vbproj vsdisco webinfo
    
    <IfModule mod_aspdotnet.cpp>
    
        # Mount the IBuySpy C# example application
        AspNetMount /ProjectsASP "C:/WebServer/ProjectsASP"
    
        # Map all requests for /StoreCSVS to the IBuySpy application files
        Alias /ProjectsASP "C:/WebServer/ProjectsASP"
    
        # Allow asp.net scripts to be executed in the IBuySpy example
        <Directory "C:/WebServer/ProjectsASP">
            Options FollowSymlinks ExecCGI
            Order allow,deny
            Allow from all
            DirectoryIndex Default.htm Default.aspx
        </Directory>
    
        # For all virtual ASP.NET webs, we need the aspnet_client files
        # to serve the client-side helper scripts.
        AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*)           "C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"
        <Directory           "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">
            Options FollowSymlinks
            Order allow,deny
            Allow from all
        </Directory>
    
    </IfModule>
    Wenn ich jetzt eine aspx-Seite öffnen möchte, erscheint folgender Fehler:

    Serverfehler in der Anwendung /ProjectsASP.
    --------------------------------------------------------------------------------

    Konfigurationsfehler
    Beschreibung: Fehler beim Verarbeiten einer Konfigurationsdatei, die für diese Anforderung erforderlich ist. Überprüfen Sie die unten angegebenen Fehlerinformationen, und ändern Sie die Konfigurationsdatei entsprechend.

    Parserfehlermeldung: Einen Abschnitt, der als allowDefinition='MachineToApplication' registriert ist, über die Programmebene hinaus zu verwenden verursacht einen Fehler. Dieser Fehler kann von einem virtuellen Verzeichnis verursacht werden, das nicht als Anwendung in IIS konfiguriert ist.

    Quellfehler:


    Zeile 44: ASP.NET eingehende Benutzer identifiziert.
    Zeile 45: -->
    Zeile 46: <authentication mode="Windows" />
    Zeile 47: <!--
    Zeile 48: Der Abschnitt <customErrors> ermöglicht die Konfiguration


    Quelldatei: C:\WebServer\ProjectsASP\webapplication1\webapplic ation1\web.config Zeile: 46


    --------------------------------------------------------------------------------
    Versionsinformationen: Microsoft .NET Framework-Version:2.0.50727.3521; ASP.NET-Version:2.0.50727.3521
    Weiß jemand, woran das liegt bzw. wie die Lösung für das Problem ist.
Working...
X