AssemblyResolve problem

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top