These docs are for v20.3.44. Click to read the latest docs for v20.3.186.

Discussions

Ask a Question
Back to All

Simple client-based iParts from external source

If I create an iPart with an external HTML file for display and/or configuration is throwing an invalid virtual path error:

2020-11-04 12:43:11,328 [99] ERROR Asi.Web.UI.UserControlBase [(null)] - HttpException: 'https:/www.abc.org/iParts/CSystems/Mailchimp/Admin/index.html' is not a valid virtual path.
at System.Web.Util.UrlPath.CheckValidVirtualPath(String path)
at System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative)
at System.Web.VirtualPath.Combine(VirtualPath relativePath)
at System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping)
at System.Web.HttpServerUtility.MapPath(String path)
at Asi.Web.Mvc.PathProvider.MapPath(String path)
at Asi.Web.Mvc.MvvmUtility.Html(ContentItem iPart, PageType pageType)
at Asi.Web.Mvc.MvvmUtility.DisplayHtml(ContentItem iPart)
at Asi.Web.UI.ContentItemDisplayBase.GetMvvmContentItemHtml(ContentItem contentItem)
at Asi.Web.UI.ContentItemDisplayBase.RenderWebPart(HtmlTextWriter writer)
at Asi.Web.UI.ExceptionHandlingContentItemBase.Render(HtmlTextWriter writer)
Request URL: /Sbox/mcAdmin.aspx?WebsiteKey=4243d9e2-e91e-468c-97c2-2046d70c1e1a
URL Referrer: /Sbox/mcAdmin.aspx

The error points to https:/www..... but the setting on the iPart is https://www.....

Is there some magic in pointing the display/config controls for a custom iPart to an external source?