Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ASPX & Codebehind in separate directories
Message
De
15/08/2002 08:50:57
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00689313
Message ID:
00689911
Vues:
23
Cathi,

I changed the 'src' to Codebehind and get the following error:

The class file '/fchs/earlytrack/codebehind/admin/pages_security.vb' specified as the codebehind for 'security_pages.aspx' could not be loaded. Make sure that the codebehind attribute is the page or control directive properly references an existing code behind file.

The class file path and file name is correct, but VS.Net does not seem to be able to find the file.

Is this a known problem with VS.Net?

Any workarounds?

TIA

Rex

>You have to compile (build) your project before viewing pages. That's why
>you get that error.. it simply does not know where (or what) the base class
>you're inheriting from is.
>
>Also, the first line of your header should look something like (you use the attribute "Codebehind" instead of "src"):
>
>
>< % ERROR: @ Page Language="vb" AutoEventWireup="false" Codebehind="/fchs/earlytrack/codebehind/admin/pages_security.vb" Inherits="cb_pages_security" % >
>
>
>>Jayesh,
>>
>>The class is defined as follows:
>>
>>
>>Public Class cb_pages_security : Inherits Page
>>
>>
>>Any ideas?
>>
>>TIA
>>
>>Rex
>>
>>>Is cb_pages_security derived from Page object?
>>>
>>>>All,
>>>>
>>>>I have been tasked with putting a .Net application under a project in VS.Net. The ASPX and codebehind files are located in separate directories and the ASPX files are pathed to the CB file as follows:
>>>>
>>>>
>>>>< % ERROR: @ Page Inherits="cb_pages_security" src="/fchs/earlytrack/codebehind/admin/pages_security.vb" LANGUAGE="VB"  % >
>>>>
>>>>
>>>>The error I get is:
>>>>
>>>>
>>>>The file failed to load in the Web Form designer.  Please correct the following error, then load it again: Visual Studio cannot open a designer for the file because the class within it does not inherit from a class that can be visually designed.
>>>>
>>>>
>>>>How can I fix this problem?
>>>>
>>>>TIA
>>>>
>>>>Rex
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform