Problem with inheritance of code behind page

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: John Morgan (jfm_at_XXwoodlander.co.uk)
Date: 06/14/04


Date: Mon, 14 Jun 2004 23:47:46 +0100

I am using Visual Studio with code behind to build files within an
application. The name of the project is bsecsSql.

Everything works fine on the local computer when I use 'copy project'
to copy it to a folder and use an address such as :
http://cms2/bsecsloc/management/electionPublic/candidateDetails.aspx

but when I upload it to an internet server and attempt to access a
page eg
http://www.bsecs.org.uk//management/electionPublic/candidateDetails.aspx:
 
 I get the message
 ""Could not load type 'bsecsSQL.candidateDetails" with the following
line outlined in red as an error line

 <%@ Page Language="vb" AutoEventWireup="false"
Codebehind="candidateDetails.aspx.vb"
Inherits="bsecsSQL.candidateDetails" Trace="true" %>
 
 This is presumably because the address after 'Inherits' is
"bsecsSQL.candidateDetails". However I cannot get the page to work if
I merely put in
 inherits"candidateDetails".
 
 My question is how can ,I within or outside Visual Studio 2003,
configure the 'inherits' property so that it will work with the URL
shown above as well as on the local machine?
 
 Best wishes, John Morgan



Relevant Pages

  • Inherited Component Problems
    ... A inherits from System.ComponentModel.Component. ... registry key for the AssemblyFolders key with this output as the default ... Running under executable C:\Program Files\Microsoft Visual Studio .NET ... Policy not being applied to reference at this time (private, custom, ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Assemblies for custom component not loading
    ... A inherits from System.ComponentModel.Component. ... registry key for the AssemblyFolders key with this output as the default ... Running under executable C:\Program Files\Microsoft Visual Studio .NET ... Policy not being applied to reference at this time (private, custom, ...
    (microsoft.public.dotnet.framework)
  • Re: Would like to see the Generated code in visual studio 2005
    ... I am using VB of Visual studio 2005 ... Under Public Class form1 ... Inherits system.windows.forms.form ... Seth Rowe ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Multiple Codebehind Pages? Possible/Practical?
    ... BasePage.cs - base class ... Category.aspx.cs - Your category page inherits from base ... How does each class file know about the other? ... I'm not good with Visual Studio, ...
    (microsoft.public.dotnet.framework.aspnet)
  • What does this message mean
    ... I just started getting this message from the Visual Studio command line ... compiler. ... named with keywords such as. ... keywords may have something to do with the "Could not load type" ...
    (microsoft.public.dotnet.general)