Project Server 2007 VBA: 访问文件错误,网络连接可能已丢失

在Project Professional 2007 中签出企业全局设置, Alt+F11打开VBA编辑器时,弹出N次"访问文件错误,网络连接可能已丢失"提示,之后企业全局设置的VBAProject就消失了,也就是说没有办法对企业全局进行VBA编码。

 

在网上找到了答案, 原文如下:

http://projectserverblogs.com/?p=2228

 

 

I see this problem reported in the Microsoft Public Newsgroups regularly, and it is a known issue with both Project Server 2003 and Project Server 2007. When you try to access a macro stored in your Enterprise Global File when using Microsoft Office Project 2007 or Microsoft Office Project 2003 while attached to either Project Server 2003 or 2007, the system reports the “Error accessing file: Network connection may have been lost.” This error often indicates corruption in the VBA stream in the Enterprise Global File. The most common cause of this corruption happens when you close the Enterprise Global File without first saving the file. To avoid this problem, always save your Enterprise Global File before closing it.

 

The easiest way to recover from this error is to restore an Administrative Backup copy of your Enterprise Global File. Restoring a good copy of the file overwrites the corruption resolving the problem. This is exactly the type of situation that the Administrative Backup feature in Project Server 2007 is most useful. It also presents a very strong argument for scheduling administrative backups to run each night. Likewise, it is a strong argument for backing up the Enterprise Global file in Project Server 2003 on a regular basis, which is a manual process. My best practice recommendation is to backup the Enterprise Global File just before you make any changes to it so you always have the latest version to fall back to.

 

 

也就是登录 PWA,在服务器设置-数据库管理-管理性还原, 选择企业全局设置 - 还原

 

出现问题的原因,有可能是代码中的编码,我是直接Copy过来,部份注释变成了乱码。

也有可能是VBA代码没有进行编译,

我删除乱码,导入证书后重新编译代码,再签入,一切恢复正常。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在项目"yudao-server"上执行目标时出错,无法解决依赖关系的问题。这个错误通常发生在项目中引用的某个外部库或插件无法找到或无法正确下载的情况下。 导致依赖解析失败的原因可能有以下几种: 1. 网络连接问题:可能是由于网络连接不稳定或阻塞而无法成功下载所需的依赖项。在这种情况下,需要确保网络连接正常,并且可以访问依赖项所在的存储库。 2. 存储库配置问题:可能是由于项目的存储库配置不正确而导致无法找到所需的依赖项。在这种情况下,需要检查项目的存储库配置是否正确,并确保存储库中存在所需的依赖项。 3. 依赖项版本不可用:可能是由于项目中引用的某个依赖项版本不存在或不可用而导致依赖解析失败。在这种情况下,需要检查项目中所引用的依赖项版本是否正确,并确保所选择的版本可用。 解决这个问题的方法通常是: 1. 检查网络连接:确保网络连接正常,并且可以访问依赖项所在的存储库。 2. 检查存储库配置:确保项目的存储库配置正确,并可从配置的存储库中获取所需的依赖项。 3. 检查依赖项版本:确保项目中引用的依赖项版本存在或可用,如果不是,则更换为正确的版本。 如果以上方法仍然无法解决问题,可能需要进一步调查依赖项的具体情况,比如是否有其他依赖项冲突或它们之间的版本兼容性等。在这种情况下,可以尝试更新项目配置文件中的依赖项或者联系相关的库或插件的维护者寻求进一步帮助。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值