Question

i have a website and in it is an application with website administration.

It is possible to load an assembly from website in administration application?

E.G:

alt text

WebAdmin project (web application) : in default.aspx i want to load assembly ClassLibrary1.dll and create instance of type ImportProvider. WebAdmin doesn't have reference to ClassLibrary1.

Configuration in IIS:

alt text

Application directory "admin" (WebAdmin project) is in Website1

Thanks a lot

Was it helpful?

Solution

I have exactly the same situation.

Create an interface IImportProvider. Your websites have to create its own class libraries that implement that interface(each website has different provider). Now you have a \website\bin\ directory with specific classLibrary.dll for each website that implements IImportProvider.

Now you can use MEF in your administration to load the assembly classLibrary.dll. This works for me.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top