Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Inherit problem?

Posted on 2006-11-30
2
Medium Priority
?
217 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 150 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses
Course of the Month10 days, 11 hours left to enroll

886 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