создайте у себя страницу со следующим кодом
[CODE]
<%@ Page Language="C#" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="Bitrix" %>
<%@ Import Namespace="Bitrix.Components" %>
<%@ Import Namespace="Bitrix.Modules" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
void ScanDirectory(string appRelativePath, DirectoryInfo dir)
{
if (string.Equals(appRelativePath, "~/bitrix/", StringComparison.InvariantCultureIgnoreCase))
return;
foreach (FileInfo file in dir.GetFiles("*.aspx"))
{
string path = VirtualPathUtility.Combine(appRelativePath, file.Name);
BXSite site = BXSite.GetCurrentSite(path, HttpContext.Current.Request.Url.Host);
BXPageProxy page = BXParser.ParsePage(path, ComponentUnserializationMode.Default);
new BXCommand("Bitrix.Main.OnSavePage").AddP("path", path).AddP("site", site).AddP("page", page).Send();
new BXCommand("Bitrix.Main.OnAfterSavePage").AddP("path", path).AddP("site", site).AddP("page", page).Send();
}
foreach (DirectoryInfo sub in dir.GetDirectories())
ScanDirectory(VirtualPathUtility.AppendTrailingSlash(VirtualPathUtility.Combine(appRelativePath, sub.Name)), sub);
}
protected void Update_Click(object sender, EventArgs e)
{
foreach (BXComponentEvent ev in BXComponentEventManager.GetList())
BXComponentEventManager.Delete(ev.Message);
ScanDirectory("~/", new DirectoryInfo(MapPath("~/")));
Response.Redirect("RefreshComponents.aspx?ok=");
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Update" runat="server" Text="Update" OnClick="Update_Click" />
<% if (Request.QueryString["ok"] != null) { %>
<br />
<span style="color: Green">Обновление прошло успешно!</span>
<% } %>
</div>
</form>
</body>
</html>
[/CODE]
затем запустите ее - лишние обработчики должны исчезнуть