aspx page gathering fails
were building web-based concentration allows administrators upload plug-ins. plug-ins stored special folder outmost app bottom (say, c:\plugins) boldly hallowed around assembly.loadfrom(). works only glorious many part: webcontrols plug-ins instantiated loaded, tradition classes duty expected, etc.
were controlling tradition virtualpathprovider resources out plug-ins. so, an embedded aspx file, youd simply like, /mysite/embeddedresource/?assembly=myplugin&resource=mypage.aspx. works fine, too: embedded aspx record compiles served adult normal page.
the problem, however, comes an embedded .aspx record (inside boldly hallowed plugin) references category inside same plug-in assembly. gathering errors like, cannot form public myplugin. rare because, clearly, its pulling .aspx record out myplugin; it?
so, im anticipating assistance me out this. plugin feeling this:
myplugin.dll:
- internalhelperclass.cs
- mypage.aspx (resource .cs file)
when mypage.aspx contains something like, <%= internalhelperclass.writehelloworld() %>, gathering fails.
how work?
update:
we have attempted controlling entirely competent names. difference.
it dilettante step by - gathering blunder aspx page.
namespaces an emanate box (since an outmost plugin dll)
update2:
joel, i cruise onto something. unfortunately, modifying web.config consolidate assemblies isn't biased design. basically, wish plugins totally enterprising - dump folder, restart app, prepared go.
Comments
Post a Comment