Re: Problem with late databinding and GAC

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Steven (msgroups_at_berkovitz.org)
Date: 07/22/04


Date: Thu, 22 Jul 2004 09:45:58 -0400

I am using the fully qualified object name. The object is in a seperate
assembly, and there is a project reference to it. All of the referenecs in
the code-behind works, its just the late databinding that doesn't!

"Jared" <VB_Puzzled_VB@email.com> wrote in message
news:10fv4lhf8ce5cda@corp.supernews.com...
> Have you tried to use an Imports statment or are you using the fully
> qualified object name? Does the object reside in a seperate assembly? Do
> you have a reference to it?
>
> "Steven" <msgroups@berkovitz.org> wrote in message
> news:ua16ZW4bEHA.716@TK2MSFTNGP11.phx.gbl...
>> Hi,
>>
>> I'm having an odd problem with late databinding (using DataBinder.Eval).
>> I have my Business Logic and Facade assemblies in the GAC, and just about
>> everything works fine, however, when using pages which use the
>> DataBinder.Eval method, I get an error saying the referenced assembly
>> could not be found. For example, say I have an object named ObjectName.
>> In the code behind, I can use this fine, but the following will cause the
>> error I mentioned
>>
>> <%# SomeMethod( (ObjectName)DataBinder.Eval(Container.DataItem,
>> "ObjectOfTypeObjectName")) %>
>>
>> I have the following in my web.config file (I have omitted all of the
>> assemblies for readability)
>>
>> <runtime>
>> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
>> <qualifyAssembly partialName="Business Logic" fullName="Business
>> Logic, Version=1.0.0.0, Culture=neutral, PublicKeyToken=#########" />
>> </assemblyBinding>
>> </runtime>
>>
>> Any help would be greatly appreciated.
>>
>> Thanks,
>>
>> Steven
>>
>
>



Relevant Pages

  • Re: circular reference and events
    ... For an object to signal an event to a subscriber, it does need a reference to the object that has subscribed to the event. ... so i thought for the business object to subscribe to a presenter event (go ... That is, you are trying to use types from two different assemblies, in the other assemblies. ... public int Value {get; private set;} ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Office PIA:s. Can they be made to work properly?
    ... I found the only way to reference a version prior to the one on the build ... > b) Build+Run successful, ... > WARNING: Unable to find dependency 'mscorlib' (Signature='B77A5C561934E089' ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Referencing your other assemblies in projects
    ... Yeah, I know it seems weird, but I still put winforms applications under the ... I set the working folder ... My company sets up a "Release" folder for commonly used assemblies. ... the dietcoke manager can relatively reference ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: C# Plugin system - same interface in two different assemblies...
    ... "add a reference to the appropriate assemblies to each and every project"? ... You don't have each plugin project deciding what ... its idea of the interface is. ... can't by forcing people to include them in assemblies as I've explained. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: VS 2005: multiple dlls for one website possible?
    ... >and shouldn't reference and web project assemblies. ... it calls the classes in the web app. ... and the custom control ...
    (microsoft.public.dotnet.framework.aspnet)