-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Sreedhargmail
Message 1 in Discussion

i have to use a windows control library in my ASP.NET application. the windows 
control library will have a third party control 
for diaplaying images. i have to get the image names from the database.

We are using Enterprise Library - January 2006 for database access in the 
Windows Control Library.
For gettting the image names, i am using the same code which i used in a 
windows application using the Enterprise library. 

when i try to run the windows control library from my asp.net application, i 
get an 
"System.NullReferenceException: Object reference not set to an to an instance 
of an object" error in the enterprise library.
i have added a reference to Microsoft.Practices.EnterpriseLibrary.Common, 
Microsoft.Practices.EnterpriseLibrary.Data
and Microsoft.Practices.ObjectBuilder. For conncetion string, i am using an 
App.Config which i used for my windows 
application.

The windows control library working fine if i comment the data access code part 
and display the controls and any static
information in it.


Please suggest me as to how i can access the database from within the Windows 
Control Library using the Enterprise Library.

Thanks,
Sreedhar

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to