Profile in global.asax

S

Saber

I get an error message when using Profile object in global.asax :

Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
Dim browser As String = "test"
Profile.Browser = browser 'line 25
End Sub

Error message:
Object reference not set to an instance of an object.
(it points to line 25)

I don't think it is because of bad connection or database related stuff,
because in other pages of my project (except global.asax) it works properly.

TIA for your responses
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,161
Latest member
GertrudeMa
Top