A
Anton Maters
Hi,
I am having problems to get the AssemblyBuilder.Save work the way i want it.
My situation:
I am building an asp.net application which can be used my multiple clients.
All clients start off with the same base database. all aspx pages use a
certain dll (lets call it XNotGenerated.dll) to retrieve data. All classes
in the XNotgenerated Assembly inherit from a base class in another
assembly. This baseclass handles all the data retrieval by using Reflection.
So far everything works ok.
Every customer however has extra datafields in certain tables which need to
be reflected in the XNotGenerated Assembly. So I programmed a routine which
generates an assembly (lets call this one XGenerated.dll). This all works
very well. Altough i dont add a reference to the assembly where the
BaseClass is located it works. If i replace the XGenerated.dll with a newly
generated dll (in a test application) it keeps working
What doesn't work is generating the assembly from an aspx page. In that case
I get an "Access Denied" error when i call the AssmbleyBuilder.Save Method.
I already discovered it doesn't try to save the dll to the bin folder but
somewhere else. Anybody who can help me with how to do this?
Any help would be very appreciated.
Kind Regards,
Anton Maters
I am having problems to get the AssemblyBuilder.Save work the way i want it.
My situation:
I am building an asp.net application which can be used my multiple clients.
All clients start off with the same base database. all aspx pages use a
certain dll (lets call it XNotGenerated.dll) to retrieve data. All classes
in the XNotgenerated Assembly inherit from a base class in another
assembly. This baseclass handles all the data retrieval by using Reflection.
So far everything works ok.
Every customer however has extra datafields in certain tables which need to
be reflected in the XNotGenerated Assembly. So I programmed a routine which
generates an assembly (lets call this one XGenerated.dll). This all works
very well. Altough i dont add a reference to the assembly where the
BaseClass is located it works. If i replace the XGenerated.dll with a newly
generated dll (in a test application) it keeps working
What doesn't work is generating the assembly from an aspx page. In that case
I get an "Access Denied" error when i call the AssmbleyBuilder.Save Method.
I already discovered it doesn't try to save the dll to the bin folder but
somewhere else. Anybody who can help me with how to do this?
Any help would be very appreciated.
Kind Regards,
Anton Maters