Re: Problem with inheritance of code behind page

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


Date: Tue, 15 Jun 2004 22:30:16 +0100


Thank you John and Natty for your help.

No, the bin directory was not in the bin directory of the target
server! Going on what you said I changed the location of the bin
directory from bsecs/management/ to bsecs/ , the target server and
this got things working together with moving global.asax into the root
bsecs folder.

I then decided to delete the'management' folder and copy the files
and folders of the project directly into the root bsecs folder and
this works OK.

However I think what I should have done is to add a reference in the
project properties as John was suggesting and I could then have used
my original folder configuration.

I really do appreciate the help I get from this forum,

Best wishes, John Morgan

On Mon, 14 Jun 2004 23:47:46 +0100, John Morgan
<jfm@XXwoodlander.co.uk> wrote:

>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

  • Re: SP3 install failure/328290
    ... Thanks John, ... specified and he does have full rights on the folder. ... that protected my server from Slammer and was attemtping ... >you're installing a SQL Server 2000 "Standard Edition" ...
    (microsoft.public.sqlserver.security)
  • Re: Sending on behalf of mail-enabled folder > "You do not have permission to send to this recip
    ... John may have Send As allow rights, but are there inherited Deny rights ... So John is sending to himself in the To field? ... privileges for that folder as well. ... Exchange 2000 server). ...
    (microsoft.public.exchange.admin)
  • Re: dll not being created in asp.net application
    ... The folder location is bin\. ... >> server, the dll gets created locally but not added to the production ... >> bin directory. ... >> Why did it quit working and what can I do to get it working again? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: dll not being created in asp.net application
    ... The folder location is bin\. ... >> server, the dll gets created locally but not added to the production ... >> bin directory. ... >> Why did it quit working and what can I do to get it working again? ...
    (microsoft.public.dotnet.general)
  • Re: IIS Bin folder Hiding automatically
    ... about the bin directory being inaccessible either:( ... > On IIS5, ASP.Net will actively change metabase property to prevent IIS ... but the folder itself should not be hidden. ... >> server get hidden so this reason all asp.net project get ...
    (microsoft.public.inetserver.iis.security)