Solved

Inherit problem?

Posted on 2006-11-30
2
211 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

770 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