找不到路径的一部分 [英] Could not find a part of the path

查看:143
本文介绍了找不到路径的一部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有





我在mvc5中创建了rdlc报告。当我点击链接时



@ Html.ActionLink(PDF,ExportTo,新{ReportType =PDF})



它会出现以下错误。



无法找到路径'F:\TestReport \ abcc的一部分\\ abc \TblContents \ContentReport'。





请帮我解决这个问题





问候



Amy

解决方案

嗯,这是一个相当困难的问题。为什么?因为你的帖子的fisrt部分与第二部分没什么关系。

你做了一个动作链接。您可能在当前控制器中有一个名为ExportTo的操作。在ReportType参数中传递PDF的位置。这似乎有效,因为你没有得到任何路由解析错误。

现在第二部分:只要我们不知道动作中有什么,我们怎么能分辨出什么是错的方法(假设您已经为您的应用程序正确添加了RDLC支持)?

顺便说一下,您在屏幕上看到的错误很可能更具说明性,因为您有调用堆栈和许多其他附加信息。顺便说一句,你有调试。使用它!



我建议你按照这里描述的步骤: Prototype MVC4 Razor ReportViewer? RDLC [ ^

Dear All


I have created rdlc report in mvc5. when i am hitting the link

@Html.ActionLink("PDF", "ExportTo", new { ReportType = "PDF" })

it gives the following error.

Could not find a part of the path 'F:\TestReport\abc\abc\TblContents\ContentReport'.


please help me to fix this problem


Regards

Amy

解决方案

Well, this is a question rather hard to aswer. Why? Because the fisrt part of your post has little to do with the second part.
You make an action link. Than you probably have an action called ExportTo in your current controller. Where you pass the PDF in the ReportType parameter. This seems to work, since you don't get any routing resolution error.
Now for the second part: how can we tell, what's wrong, as long as we don't know what's in the action method (supposing you have properly added RDLC support to your application)?
By the way, the error you got on the screen will be most likely more explanatory as you have call stack and many other additional information. And by the way, you have debugging. Use it!

I suggest you follow the steps described here:
Prototype MVC4 Razor ReportViewer? RDLC[^]


这篇关于找不到路径的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆