Make sure that the class defined in this code file matches the 'inherits' attribute

  • Thread starter christian.Blackburn
  • Start date
C

christian.Blackburn

Hi Gang,

On my development system I am not getting this error, but it does
happen when I upload it to my ISP. Can someone tell me why this is
happening? I don't have any user-defined controls which seems to be
the primary cause. My code is ASP 2.0/VB.

Thanks a bunch,
Christian Blackburn
---------------------------------------------------------------------------------------------------------------------------------------
Server Error in '/' Application.
--------------------------------------------------------------------------------

Compilation Error
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.

Compiler Error Message: ASPNET: Make sure that the class defined in
this code file matches the 'inherits' attribute, and that it extends
the correct base class (e.g. Page or UserControl).

Source Error:



Line 6:
Line 7:
Line 8: Partial Class LoginH
Line 9: Inherits System.Web.UI.Page
Line 10:


Source File: E:\web\motoadvisor\htdocs\Login.aspx.vb Line: 8 \
---------------------------------------------------------------------------------------------------------------------------------------
 
C

Christian Blackburn

Hi Gang,

I guess this is a pretty small group, because no-one answered my
question. However, I did figure it out and would very much like the
next guy to not suffer the same problems I did. I found so much
worthless unrelated Q+A on the web. It was an ASP.net 1.1 \bin\ folder
on the remote website that was causing the problems. Once I deleted
that folder the issue went away entirely.

Thanks,
Christian Blackburn
 

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

Top