For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > September 2005 > Application.Lock() from whitin custom class









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Application.Lock() from whitin custom class
P. Prosper

2005-09-30, 6:59 pm

I need some help on this issue. I am trying to lock the application object
from within a vb class but I'll get the following error:

Exception Details: System.NullReferenceException: Object reference not set
to an instance of an object.

Source Error:

Line 84: Dim i As Integer
Line 85: Dim TmpSockets(5) As String
Line 86: application.Lock()
Line 87: TmpSockets = application("sockets")
Line 88: For i = 1 To 5

Source File: C:\Inetpub\wwwroot\webapp\TCPPipe.vb Line: 86

In the declarations of my class I have:
Public Class TCPPipe

Inherits System.Web.HttpApplication

Any help / suggestion will be greatly appreciated.

PS : I'm using VS.NET 2003


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com