Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Errors when pre-compiling ASP.NET 2.0 site

Reply
Thread Tools

Errors when pre-compiling ASP.NET 2.0 site

 
 
Paul Taylor
Guest
Posts: n/a
 
      11-04-2006
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\Temp orary
ASP.NET
Files\etrader\f7c42b9e\57554c2c\App_Web_updateprof ile.aspx.7a311ea4.0.vb(251):
error BC30182: Type expected.

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

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\etrader\f7c42b9e\57554c2c\App_Web_updateprof ile.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


 
Reply With Quote
 
 
 
 
Paul Taylor
Guest
Posts: n/a
 
      11-04-2006
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
List of free web site design, web site backgrounds, web site layoutsresources cyber XML 1 12-25-2007 11:48 PM
Free web site design, web site backgrounds, web site layoutsresources cyber HTML 0 12-24-2007 04:26 PM
List of free web site design, web site backgrounds, web site layoutsresources cyber HTML 0 12-21-2007 03:47 PM
List of free web site design, web site backgrounds, web site layoutsweb sites cyber HTML 1 12-19-2007 09:07 AM
Errors, errors, errors Mark Goldin ASP .Net 2 01-17-2004 08:05 PM



Advertisments