“加载报告失败”错误CR10 .Net Windows服务 [英] "Load Report Failed" error CR10 .Net Windows service
问题描述
我一直在寻找这个问题的答案。这就是我所做的:
I've been looking all over for an answer to this issue. Here's what I've done:
使用VB.NET在Visual Studio 2003中创建一个Windows服务,它基本上是一个任务调度程序。它在Windows 2003服务器上运行。用户可以安排运行水晶报告。当他们这样做时,服务启动一个excutable,尝试访问另一台服务器上的报告。如果我在我的开发机器上设置了一个测试项目,那就可以了。如果我将它安装为Windows服务,那就不行了。我猜这是一个权限问题,我已经阅读了很多关于尝试使用ASP.NET访问报告的人有问题(似乎他们的案例中的解决方案是使用模拟),但我还没有找到任何关于使用的信息一个Windows服务。 Windows服务以管理员权限运行,并且对包含报告的文件夹具有完全访问权限。
Created a windows service in Visual Studio 2003 with VB.NET that is basically a task scheduler. It runs on a Windows 2003 server. Users can schedule a crystal report to run. When they do this, the service launches an excutable that tries to access the report on a different server. If I set up a test project on my dev machine, it works. If I install it as a windows service, then it's a no go. I'm guessing it's a permissions issue, and I've read a lot about people having this problem trying to access reports using ASP.NET (seems the solution in their case is using impersonation), but I haven't found anything about using a windows service. The windows service runs with Administrator permissions and has full access to the folder that contains the reports.
有没有人有一些帮助/建议?我非常感谢...
Does anyone out there have some help/suggestions? I really appreciate it...
Sasha
推荐答案
使用ProcessMonitor将显示问题是权限问题。
Using ProcessMonitor will show you where the issues are when it is a permission problem.
将此标记为已回答
这篇关于“加载报告失败”错误CR10 .Net Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!