使用Apache+Asp.net+Php调用ASP.net页面出错!
下载了安装了mod_aspdotnet.so,Apache的.net模块,在httpd.conf文件中添加了如下内容:
#asp.net
LoadModuleaspdotnet_module"modules/mod_aspdotnet.so"
AddHandlerasp.netasaxascxashxasmxaspxaxdconfigcscsprojlicxremresourcesresxsoapvbvbprojvsdiscowebinfo
[I]
#MounttheASP.NETexampleapplication
AspNetMount/active"D:/MYOA/webroot/general/active"
#Mapallrequestsfor/activetotheapplicationfiles
Alias/active"D:/MYOA/webroot/general/active"
#Allowasp.netscriptstobeexecutedintheactiveexample
OptionsFollowSymlinksExecCGI
Orderallow,deny
Allowfromall
DirectoryIndexDefault.htmDefault.aspx
#ForallvirtualASP.NETwebs,weneedtheaspnet_clientfiles
#toservetheclient-sidehelperscripts.
AliasMatch/aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*)"C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"
OptionsFollowSymlinks
Orderallow,deny
Allowfromall
[/I]
我把Asp.net的.asx文件放在D:/MYOA/webroot/general/active文件夹下!
D:/MYOA/webroot/是apache的虚拟根目录:
调用时出错信息是:
InternalServerError
Theserverencounteredaninternalerrorormisconfigurationandwasunabletocompleteyourrequest.
Pleasecontacttheserveradministrator,[email protected],andanythingyoumighthavedonethatmayhavecausedtheerror.
Moreinformationaboutthiserrormaybeavailableintheservererrorlog.
--------------------------------------------------------------------------------
Apache/2.0.59(Win32)PHP/5.1.6Serverat192.168.0.84Port8080
查看Apache的日志文件内容是:
[ThuAug1614:35:532007][error][client192.168.0.84]mod_aspdotnet:NoAspNetMountURIforrequest:/general/active/check.aspx,referer:http://192.168.0.84:8080/general/table_index.php
[ThuAug1614:38:162007][error][client192.168.0.84]mod_aspdotnet:NoAspNetMountURIforrequest:/general/active/check.aspx,referer:http://192.168.0.84:8080/general/table_index.php
希望有人能帮帮忙,本人很急,谢谢!
分 -->
|