User Control Parser Error: not a valid base class

G

Guest

I have an .ascx that gives this error:

"Parser Error Message: 'OurCompanyID.ThisAppNamespace.Menu' is not a valid
base class because it does not extend class 'System.Web.UI.Page'."

I didn't think it was supposed to extend 'System.Web.UI.Page'. This is the
start of the code in the .ascx.vb:

Imports System
Imports System.Web
Imports System.Web.UI.Page
Imports System.Web.UI.WebControls

Namespace OurCompanyID.ThisAppNamespace

Public Class Menu

Inherits System.Web.UI.UserControl

.....

We have a similar site on the same server that does not give this error.
What's more, if I run it from localhost, whether in or out of VS .NET 2K3, it
doesn't give this error. It's only when I run it from the server like the
end-user does that it gives the error.

I've tried re-building and copying the .dll to the bin folder; that doesn't
work. I've compared IIS properties for both sites. The biggest difference is
that the site that works is under the Default Web Site and the one that
doesn't is under a different web site. Nothing I've Googled has been helpful.

Any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top