将 Sitecore 6 网站移至生产环境但出现 Media.UploadWatcher 异常?

发布于 2024-08-16 07:41:25 字数 1683 浏览 3 评论 0原文

有没有人看到与 Media.UploadWatcher 相关的异常?我手头没有该错误,但异常导致所有页面无法加载,甚至是管理部分。为了解决这个问题,我重置了应用程序池,网站立即恢复正常。

我知道客户端正在通过内容编辑器上传一些大文件,但我认为仅此不会引起问题。我已经提高了 MaxExecutionTime 以允许这些上传,但我再次认为这不是问题。在将代码转移到生产环境时我是否忘记执行某些操作,或者是否有某个设置可能已关闭?我所做的就是将代码复制到生产环境,然后更改 web.config 中的目录引用以指向新位置(例如许可证文件)。

错误没有再出现,但我担心它会在不合时宜的时间出现。有什么想法吗?

提前致谢!

更新:

现场站点上再次发生异常,我不得不回收应用程序池。有谁知道这可能是什么原因造成的?这是事件日志中的异常:

活动代码:3005
事件消息:发生了未处理的异常。
活动时间:2010年1月4日 9:56:50 AM
活动时间(UTC):2010年1月4日下午3:56:50
事件 ID:7fbcc8d807204614904572753b4beb2e
事件顺序:23
事件发生:22
活动详情代码:0

申请信息:
应用程序域:/LM/w3svc/1422107501/root-1-129070941106290901
信任级别:完全
应用程序虚拟路径:/
应用程序路径:C:\HostingSpaces\mysite\mysite.com\wwwroot\
机器名称:180716WEB1

进程信息:
进程 ID:310020
进程名称:w3wp.exe
账户名:180716WEB1\myuser_web

异常信息:
异常类型:TypeInitializationException
异常消息:“Sitecore.Resources.Media.UploadWatcher”的类型初始值设定项引发异常。

请求信息:
请求网址:http://www.mysite.com/Default.aspx
请求路径:/Default.aspx
用户主机地址:75.147.19.21
用户:
已验证:错误
身份验证类型:
线程帐户名:180716WEB1\myuser_web

主题信息:
线程 ID:7
线程帐户名:180716WEB1\myuser_web
是否冒充:错误
堆栈跟踪:

自定义事件详细信息:

有关详细信息,请参阅帮助和支持中心:http://go.microsoft.com /fwlink/events.asp.

Has anyone seen an exception relating to the Media.UploadWatcher? I don't have the error handy, but the exception was causing all pages to not load, even the admin section. In order to fix it, I reset the application pool and the site came back up right away.

I know that the client was uploading some large files through the content editor, but I wouldn't think that alone would cause problems. I have upped the MaxExecutionTime to allow for those uploads, but again, I don't think that would be the problem. Is there something I forgot to do while moving the code to production or is there a setting that might be off? All I did was copy the code to production, and change the directory references in the web.config to point to the new locations (like the license file).

There error hasn't come up again, but I'm scared it will come up at an inopportune time. Any ideas?

Thanks in advance!

UPDATE:

The exception just occurred again on the live site and I had to recycle the app pool. Anyone know what could be causing this? Here is the exception from the event log:

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 1/4/2010 9:56:50 AM
Event time (UTC): 1/4/2010 3:56:50 PM
Event ID: 7fbcc8d807204614904572753b4beb2e
Event sequence: 23
Event occurrence: 22
Event detail code: 0

Application information:
Application domain: /LM/w3svc/1422107501/root-1-129070941106290901
Trust level: Full
Application Virtual Path: /
Application Path: C:\HostingSpaces\mysite\mysite.com\wwwroot\
Machine name: 180716WEB1

Process information:
Process ID: 310020
Process name: w3wp.exe
Account name: 180716WEB1\myuser_web

Exception information:
Exception type: TypeInitializationException
Exception message: The type initializer for 'Sitecore.Resources.Media.UploadWatcher' threw an exception.

Request information:
Request URL: http://www.mysite.com/Default.aspx
Request path: /Default.aspx
User host address: 75.147.19.21
User:
Is authenticated: False
Authentication Type:
Thread account name: 180716WEB1\myuser_web

Thread information:
Thread ID: 7
Thread account name: 180716WEB1\myuser_web
Is impersonating: False
Stack trace:

Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

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

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

发布评论

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

评论(2

晚风撩人 2024-08-23 07:41:25

我相当确定在使用内容编辑器添加媒体时媒体上传观察程序不会参与其中 - 它按计划运行(在 web.config 中定义)以检查是否有任何项目已添加到媒体上传文件夹中文件系统(我现在不记得确切的文件夹名称)。

当我们启动 sitecore 网站时,我们发现不将本地 web.config 上传到实时版本会更容易,而是对两者进行重复更改。 web.config 中有与该服务器的角色相关的设置和整个部分。

如果您收到错误消息,请将其添加到您的帖子中。

I'm fairly sure the media uploadwatcher doesn't come in to it when using the content editor to add media - it runs on a schedule (defined in web.config) to check if any items have been added to the media upload folder in the filesystem (I can't remember the exact folder name at the moment).

When we've launched sitecore sites, we find it easier to NOT upload the local web.config to live - instead, duplicate changes to both. There are settings and entire sections in the web.config relevant to the role of that server.

If you can get the error message, add it to your post.

巷子口的你 2024-08-23 07:41:25

在我们的开发服务器上,此错误的解决方案是从 app_config/include 文件夹中删除 SiteDefinition.config,该文件夹仅包含 xml 注释(版本 6.6 更新 4)之间的设置(可能是默认配置文件)。

我首先删除了 app_config/include 中的所有文件,然后将它们一一放回去。

On our dev server the solution to this error was removing the SiteDefinition.config from the app_config/include folder, which only contains settings between xml comment (version 6.6 update 4) probably de default config file.

I Got there by first removing all the files in app_config/include and placing them back one by one.

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