473,789 Members | 2,478 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with late databinding and GAC

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)Dat aBinder.Eval(Co ntainer.DataIte m,
"ObjectOfTypeOb jectName")) %>

I have the following in my web.config file (I have omitted all of the
assemblies for readability)

<runtime>
<assemblyBindin g xmlns="urn:sche mas-microsoft-com:asm.v1">
<qualifyAssembl y partialName="Bu siness Logic" fullName="Busin ess
Logic, Version=1.0.0.0 , Culture=neutral , PublicKeyToken= #########" />
</assemblyBinding >
</runtime>

Any help would be greatly appreciated.

Thanks,

Steven
Nov 18 '05 #1
2 1243
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" <ms******@berko vitz.org> wrote in message
news:ua******** *****@TK2MSFTNG P11.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)Dat aBinder.Eval(Co ntainer.DataIte m,
"ObjectOfTypeOb jectName")) %>

I have the following in my web.config file (I have omitted all of the
assemblies for readability)

<runtime>
<assemblyBindin g xmlns="urn:sche mas-microsoft-com:asm.v1">
<qualifyAssembl y partialName="Bu siness Logic" fullName="Busin ess
Logic, Version=1.0.0.0 , Culture=neutral , PublicKeyToken= #########" />
</assemblyBinding >
</runtime>

Any help would be greatly appreciated.

Thanks,

Steven

Nov 18 '05 #2
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***********@ email.com> wrote in message
news:10******** *****@corp.supe rnews.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" <ms******@berko vitz.org> wrote in message
news:ua******** *****@TK2MSFTNG P11.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)Dat aBinder.Eval(Co ntainer.DataIte m,
"ObjectOfTypeOb jectName")) %>

I have the following in my web.config file (I have omitted all of the
assemblies for readability)

<runtime>
<assemblyBindin g xmlns="urn:sche mas-microsoft-com:asm.v1">
<qualifyAssembl y partialName="Bu siness Logic" fullName="Busin ess
Logic, Version=1.0.0.0 , Culture=neutral , PublicKeyToken= #########" />
</assemblyBinding >
</runtime>

Any help would be greatly appreciated.

Thanks,

Steven


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3870
by: Richard | last post by:
Hi, I have a DateTime picker control on a form. The datetime picker control is data bound to a column in a DataTable. Yes I know about bound DateTime pickers and DBNull and etc. so no troubles with that stuff... However, as somebody out there probably knows, programmatically setting the DateTimePicker.Value property to a new VALUE does NOT in itself constitute a CHANGE to
0
2406
by: mike | last post by:
Hi there: I've read an excellent "how to"-article by Microsoft (no. 306227) - partly cited cited at the end of this email). I have implemented the code related to the part "How to Add a CheckBox Programmatically" in my code. I have changed it to use a OLDDB.DBReader to populate the datagrid and for the databinding. It works perfectly - also when using the edit-mode in the datagrid.
4
1863
by: Simon Harvey | last post by:
Hi all, Am I being really stupid here: myDropDown.SelectedIndex = 2 I think this line should set the dropdown control's selected item to 2. But nothing seems to be happening on the page. The dropdown just maintains its default value (element 0).
2
1406
by: wolfgang wagner | last post by:
hi all! im trying to edit data in a datagrid (like described here: http://aspnet.4guysfromrolla.com/articles/071002-1.aspx) but if i click the edit button i get the following error invalid attempt to FieldCount because datareader is already closed (sorry, this error message is translated from german) when trying to do the databinding.
0
1833
by: Daniel Doyle | last post by:
Hello and apologies in advance for the amount of code in this post. I've also sent this message to the Sharepoint group, but thought that ASP.NET developers may also be able to help, even though it's a Sharepoint WebPart. I'm trying to do something fairly simple, create a datagrid that displays where and when a person works and allows them to change some of the information via DropDownLists. When the user clicks to edit a row, three of...
0
1707
by: s.gregory | last post by:
My page layout is like this: Page >DataList (databound using ObjectDataSource1 contained in page) >>Items >>>UserControl >>>>GridView (databound using another ObjectDataSource2 contained in UserControl) So I've basically got a GridView (wrapped in a UserControl), that is nested within a DataList. Representing a fairly simple relational data
2
1420
by: Kalpesh | last post by:
Hello, I am facing a design problem here & need your expert design advice on this. Scenario: I have a class called Vendor - which has several simple attributes like Name, Address etc Now, each vendor has some attributes - which are not "simple" Basically, they can be an instance of another class
1
1828
by: m_mohanna | last post by:
I've problem with databinding in vb.net The problem that i'm trying to set a text field of the databinding programmatically during runtime, the change appears on the form, but after save the new value is not saved to database, if i edit this field manually by the keyboard it is updated correctly. here's my code, the Q_ID textbox is the filed belongs to HEADERBindingSource binding source, i try to set it by the value of newQ_id, anyone can tell...
7
2595
by: Vlado Jasovic | last post by:
Hello, I'm using typed dataset for databinding to windows controls and I'm having some problems. I'm trying to move all business logic to datatable column_changing events and the problem that I'm having is when I change some other column, control value doesn't update immediately until I call endcurrentedit on bindingmanager which doesnt happen until user click update button.
0
9663
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10404
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10195
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9979
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9016
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7525
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5548
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4090
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3695
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.