469,333 Members | 4,558 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,333 developers. It's quick & easy.

Session Management

Being new at web in general and starting in over my head
(http://www.vbdotnetheaven.com/Upload...GardenVb.aspx),
I'm hoping to get some general direction on implementing an interface. In
the article above, there are public listings of two interfaces Session and
SessionManager.

Specifically I am receiving this error:

Error 1 Cannot refer to an instance member of a class from within a shared
method or shared member initializer without an explicit instance of the
class. C:\VB8\SQLPoorMon\SQLPoorMon\SQLPoorMon\Default.as px.vb 41 12 SQLPoorMon

AND

a bunch of these:
Error 10 Class 'SessionManager' must implement 'Function createSessionId()
As String' for interface
'ISessionManager'. C:\VB8\SQLPoorMon\SQLPoorMon\SQLPoorMon\SessionMan ager.vb 18 16 SQLPoorMon
I am unsure of a method of dealing with an interface. For example, does the
declaration of the interface belong in the default.aspx or should it reside
in with the SessionManager class? How is the interface implemented? Is
there a call required from default.aspx similar to what might occur using a
WithEvents call? Does the interface need to be pre-registered in the GAC
before it can be implemented?

Help appreciated.
--
Regards,
Jamie
Mar 7 '07 #1
1 1294

"thejamie" <th******@discussions.microsoft.comwrote in message
news:32**********************************@microsof t.com...
Being new at web in general and starting in over my head
(http://www.vbdotnetheaven.com/Upload...ebGardenVb1110
2005083632AM/SessionWebGardenVb.aspx),
I'm hoping to get some general direction on implementing an interface. In
the article above, there are public listings of two interfaces Session and
SessionManager.

Specifically I am receiving this error:

Error 1 Cannot refer to an instance member of a class from within a shared
method or shared member initializer without an explicit instance of the
class. C:\VB8\SQLPoorMon\SQLPoorMon\SQLPoorMon\Default.as px.vb 41 12
SQLPoorMon
>
AND

a bunch of these:
Error 10 Class 'SessionManager' must implement 'Function createSessionId()
As String' for interface
'ISessionManager'.
C:\VB8\SQLPoorMon\SQLPoorMon\SQLPoorMon\SessionMan ager.vb 18 16 SQLPoorMon
>

I am unsure of a method of dealing with an interface. For example, does
the
declaration of the interface belong in the default.aspx or should it
reside
in with the SessionManager class? How is the interface implemented? Is
there a call required from default.aspx similar to what might occur using
a
WithEvents call? Does the interface need to be pre-registered in the GAC
before it can be implemented?

Help appreciated.
Try asking in microsoft.public.dotnet.framework.aspnet

this group here is for Classic ASP
Mar 7 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

27 posts views Thread by mrbog | last post: by
3 posts views Thread by Erik Johnson | last post: by
5 posts views Thread by Abhilash.k.m | last post: by
2 posts views Thread by John A Grandy | last post: by
13 posts views Thread by James Hunter Ross | last post: by
5 posts views Thread by rug | last post: by
2 posts views Thread by =?Utf-8?B?YW5vb3A=?= | last post: by
5 posts views Thread by knyghtfyre | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by haryvincent176 | last post: by
reply views Thread by Marylou17 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.