Solved

Inherit problem?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
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…

867 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

19 Experts available now in Live!

Get 1:1 Help Now