Solved

Inherit problem?

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now