Solved

Inherit problem?

Posted on 2006-11-30
2
212 Views
Last Modified: 2010-04-23

My C# class code shows an error in VB?

public class MyModule : IHttpModule         << Fine in C#

Public Class HeaderFooterModule
        Inherits IHttpModule                      << Shows the line, error box says Classes can only inherit from other classes.

Any ideas?

TIA
0
Comment
Question by:srussell705
2 Comments
 
LVL 39

Accepted Solution

by:
appari earned 50 total points
ID: 18045316
it should be
Implements IHttpModule
0
 
LVL 1

Author Comment

by:srussell705
ID: 18045436
Thanks.  Not enough coffee this morning.

That changes error message to :
 'MyModule' must implement 'Overridable Sub Dispose()' for interface 'System.Web.IHttpModule'.

I'm close.  Added:
Public Sub Dispose() Implements System.Web.IHttpModule.Dispose

        End Sub

        Public Sub Init(ByVal context As System.Web.HttpApplication) Implements System.Web.IHttpModule.Init

        End Sub

And we get a clean build

Thanks again.

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

820 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