PDA

View Full Version : compile error asp.net 3.5


omicrondemo
11-01-2007, 05:30 AM
Hi I've uploaded a working ASP.NET 3.5 page(s) to the iis7 beta hosting site, but I get a compilation error

Compiler Error Message: BC30041: Maximum number of errors has been exceeded.

My pages work locally using Microsoft Visual Web Developer 2008 Express Edition, and I have had this working before.

One thing I notice is that the version information says this:

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1416; ASP.NET Version:2.0.50727.1416

Surely it should be Version 3.5????

In which case it's not my code, but the server has the wrong version of ASP.NET on it.

Tushar

bruce
11-01-2007, 06:00 AM
.NET 3.5 is the framework version, it still uses ASP.NET 2.0.

The IIS 7.0 beta has the .NET 3.5 framework (and all its assemblies) installed.

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

Aristotle
11-01-2007, 07:06 AM
Yes, the new .NET versioning is a mess. Although .NET 3.5 uses .NET 2.0 as the base framework, it comes with new versions of the VB and C# compilers. If you expand the detailed compiler output when you get the error, you will see the version of the compiler being used. For C# it will say:

Microsoft (R) Visual C# 2008 Compiler Beta 2 version 3.05.20706.1
for Microsoft (R) .NET Framework version 3.5





Aristotle

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

omicrondemo
11-01-2007, 10:25 AM
OK thanks that explains it.

Tushar /emoticons/cool.gif