Re: ASPX unable to find class properties

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: bruce barker (nospam_brubar_at_safeco.com)
Date: 09/24/04


Date: Thu, 23 Sep 2004 17:05:39 -0700

while the compiled code is in the gac, the .net compiler (when it compiles
the aspx page) needs additional information that is stored in the dlls. if
you don't want to install the dll's on the server then you will need to use
the wrapper approach.

-- bruce (sqlwork.com)

"Tony D" <TonyD@discussions.microsoft.com> wrote in message
news:2E35C515-A186-4D96-B2D5-FD25E122CAD4@microsoft.com...
> Hello,
>
> When I try to reference a class property from within an ASPX file, I get a
> "reference not found" error. This only happens in our production
> environment, where we have the Assemblies loaded in the GAC. On our
> Development machines, where we the Assemblies in the local "/bin" folder,
it
> works fine.
>
> We've been able to get around this by creating a "wrapper" property for
the
> actual class property in the ASPX code-behind file, but I'm curious why
ASPX
> can't find it when it's in the GAC.
>
> I suppose, we could also make it work by putting the Assemblies into the
> local /bin folder, but our Production environment has hundreds of /bin
> folders, so it wouldn't be very nice.
>
> Thanks.
> --
> - Tony D



Relevant Pages

  • Re: Parsing an html/aspx file
    ... Compiling the ASPX and using reflection I guess that's one way to use the ... may have to play around with some compiler settings. ... I did say it would be another matter if the HTML is not well formed. ... .net parses asp.net files by looking for well formed asp.net ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: automatic namespace importing
    ... Generation of a *.cs or .vb file holding code that matches the ASPX declarations. ... or using of vbc.exe (VB.NET compiler) to compile *.vb file into DLL ... > Yes, CSC compiles the code, but doesn't generates this class from html. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Reportviewer Local Mode
    ... If so, the compiler ... cause you not be able to modify the aspx file after publishing). ... This posting is provided "AS IS" with no warranties, and confers no rights. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: automatic namespace importing
    ... is autogenerated by the csc compiler, ... ASP.NET which is compiling the .aspx files, as you claim, ... > namespace is in mscorlib.dll, ... It is much easier to work with code and html in the same page. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: problems understanding ViewState
    ... In addition to what Ladislav has said, all the values specified in the aspx ... code are used by the compiler as initial values and are not kept in the view ... Whole aspx file is parsed and compiled when it is requested first time. ... controls are initialized). ...
    (microsoft.public.dotnet.framework.aspnet)