Apache2.2.15支持ASP.NET3.5到什么程度?

feiguo2008 2010-04-10 04:10:29
最近在XP上安装了Apache2.2.15 和 mod_aspdotnet2.2.0,也配置好了。想把自己做的ASP.NET3.5的东东在Apache上运行。后来发现基本的控件都能用。但是从Oracle调用数据成功后,想以报表形式插入到PDF,生成PDF后,通过“流”的形式直接保存到客户端,用了response.writefile(),发现不行了,没有弹出“打开/保存”对话框,页面提示“internal server error”。在IIS上试过是没有问题的。不知道是何原因。希望高位前辈帮帮忙,提示一下我这个新手是什么问题。Apache2.2.15支持ASP.NET3.5到什么程度?
...全文
148 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
lwc666 2010-04-28
  • 打赏
  • 举报
回复
我也在XP上安装了Apache2.2.15 和 mod_aspdotnet2.2.0,服务器可以正常启动,但是当请求.aspx文件时,就会出现错误。错误日志如下:mod_aspdotnet: No AspNetMount URI for request: /Default.aspx 怎么解决啊?
配置如下:
#asp.net
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
<IfModule mod_aspdotnet.cpp>
# Mount the ASP.NET example application
AspNetMount /active "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\aspx"
# Map all requests for /active to the application files
Alias /active "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\aspx"
# Allow asp.net scripts to be executed in the active example
<Directory "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\aspx">
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>
那个路径就是apaqche的安装路径中的那个文件夹,aspx使自己建的文件夹 麻烦看看哪错了

13,345

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 .NET技术前瞻
社区管理员
  • .NET技术前瞻社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧