找回密码
 立即注册

QQ登录

只需一步,快速开始

天狼子e

论坛元老

5

主题

30

帖子

5035

积分

论坛元老

积分
5035

活字格认证

天狼子e
论坛元老   /  发表于:2014-4-14 17:40  /   查看:7927  /  回复:8
Request URL:http://localhost:12945/Report/Command=ArResource;ScriptId=lib.jquery-1.7.2.min.js.ar8
Request Method:GET
Status Code:404 Not Found
Request Headersview source
Accept:*/*
Accept-Encoding:gzip,deflate,sdch
Accept-Language:zh-CN,zh;q=0.8,en;q=0.6
Cache-Control:max-age=0
Connection:keep-alive
Cookie:ASP.NET_SessionId=ejanf00o4g2iped1zlcauaow
Host:localhost:12945
Referer:http://localhost:12945/Report/ARIndex?cssName=report
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
Response Headersview source
Cache-Control:private
Connection:Close
Content-Length:3251
Content-Type:text/html; charset=utf-8
Date:Mon, 14 Apr 2014 09:34:31 GMT
Server:ASP.NET Development Server/10.0.0.0
X-AspNet-Version:4.0.30319

8 个回复

倒序浏览
天狼子e
论坛元老   /  发表于:2014-4-14 17:45:00
沙发
asp.net mvc3, active reports 8版本
回复 使用道具 举报
roger.wang
社区贡献组   /  发表于:2014-4-15 09:15:00
板凳
回复 2楼天狼子e的帖子

抱歉,从您的问题描述看,我无法判断出问题导致的原因。

   为了更高效的沟通您的需求和遇到的问题。
请参考一下 产品支持区【发帖格式】按照格式发帖
回复 使用道具 举报
天狼子e
论坛元老   /  发表于:2014-4-15 11:09:00
地板
就是报表的相关资源请求都返回404错误,这个问题可能原因有哪些?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
roger.wang
社区贡献组   /  发表于:2014-4-15 11:13:00
5#
回复 4楼天狼子e的帖子

从截图上看,这个属于部署问题。

建议您看一下部署的文章:ActiveReports 8 > ActiveReports User Guide > How To > Customize, Localize, and Deploy > Deploy Web Applications

或者参考一下AR的置顶帖--关于部署的博客链接。
回复 使用道具 举报
天狼子e
论坛元老   /  发表于:2014-4-15 12:38:00
6#
我还是不知道原因
回复 使用道具 举报
roger.wang
社区贡献组   /  发表于:2014-4-15 17:34:00
7#
回复 6楼天狼子e的帖子

请附上您的demo和做的尝试,这样效率高些。

另外,中文资料,请搜索博客: 如搜索部署--找ActiveReports相关的文章。
http://blog.gcpowertools.com.cn/post/2013/12/27/AR_IIS.aspx
回复 使用道具 举报
天狼子e
论坛元老   /  发表于:2014-4-16 16:36:00
8#
找到原因:路由里面未加这句:
           routes.IgnoreRoute("{*allActiveReport}", new { allActiveReport = @".*\.ar8(/.*)?" });
回复 使用道具 举报
roger.wang
社区贡献组   /  发表于:2014-4-16 16:43:00
9#
回复 8楼天狼子e的帖子

谢谢您的分享,在MVC中,确实需要添加。

在这篇博客中,有提到的  在 ASP.NET MVC 4 中使用 ActiveReports 报表

public static void RegisterRoutes(RouteCollection routes)
    {
        routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
        routes.IgnoreRoute("ActiveReports.ReportService.asmx/{*pathInfo}");
        routes.IgnoreRoute("Grapecity.ActiveReports.Flash.v7.swf");
        routes.IgnoreRoute("{*allActiveReport}", new { allActiveReport = @".*\.ar7(/.*)?" });
        routes.MapRoute(
            name: "Default",
            url: "{controller}/{action}/{id}",
            defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
        );
    }
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部