Apache + ASP.net + PHP 调用ASP.net页面出错

[复制链接]
查看11 | 回复10 | 2021-1-27 07:05:34 | 显示全部楼层 |阅读模式
使用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
希望有人能帮帮忙,本人很急,谢谢!
分 -->
回复

使用道具 举报

千问 | 2021-1-27 07:05:34 | 显示全部楼层
没遇到过,帮顶下
回复

使用道具 举报

千问 | 2021-1-27 07:05:34 | 显示全部楼层
学习
回复

使用道具 举报

千问 | 2021-1-27 07:05:34 | 显示全部楼层
编程动力www.bcexe.com专业的编程开发类网站,网络编程,软件开发,网站开发,一切尽在这里!
回复

使用道具 举报

千问 | 2021-1-27 07:05:34 | 显示全部楼层
appache上跑.net,没试过...不过楼主的想法很厉害!!
回复

使用道具 举报

千问 | 2021-1-27 07:05:34 | 显示全部楼层
等待牛人来答.
回复

使用道具 举报

千问 | 2021-1-27 07:05:34 | 显示全部楼层
不明LZ在说什么
回复

使用道具 举报

千问 | 2021-1-27 07:05:34 | 显示全部楼层
楼主是不是先配置好后,后建的active?我也出现同样的情况但重启APACHE就好了不过出现乱码后来发现文件的编码有问题改成GBK后运行正常了哈哈APACHE太强了
回复

使用道具 举报

千问 | 2021-1-27 07:05:34 | 显示全部楼层
你的配置应该没什么问题。你看看你是怎样访问的。。APACHE通过IE调试是区分大小写的。。如果active是小写,你访问的时候必须小写。你在看看你访问的路径信息。你访问的时候必须带上active如http://127.0.0.1/active/.直接通过127.0.0.1是不行的。。
回复

使用道具 举报

千问 | 2021-1-27 07:05:34 | 显示全部楼层

.net能在apache上运行?好象不行吧
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行