Hi, I have a problem that's been bugging me for quite a while. i hope someone helps me out on this one. <BR>I have created a .vb file where in i have a public class enclosed in a namespace. This class file contains a function with the logic to return the OracleDataReader from oracle database using a Stored Procedure. But on accessing it from the .aspx file... it throws a System.NullReferenceException ... i have seen that this function when written in the .aspx file itself works properly. I need this to work in the .vb file since i intend to convert this file into a .dll file later on. Please need help on this.