asp.net Share codebehind


D

deborder

HI all,

I have multiple websites that need to use one codebehind that why i
compiled the codebehind as class.

i was planed to put the dll file in one of the filesystem directory and
declare it in my machine.config :
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="<myassembly>" publicKeyToken="<my strong
name>" culture="neutral" />
<codeBase version="1.0.1.0" href="<file path>"/>
</dependentAssembly>
....
<compilation debug="true" explicit="true" defaultLanguage="vb">
<assemblies>
<add assembly="<myassembly>, Version=1.0.1.0, Culture=neutral,
PublicKeyToken=<my strong name>"/>

is it the best option?
i didnt want to put in in the GAC cause the GAC is fully trusted

Thanks in advance
 
Ad

Advertisements

C

Christopher Reed

For it to be recognized as a code-behind DLL, it has to be located in the
bin subdirectory of your web application.
 

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