Solved

ASP.NET: Object reference not set to an instance of an object.

Posted on 2010-11-21
8
537 Views
Last Modified: 2012-05-10
Hello,

We have developed a website and right now, it is running on the production environment.

It is running great on production environment but sometime it gives an error "Object reference not set to an instance of an object."

As of now, we have done concrete the problem. When user clicks on pop up window and close that window and Asychronous request goes to close that window. After that instantly click on "Update" button then this error comes.

It means that Page is not rendered properly.

Can anyone give assistance on it i.e. how to resolve it?

It is an urgent if some one assist me.

Best Regards,
Mohit Sharma
0
Comment
Question by:MohitPandit
8 Comments
 
LVL 19

Expert Comment

by:Bardobrave
ID: 34185948
This error means that your code is trying to use an object that is not instantiated on the moment your code try to call it.

Maybe the window you close is the one who instantiates the object, and when you close it, this object is sent to memory cleaner, so when another part of your code tries to reach it the exception is fired.

You should stretch the line where the error is raised and see what object is being called. Then you'll be able to see clearly what's happening.
0
 
LVL 11

Expert Comment

by:SAMIR BHOGAYTA
ID: 34186221
Hello,

May be your code is trying to use the object which is not instantiated into your code. OR may be the database is not properly connected at the time of pass the query for that page.
0
 
LVL 7

Expert Comment

by:meispisces
ID: 34186788
Post your code.. this would be helpful to see where the error is..

thanks!
0
 
LVL 2

Expert Comment

by:dinudany
ID: 34186802
hi...,
can you please explain, what is the window you have used for pop-up.
is it a JavaScript pop-up or a child instance of the parent window.
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 5

Author Comment

by:MohitPandit
ID: 34205008
Hi dinudany,

We are using Telerik: RadwindowManager.

FYI only, we grab the issue. I tried to same "object reference" error from other development machine but we couldn't. So, we created new published code from that development machine and tried to replicate but error didn't come.

It means that there is problem with old development machine from where we created published code everytime.

Do you have any suggestion on it?

Regards,
MohitPandit
0
 
LVL 5

Author Comment

by:MohitPandit
ID: 34210885
Any Suggestion?
0
 
LVL 5

Accepted Solution

by:
MohitPandit earned 0 total points
ID: 34309328
Hello,

I found this file "BrowserFile.browser" in App_Browser folder in published code. After remove it, it doesn't through any "Object Reference" error

Regards,
Mohit
0
 
LVL 5

Author Closing Comment

by:MohitPandit
ID: 34341514
I found myself. thanks
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now