更新 web.config 恢复以前的更新

发布于 2024-08-27 10:49:17 字数 207 浏览 9 评论 0原文

我有一个 SPJob 计划有一个包(wsp)安装,它更新 web.config 和一个应用程序页面,它也构建以更新 web.config。

问题是当我安装包时它成功更新了 web.config。我已经确认了这些变化。现在,当我们转到应用程序页面时,它也成功更新了 web.config,但我丢失了软件包安装期间所做的更改。

知道我会做错什么吗?

谢谢。

I've a SPJob Scheduled with a package (wsp) installation which update web.config and a Application Page which also build to update web.config.

The problem is when I install the package it successfully update the web.config. I've confirmed the changes. Now, when we go to our Application Page which also successfully update the web.config but I lost the changes made during package installation.

Any idea what would I be doing wrong?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

埋葬我深情 2024-09-03 10:49:17

您正在开发此软件包安装吗?如果是这样,您如何编辑该文件?您是否保存更改然后正确关闭文件?

如果不是,这个 SPTimerJob 会经常发生吗?您是否尝试过手动更改 web.config 并打开应用程序页面以查看它是否更改了您的手动版本?

Are you developing this package installation? If so, how are you editing the file? Are you saving changes and then closing the file properly?

If not, is this SPTimerJob going to be a regular occurence? Have you tried changing the web.config manually and opening the Application Page to see if it changed your manual edition?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文