AssemblyResolve problem

  • Thread starter Thread starter saradhi
  • Start date Start date
S

saradhi

Hi,

I have an application (web application), which requires
to load an assembly into an AppDomain (created
programatically) dynamically. For this I have written code
like

AppDomain currentDomain = AppDomain.CreateDomain("New
Domain",null,null);

currentDomain.AssemblyResolve += new ResolveEventHandler
(MyResolver);

But ASP.NET runtime is giving error at AssemblyResolve
event handler. The error code is as follows...

Server Error in '/AppDomainTest2' Application.
-----------------------------------------------------------
---------------------

The type ASP.WebForm1_aspx in Assembly ozuptbo6,
Version=0.0.0.0, Culture=neutral, PublicKeyToken=null is
not marked as serializable.

How to solve this problem.

Saradhi
 
Back
Top