Hi,
This is a bit convoluted to explain ... I'll try my best.
PROBLEM: On the design page, when I wrap some code in AJAX (e.g., Update Panel), the entire section that the Update Panel covers gets cloaked under an Error Box:
http://koreaville.info/debug/aspNetXmlError.jpg
If I comment out the AJAX code, the error box disappears and my stuff reappears on the design page.
BACKGROUND: I'm working on a site originally built by an outside vendor. They built parts of it separately, compiled it, and the DLLs are referenced in this website. The DLLs exist and everything works/runs fine. It's just that in development, I can't see inside the error box and thus, I have to comment out the AJAX code, so that the error box goes away, and then I can see and edit in the design GUI. (*note: even with the AJAX enabled, I can still edit the mark-up directly, but it helps to see things rendered on the design page right away). Then when I'm ready to put it live, I uncomment the AJAX stuff and it runs fine in production. So the problem is mainly an issue of the error box hindering development because it covers up stuff on the design page.
Here is the web.config:
Code:
<siteMap defaultProvider="WebBlocksSiteMapProvider">
<providers>
<add name="AdminXmlSiteMapProvider" type="WebBlocks.Admin.AdminXmlSiteMapProvider" siteMapFile="~/Admin/Admin.sitemap" securityTrimmingEnabled="true"/>
<add name="WebBlocksSiteMapProvider" type="WebBlocks.WebBlocksSiteMapProvider"/>
</providers>
</siteMap>
Here is what I tried (
new stuff is italicized) but I don't understand enough about this siteMap element, combined with the website referencing compiled DLLs, etc. to really know what/why I'm doing ... this is based on diligence on the web:
Code:
<siteMap defaultProvider="AspNetXmlSiteMapProvider">
<providers>
<clear/>
<add name="AspNetXmlSiteMapProvider" type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="~/Admin/Admin.sitemap" securityTrimmingEnabled="true"/>
<add name="AdminXmlSiteMapProvider" type="WebBlocks.Admin.AdminXmlSiteMapProvider" siteMapFile="~/Admin/Admin.sitemap" securityTrimmingEnabled="true" />
<add name="WebBlocksSiteMapProvider" type="WebBlocks.WebBlocksSiteMapProvider" />
</providers>
</siteMap>
I've spent a lot of time doing DD on this ... but am still stuck so I thought I'd ask the experts ...