Error:Object reference not set to an instance of an object.

Posted by See29ram under ASP.NET on 3/1/2012 | Points: 10 | Views : 1627 | Status : [Member] | Replies : 7
Friend i could not find out this error...when i run my application its coming on my login page...what it might be???




Responses

Posted by: Blessyjees on: 3/1/2012 [Member] Bronze | Points: 25

Up
0
Down
Hi,

Can you paste in your code in login page .cs file

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

See29ram, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Akiii on: 3/1/2012 [Member] Bronze | Points: 25

Up
0
Down
Please paste the login page code, otherwise it is not possible to help you !


Regards
Akiii

See29ram, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hmanjarawala on: 3/1/2012 [Member] Bronze | Points: 25

Up
0
Down
Kindly debug your code and check whether any object that you are using in your code is having null value??

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

See29ram, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sksamantaray on: 3/1/2012 [Member] Silver | Points: 25

Up
0
Down
Go ahead with the suggestion by Himanshu Manjarawala .
If still find problem , please attach your code.

Thanks,
Sanjay

See29ram, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sheonarayan on: 3/1/2012 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Possibly you have kept authorization tag something like below in the root's web.config file

<authorization>

<deny users="?"/>
</authorization>


Read more about it http://www.dotnetfunda.com/articles/article114.aspx.

Hope this helps.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

See29ram, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Avdesh on: 3/1/2012 [Member] Starter | Points: 25

Up
0
Down
its because you are not providing memory to reference variable
e.g:
class1 c1;///you are doing like this//////
you can provide memory like this
class1 c1=new class1();
Thanks And Regards
Avdesh

See29ram, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saisindura on: 3/2/2012 [Member] Starter | Points: 25

Up
0
Down
Hi
This error is because you not provide data for that particular field.
once place break point and check it.

for that field place within try catch .

Thanks&Regards
srisai

See29ram, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response