hello.
i've developed several windows forms user controls which are encapsulated
by several asp.net server controls. all the user controls are embedded inside
the dll that contains the asp.net server controls. the windows forms user
controls were built using v1.1 of the platform.
the problem is that in some machines i get a blank interface (ie, the windows
forms user controls don't show up). the dll that contains the controls is
downloaded into the gac (i've checked it by using the gacutil -ldl) but they
simply don't show up in IE.
all the machines have a code group which gives full control to the dlls downloaded
from the site.
i've had this in the past, but can't recall how to solve this...
---
Regards,
Luis Abreu
email: labreu_at_gmail.com
http://weblogs.pontonetpt.com/luisabreu
http://www.pontonetpt.com
http://weblogs.pontonetpt.com/
Hello again.
more info on this problem...
ok, let's start from the beginning.
i've used .net 1.1 to develop a dll which contains 2 windows forms user controls:
the 1st is responsible for showing a progress bar and upload a file; the
2nd is responsible for showing a tipical browser folder dialog.
these controls were built by using visual studio 2003 (ie, i've built a dll
project with this 2 windows forms user controls inside). i've signed the
assembly and used the ATPC attribute so that partially trusted code can use
this class.
after doing this, i've built a new 2.0 dll project which contains several
asp.net server controls. for each windows forms user control there's an asp.net
server control which wraps the windows form's control (basically, this asp.net
serrver controls expose the properties of the user controls so that they
can be set on the server side and generate the corresponding <object> tags
that point to the dll that has the windows forms controls).
since i'm using asp.net 2.0, i've embedded the dll that contains the windows
forms user controls so that i'm able to redistribute the asp.net controls
with everything in one place. note that in this cases the dll is allways
obtained through the handler webresources.axd (this is why it's not possible
to embed more that one dll inside the final dll - it is possible, but if
you need to use 2 controls placed in different dlls on the same page only
the 1st control will work because the 2nd dll won't be downloaded...)
now, i expected that since i've built the windows forms dll the user agains
.net 1.x, the user didn't need to install .net 2.0. unfortunatelly, if i
don't do this, the windows forms dll is downloaded to the computer of the
user, but the objects aren't loaded inside IE (in other words, i see that
they've been downloaded by using gacutil -ldl but they keep getting shown
as gray areas in IE).
i must say that my components need more permissions that those that are given
by default by IE. so, i've added a new code group inside the all_code of
the machine level that gives full trust to all assemblies loaded from the
machine that is hosting the site. i though this was all that was necessary
for my components to work:
1.) user should have .net 1.x installed
2.) user should have a copy of a predefined security policy
as i said, if i install .net 2.0 and give the correct permissions to the
assemblies loaded from my site, it works well; if i don't install .net 2.0,
then it simplyu doesn't worl
any ideas on why this happens???

Signature
Regards,
Luis Abreu
email: labreu_at_gmail.com
http://weblogs.pontonetpt.com/luisabreu
http://www.pontonetpt.com
http://weblogs.pontonetpt.com