Hello,
I am running an Apache web server and my httpd configuration file is
utilizing the aspdotnet_module in order to run an ASP.NET application.
Whenever I try and open my existing web project, I get the error
message:
"Unable to get the project file from the Web server. Unable to open
project 'WebApplication1'. The file path 'C:\Program Files\Apache
Group\Apache2\htdocs\WebApplication1' does not correspond to the URL
'http://localhost/WebApplication1'. The two need to map to the same
server location. HTTP Error 404: Not Found"
I have two VirtualHosts set in my httpd configuration file. Here is
the code involved for that:
LoadModule aspdotnet_module modules/mod_aspdotnet.so
AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj \
licx rem resources resx soap vb vbproj vsdisco webinfo
AliasMatch
"^/(?i)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>
<VirtualHost localhost>
AspNetMount / "C:/Program Files/Apache
Group/Apache2/htdocs/WebApplication1"
Alias / "C:/Program Files/Apache Group/Apache2/htdocs/WebApplication1/"
<Directory "C:/Program Files/Apache
Group/Apache2/htdocs/WebApplication1">
Options FollowSymlinks Indexes Includes ExecCGI
Order allow,deny
Allow from all
DirectoryIndex WebForm1.aspx
</Directory>
</VirtualHost>
<VirtualHost itsasecret.com>
AspNetMount / "C:/Program Files/Apache
Group/Apache2/htdocs/WebApplication1"
Alias / "C:/Program Files/Apache Group/Apache2/htdocs/WebApplication1/"
<Directory "C:/Program Files/Apache
Group/Apache2/htdocs/WebApplication1">
Options FollowSymlinks Indexes Includes ExecCGI
Order allow,deny
Allow from all
DirectoryIndex UnderConstruction.aspx
</Directory>
</VirtualHost>
---
If I comment out the localhost "ASPNetMount" information, it lets me
open up the Web Project, but I don't think I should have to do this
everytime I open up the Web Project.
Does anyone know how I can open my .NET web project successfully
without having to comment out code in my httpd configuration file?
Your assistance is appreciated.
Thank you,
Kevin Gravelle