Click here to Skip to main content
15,907,001 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
hi i am using three tire architecture for my web application
i am getting error like Object reference not set to an instance of an object
in sqlParamteredHelper file. i am passing values for all the input fields

Error Displaying lines

MSIL
{
   //check for derived output value with no value assigned
 if ((p.Direction == ParameterDirection.InputOutput) && (p.Value == null))
  {
  p.Value = DBNull.Value;



[Edited]Unchecked Ignore HTML in text[/Edited]
Posted
Updated 28-Jan-11 0:32am
v2

1 solution

Have you checked that "p" is set to an SqlParameter instance?
Since that is the only variable you show that is being used as a reference, I assume you haven't... :laugh:
 
Share this answer
 
Comments
srinivasvempa 28-Jan-11 6:37am    
thaks there is no problem where u have mentioned error came from below line
iNeelTech.sqlParamteredHelper.ExecuteNonQuery(con, CommandType.StoredProcedure, "PM_Mis_Insert", pnames);
OriginalGriff 28-Jan-11 6:41am    
Then perhaps you should edit your question and provide the code on which the error occurs?
You would be amazed how much more helpful it is to actually see the code where the fault occurs, rather than random code from an unknown distance away...

While you do that, include some relevant lines before the error to provide some context.
srinivasvempa 28-Jan-11 6:56am    
Thanx..... i found where i made mistak. thanx alot

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900