错误:“无法映射路径‘/’”当我将 Telerik ReportViewer 添加到网页时
我刚刚为我的网站项目构建了一堆 Telerik 报告,它们都运行良好。我明天必须演示它们,并尝试构建一个托管其 Web ReportViewer 的查看页面。我也在他们的论坛上问过这个问题,但预计得到的回复会比周五深夜的回复要少。
无论我使用 GAC 还是 bin 引用,只要将 ReportViewer 控件添加到页面,即使没有尝试加载报表,我也会收到错误无法映射路径“/”
。 Web.UI 库中的其他 Telerik 控件工作正常。我不期待 Telerik 在这里给出具体的答案,尽管这会减轻我通宵达旦的痛苦,但我在堆栈跟踪中看不到任何有意义的错误。
我怎样才能诊断 Telerik 正在寻找但找不到的内容,或类似的内容?这是一个严重的紧急情况,我将为今晚可以提供任何建议的任何人安排“取消引用”赏金。我要重新安装报告这么久了。
更新:愚蠢地警惕过度复杂的因素,我总是在一个与我的主要项目分开的小型专用项目中尝试这样的新事物。昨天,当我遇到问题时,我快速尝试了一个小型网站项目。然后,我尝试了一个小型网络应用程序项目,其中包含对 telerik 的本地引用,而不是 GAC 引用,所有 telerik 引用都设置为复制到本地,并且一切正常。我自然非常欣喜若狂,因为我的主要项目是一个网络应用,而不是网站。
I've just built a crap load of Telerik reports for my web site project, and they all work nicely. I have to demonstrate them tomorrow, and tried to build a viewing page that hosts their web ReportViewer. I have asked this question on their forums as well, but expect less response than from SO late on a Friday night.
Whether I use GAC or bin references, as soon as I add the ReportViewer control to my page, even without trying to load a report, I get the error Failed to map the path '/'
. Other Telerik controls, from the Web.UI library work fine. I'm not expecting a Telerik specific answer here, although that would ease the pain of my all-nighter, but I can see nothing meaningful in the stack trace for this error.
How can I go about diagnosing what Telerik is looking for and can't find, or something of that ilk? This is a serious emergency, and I will sort a 'dereferenced' bounty for anyone that can offer any suggestions tonight. I'm going to reinstall Reporting so long.
UPDATE: Foolishly wary of excess complicating factors, I always try new things like this in a small, dedicated project separate from my main one. Yesterday I quickly tried a small web site project when I encountered my problem. I then tried a small web application project, with local, not GAC references to telerik, all telerik refs set to copy to local, and it all worked. Naturally I was quite ecstatic, as my main project is a web app, not site.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这样你的网页就可以正常运行了。
比你添加一个 telerik ReportViewer 控件 - 再次运行这些东西并得到一个错误:
...失败的...'/'...
该控件只是位于页面中并且不执行任何操作。
因此,像 womp 一样,我会要求您提供完整的错误输出!
另外一个问题:
该错误是否也发生在开发机器上(使用 webdev 服务器从 VS 运行项目)?
同时还有一个提示(不确定您是否已经检查过这一点):
http://www.telerik.com/support/ kb/reporting/general/deploying-telerik-reporting.aspx
最后一件事 - 也许它可以帮助您。我创建了一个小网站,按照您告诉您的网站的操作进行操作。
您可以在这里下载:www.pp-p.com/rvsite.zip
也许查看一下 web.config 等内容可以帮助您找到站点中缺少的内容。
一件事 - BIN 文件夹中有两个 txt 文件 - 将它们替换为来自 telerik reporting 的 DLL 以使项目正常运行。
也许这会有所帮助(周末直到 Telerik 支持人员返回工作)..
so you have a webpage running without problems.
Than you add a telerik ReportViewer controls - run the things again and get an error:
...Failed...'/'...
The control simply sits in the page and does nothing.
So like womp I would ask you to provide the full error output!
One other question:
Does the error also occure on the development machine (running the project from VS with webdev server)?
And a hint meanwhile (not sure if you'v already checked this):
http://www.telerik.com/support/kb/reporting/general/deploying-telerik-reporting.aspx
One last thing - maybe it con help you. I made up a little web site doing what you have told your site does.
You can download it here: www.pp-p.com/rvsite.zip
Maybe a look at web.config or so can help you to find what's missing in your site.
One thing - in the BIN folder are two txt files - replace them with the DLLs from telerik reporting to have the project work.
Maybe this helps (for the weekend till the telerik support guys are back at work)..