Intermittent Application

Asked

Viewed 105 times

0

I have a system developed in . net framework 4.0 running on IIS 7.5. From time to time, the system gives a problem where no user can log more into it, however, at these times, when I run the application by Visual Studio and point to this base to try to debug the error, the same does not happen, I can enter normally.

When this kind of problem happens I do a Recycle in the application pool and the system goes back to normal.

print do erro

How to solve this?

  • 1

    Just looking at the stacktrace gets kind of hard. I saw that in your mentions the WeakReference, may be involved with the problem. But we can’t know without you posting the relevant source.

  • One of the most common errors among programmers is Null Reference or Null Pointer. There is some place in your code that is pointing to something null. Code the question, it’s easier to help.

  • I noticed something else. Well, the project uses a static class to connect to the database. If the problem happens, if I restart this connection, even if I don’t do a Recycle in the pool, the application goes back to normal.

  • From the message you posted and it seems you forgot to allocate some object: System.NullReferenceException: Object reference not set to an instance of an object. ... this is the cause of the error, by stack trace ae it seems that the error occurs in Models.Administracao.Perfil.Carregar, take a look at the stack trace as well!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.