如何在 Vista 中停止 Ideablade DevForce 写入 C:\Program Files\AppName\debuglog.xml
我有一个使用 Ideablade Devforce 作为 OR 映射器的应用程序。 当应用程序启动时,它想要写入 C:\Program Files\Application Name\ 中的 debuglog.xml 文件。这在 Windows XP 中工作正常,但由于 Vista 锁定了对 Program Files 的写入访问权限,因此应用程序会抛出错误。
有没有办法阻止 Ideablade 写入此文件?
或者是否
有其他地方建议安装想要在其安装路径中写入文件的应用程序?
I have an application that uses Ideablade Devforce as it's OR mapper. When the application starts up it wants to write to the debuglog.xml file in C:\Program Files\Application Name\ This works fine in Windows XP, but due to Vista's locked down write access to Program Files, the app throws and error.
Is there a way to stop Ideablade wanting to write to this file?
OR
Is there another place that is recommended to install applications that want to write to files in their install path?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我通过将 IdeaBlade.ibconfig 文件中的日志文件选项设置为空白字符串来修复此问题。
它在帮助中提到,如果您不提供路径,它会将文件保存在应用程序的目录中,但如果您甚至不提供文件名,它不会将其保存在任何地方。
I fixed it by setting the logging file option to a blank string within the IdeaBlade.ibconfig file.
It mentions in the help that if you don't supply a path it will save the file in the application's directory, but if you don't even supply the filename it will not save it anywhere.
csjohnst 是正确的。 在 ibconfig 文件中将 logfile 元素设置为空字符串将禁止创建调试日志。
csjohnst is correct. Setting the logfile element to an empty string in the ibconfig file will suppress creation of the debuglog.
您可以在 C:\ApplicationName 下拥有自己的目录
或者
在部署期间设置对 C:\Program Files\ApplicationName 文件夹的写入访问权限。
我希望这有帮助。
You could either have your own directory under C:\ApplicationName
OR
Set write access during deployment to your C:\Program Files\ApplicationName folder.
I hope this helps.
你最好的选择是和沃德·贝尔谈谈;)
(http://neverindoubtnet.blogspot.com/)
Your best bet would be to talk to Ward Bell ;)
(http://neverindoubtnet.blogspot.com/)
在 IdeaBlade.ibconfig 文件中将 logFile 设置为空字符串:例如,
In IdeaBlade.ibconfig file set the logFile to the empty string: e.g.,