slickkick
October 29th, 2008, 02:31 PM
I am trying to load assemblies by referencing them in the web.config file.
I created a simple solution that contains a class library (DeploymentTest) and a web site (DeploymentTestWeb). The class library produces a dll, and is strongly named. The web site references this dll in the web.config file. I cannot get this reference to resolve. I have placed entries in both the <assemblies> section and the <assemblyBinding> section.
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="DeploymentTest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4A419F2751ED4919"/>
</assemblies>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="DeploymentTest"
publicKeyToken="4A419F2751ED4919"
culture="neutral" />
<codeBase href="..\DeploymentTest\bin\DeploymentTest.dll" Version="1.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
I cannot resolve the assembly, so I must be doing something wrong. Any ideas what I am missing?
I created a simple solution that contains a class library (DeploymentTest) and a web site (DeploymentTestWeb). The class library produces a dll, and is strongly named. The web site references this dll in the web.config file. I cannot get this reference to resolve. I have placed entries in both the <assemblies> section and the <assemblyBinding> section.
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="DeploymentTest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4A419F2751ED4919"/>
</assemblies>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="DeploymentTest"
publicKeyToken="4A419F2751ED4919"
culture="neutral" />
<codeBase href="..\DeploymentTest\bin\DeploymentTest.dll" Version="1.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
I cannot resolve the assembly, so I must be doing something wrong. Any ideas what I am missing?