Turns out though, that doesn't work. You get this error message in your webpart.

System.ArguementNullException: Value cannot be null. Parameter name: virtualPath at System.Web.VirtualPath.Create()
Which basically means that the process that executes the sandbox code is not a full ASP.NET pipeline, or doesn't have all the context/access object it needs. This is probably as security feature too.
Oh well, back to coding the control tree by hand.
1 comment:
You can set the AppRelativeVirtualPath of the Page object which allows the HTML to be parsed, but you get a further exception related to the operation requiring greater security permissions.
Post a Comment