在Apache WAMP服务器上安装asp.net会停止Apache服务

时间:2019-02-15 18:55:22

标签: asp.net apache wampserver

我正在尝试在WAMP中安装asp.net。我的WAMP版本是 3.1.7 ,而Apache版本是 2.4.37 。我还在以下路径中安装了 mod_aspdotnet-2.2.0.2006-setup-r2.ms

    C:\wamp64\bin\apache\apache2.4.37

并将以下行添加到httpd.conf文件中:

    LoadModule aspdotnet_module "C:/wamp64/bin/apache/apache2.4.37/modules/mod_aspdotnet.so"

   <IfModule mod_aspdotnet.cpp>
   # Mount the ASP.NET /ASP application
   AspNetMount /ASP "C:/wamp64/www/ASP"

   # Map all requests for /ASP to the application files
   Alias /ASP "C:/wamp64/www/ASP"

   # Allow asp.net scripts to be executed in the /ASP folder
   <Directory "C:/wamp64/www/ASP">
   # Set asp.net options
   Options Indexes FollowSymLinks Includes +ExecCGI
   # Set asp.net permissions
   Order allow,deny
   Allow from all
   # Set asp.net default index page to .aspx and .htm
   DirectoryIndex index.aspx index.htm
   </Directory>

    # Set 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>

现在,当我重新启动WAMP时,Apache服务停止。

我检查 C:/Windows/Microsoft.NET/Framework/v * / 路径,并且ASP.NETClientFiles文件夹不存在。我该如何解决这个问题?

0 个答案:

没有答案