1 // Load an interface from an invalid DLL and ensure the failure is clean.
2 // Notice this is very similar to bug-81673, except the interface is loaded
3 // through a transparent proxy instead of directly.
6 using System
.Runtime
.Remoting
;
7 using System
.Runtime
.Remoting
.Proxies
;
8 using System
.Runtime
.Remoting
.Messaging
;
14 public static void Test ()
16 RemoteProxy remote2
= new RemoteProxy (typeof(App
).Assembly
.GetType("Application.Remote"));
17 remote2
.GetTransparentProxy ();
20 public static int Main ()
24 for (int i
= 0; i
< 10; ++i
) {
37 class Remote
: MarshalByRefObject
, IMyInterface
{
43 class RemoteProxy
: RealProxy
{
44 public RemoteProxy (Type t
) : base (t
) {
48 public override IMessage
Invoke (IMessage request
) {