P
Paul Taylor
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
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