Errors when pre-compiling ASP.NET 2.0 site

Discussion in 'ASP .Net' started by Paul Taylor, Nov 4, 2006.

  1. Paul Taylor

    Paul Taylor Guest

    Hello, I wonder if anyone can help with this.

    I have an ASP.NET 2.0 site that runs correctly on the local machine inside
    or outside of the IDE. When I build the site, it produces some warning
    messages, but no errors. When I come to Publish the site, it fails during
    precompilation with three "BC30182: Type Expected" errors. The output trace
    is below:

    *********** BEGIN TRACE

    Building directory
    '/ETrader/'.c:\inetpub\wwwroot\ETrader\Secure\SaleCancelled.aspx(1):
    Publication (web): C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
    ASP.NET
    Files\etrader\f7c42b9e\57554c2c\App_Web_updateprofile.aspx.7a311ea4.0.vb(251):
    error BC30182: Type expected.

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
    Files\etrader\f7c42b9e\57554c2c\App_Web_updateprofile.aspx.7a311ea4.0.vb(251,0):
    error BC30182: Type expected.

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
    Files\etrader\f7c42b9e\57554c2c\App_Web_updateprofile.aspx.7a311ea4.0.vb(253,0):
    error BC30182: Type expected.

    Pre-compilation Complete

    *********** END TRACE

    These error messages always refer to the same file updateprofile.aspx.
    However the first message of the three referns to another file in the same
    directory as updateprofile.aspx. This is not alway the same file.

    The error message doesn't seem to make sense as all types used in the page
    are defined. As I mentioned, there are no compilation errors when I build
    the project, and I have both Option Explicit and Option Strict switched on.

    Does anyone know what might cause these errors?

    Paul
    Paul Taylor, Nov 4, 2006
    #1
    1. Advertising

  2. Paul Taylor

    Paul Taylor Guest

    After further testing, I discovered that these errors only happen when the
    "Allow this precompiled site to be updatable" option is checked. That may
    provide some clues.

    Paul
    Paul Taylor, Nov 4, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Florian Marinoiu

    Re: Pre-compiling asp.net application

    Florian Marinoiu, Jun 27, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    465
    Florian Marinoiu
    Jun 27, 2003
  2. Rocky Moore
    Replies:
    7
    Views:
    1,720
    mikeb
    Jan 14, 2004
  3. Mark Goldin

    Errors, errors, errors

    Mark Goldin, Jan 17, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    927
    Mark Goldin
    Jan 17, 2004
  4. =?Utf-8?B?S2V2aW4gQnVydG9u?=

    Pre-Send Request Headers, Pre-Send Request Content

    =?Utf-8?B?S2V2aW4gQnVydG9u?=, Dec 31, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    1,031
    =?Utf-8?B?S2V2aW4gQnVydG9u?=
    Dec 31, 2004
  5. Replies:
    4
    Views:
    544
    Bruce Barker
    Nov 1, 2005
Loading...

Share This Page