Application.FileSearch.RefreshScopes出错 [英] Error on Application.FileSearch.RefreshScopes

查看:57
本文介绍了Application.FileSearch.RefreshScopes出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们刚在服务器中为名为Courtney的女孩添加了一个新的登录名。她正在使用我以前使用过的电脑。我们的订单数据库中的以下代码总是运行良好,但当她登录到该特定计算机时,她在Application.FileSearch.RefreshScopes命令上收到错误。它说的是它失败的结果。


当我登录到那台电脑时,它可以工作。当她登录到任何其他计算机时,它可以工作。当她登录到特定的计算机时,它才起作用。


我们的数据库没有设置用户登录,权限等所以我们什么都没想到代码或数据库有问题。当她登录时,计算机上是否有错误设置阻止了Application.FileSearch.RefreshScopes行?

We just added a new login name in our server for a girl named Courtney. She is using a computer that I used to use. The following code in our Orders Database has alway worked fine, but when she is logged in to that particular computer she gets an error on the Application.FileSearch.RefreshScopes command. It says something to the effect that it "failed".

When I log in to that computer, it works. When she logs in to any other computer, it works. It only doesn''t work when she is logged in to that particular computer.

Our database is not set up for user logins, permissions, etc so we don''t think anything is wrong with the code or the database. Could there be a setting on the computer that is wrong when she is logged into it that is blocking the Application.FileSearch.RefreshScopes line?

展开 | 选择 | Wrap | 行号

推荐答案


我们刚在服务器中为名为Courtney的女孩添加了一个新的登录名。她正在使用我以前使用过的电脑。我们的订单数据库中的以下代码总是运行良好,但当她登录到该特定计算机时,她在Application.FileSearch.RefreshScopes命令上收到错误。它说的是它失败的结果。


当我登录到那台电脑时,它可以工作。当她登录到任何其他计算机时,它可以工作。当她登录到特定的计算机时,它才起作用。


我们的数据库没有设置用户登录,权限等所以我们什么都没想到代码或数据库有问题。当她登录时,计算机上是否有错误设置阻止了Application.FileSearch.RefreshScopes行?

We just added a new login name in our server for a girl named Courtney. She is using a computer that I used to use. The following code in our Orders Database has alway worked fine, but when she is logged in to that particular computer she gets an error on the Application.FileSearch.RefreshScopes command. It says something to the effect that it "failed".

When I log in to that computer, it works. When she logs in to any other computer, it works. It only doesn''t work when she is logged in to that particular computer.

Our database is not set up for user logins, permissions, etc so we don''t think anything is wrong with the code or the database. Could there be a setting on the computer that is wrong when she is logged into it that is blocking the Application.FileSearch.RefreshScopes line?

展开 | 选择 | Wrap | 行号



她可能没有访问stPathName目录结构的权限。确保她或她指定的组对该目录结构具有完全权利。
She may not have Access Privileges to the stPathName Directory Structure. Make sure she or her assigned ''Group'' has ''Full Rights'' to that Directory Structure.



我有人在调查。对我们来说似乎很奇怪的是,在O:驱动器上创建文件夹的代码可以工作。该文件夹显示出来。但是当它被认为是...... RefreshScopes时(要导出.rtf文件),它不起作用。就在那台计算机上,就在她登录的时候。此外,我们都是同一个团队的一员,她应该拥有完整的权利(在不同的计算机上登录时工作正常)。如果它不是编码问题,那么我认为它成为另一个论坛的问题?一如既往地感谢!

I''ve got somebody looking into that. What seemed strange to us was that the code that creates the folder on the O: drive works. The folder shows up. But then when it is supposed "...RefreshScopes" (to export the .rtf file), it doesn''t work. Just from that computer, and just when she''s logged in. Also, we are all a part of the same group, and she supposedly has full rights (it works fine under her login on different computers). If it''s not a coding problem, then I suppose it becomes a problem for another forum? Thanks as always!


努力调试。看一下TSDN上的这个方法来检查这段代码各个阶段的目录结构。

http://msdn2.microsoft.com/en-us/library/aa171279(office.11​​).aspx


这应该告诉你权限是否有问题。
In an effort to debug. Have a look at this method on TSDN to check the directory structure at all stages of this code.

http://msdn2.microsoft.com/en-us/library/aa171279(office.11).aspx

This should tell you if there are problems with the permissions.


这篇关于Application.FileSearch.RefreshScopes出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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