Click here to Skip to main content
16,018,294 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
objDB.cmdDataTable("SELECT FILEID FROM CONTAINER WHERE FILENAME = '" & name & "' ")

above sentance throw the system.nullreference exception
Posted
Comments
Chandra Mohan N 25-Feb-14 5:13am    
If the given file name does not exit in the table CONTAINER system.nullreference exception occurs....
Gaurav Makwana 25-Feb-14 5:18am    
thanx bro

It then means that objDB variable is null.
Check the place where you are initializing it.
 
Share this answer
 
Initialize the objDB object.
 
Share this answer
 

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