|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
The element 'compilation' has invalid child element 'compilers'.I am methodically seeing the error below: The element 'compilation' has invalid child element 'compilers'. List of possible elements expected: 'assemblies, buildProviders, codeSubDirectories, expressionBuilders'. Here's what the web config looks like. The error doesn't cause any issues and according to the MSDN documentation this is valid. So why is VS2005 giving me this bogus error? <configuration> <system.web> <httpRuntime maxRequestLength="8192"/> <!-- DYNAMIC DEBUG COMPILATION Set compilation debug="true" to insert debugging symbols (.pdb information) into the compiled page. Because this creates a larger file that executes more slowly, you should set this value to true only when debugging and to false at all other times. For more information, refer to the documentation about debugging ASP.NET files. --> <compilation defaultLanguage="vb" debug="true" batch="false"> <compilers> <compiler language="vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" extension=".VB" compilerOptions="/define:Debug=True /define:Trace=True /imports:Microsoft.VisualBasic,System,System.Collections,System.Configuration,System.Data,System.Drawing,System.Web,System.Web.UI,System.Web.UI.HtmlControls,System.Web.UI.WebControls"/></compilers> <assemblies> etc, etc, In 2.0, the <compilers> section is found in machine.config,
so you don't need to place it in web.config. Check out machine.config.comments in the .Net Framework\config dir. The syntax has changed. It's now in the <system.codedom> section. See : http://msdn2.microsoft.com/en-us/library/e4hwk57e.aspx Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ ASPNETFAQ.COM : http://www.aspnetfaq.com/ Foros de ASP.NET en Español : http://asp.net.do/foros/ ====================================== Show quoteHide quote "Robert" <robertv@noemail.nospam> wrote in message news:9999C8CB-CF4F-4F1A-89A5-775753A7B124@microsoft.com... >I have a number of web projects converted from 1.1 to 2.0 in VS2005. > > I am methodically seeing the error below: > > The element 'compilation' has invalid child element 'compilers'. List of > possible elements expected: 'assemblies, buildProviders, codeSubDirectories, > expressionBuilders'. > > Here's what the web config looks like. The error doesn't cause any issues > and according to the MSDN documentation this is valid. So why is VS2005 > giving me this bogus error? > > <configuration> > <system.web> > <httpRuntime maxRequestLength="8192"/> > <!-- DYNAMIC DEBUG COMPILATION > Set compilation debug="true" to insert debugging symbols (.pdb > information) > into the compiled page. Because this creates a larger file that > executes > more slowly, you should set this value to true only when debugging > and to > false at all other times. For more information, refer to the > documentation about > debugging ASP.NET files. > --> > <compilation defaultLanguage="vb" debug="true" batch="false"> > <compilers> > <compiler language="vb" type="Microsoft.VisualBasic.VBCodeProvider, > System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" > extension=".VB" compilerOptions="/define:Debug=True /define:Trace=True > /imports:Microsoft.VisualBasic,System,System.Collections,System.Configuration,System.Data,System.Drawing,System.Web,System.Web.UI,System.Web.UI.HtmlControls,System.Web.UI.WebControls"/></compilers> > <assemblies> > > etc, etc, > > Thanks for the response.
I removed it entirely from web.config as it is apparently unnecessary. Guess I wish the migration wizard could of either 1) removed it for me or 2) flagged it as a todo with an explanation. Thx. R- Show quoteHide quote "Juan T. Llibre" wrote: > In 2.0, the <compilers> section is found in machine.config, > so you don't need to place it in web.config. > > Check out machine.config.comments in the .Net Framework\config dir. > > The syntax has changed. > It's now in the <system.codedom> section. > > See : http://msdn2.microsoft.com/en-us/library/e4hwk57e.aspx > > > > > Juan T. Llibre, ASP.NET MVP > ASP.NET FAQ : http://asp.net.do/faq/ > ASPNETFAQ.COM : http://www.aspnetfaq.com/ > Foros de ASP.NET en Español : http://asp.net.do/foros/ > ====================================== > "Robert" <robertv@noemail.nospam> wrote in message > news:9999C8CB-CF4F-4F1A-89A5-775753A7B124@microsoft.com... > >I have a number of web projects converted from 1.1 to 2.0 in VS2005. > > > > I am methodically seeing the error below: > > > > The element 'compilation' has invalid child element 'compilers'. List of > > possible elements expected: 'assemblies, buildProviders, codeSubDirectories, > > expressionBuilders'. > > > > Here's what the web config looks like. The error doesn't cause any issues > > and according to the MSDN documentation this is valid. So why is VS2005 > > giving me this bogus error? > > > > <configuration> > > <system.web> > > <httpRuntime maxRequestLength="8192"/> > > <!-- DYNAMIC DEBUG COMPILATION > > Set compilation debug="true" to insert debugging symbols (.pdb > > information) > > into the compiled page. Because this creates a larger file that > > executes > > more slowly, you should set this value to true only when debugging > > and to > > false at all other times. For more information, refer to the > > documentation about > > debugging ASP.NET files. > > --> > > <compilation defaultLanguage="vb" debug="true" batch="false"> > > <compilers> > > <compiler language="vb" type="Microsoft.VisualBasic.VBCodeProvider, > > System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" > > extension=".VB" compilerOptions="/define:Debug=True /define:Trace=True > > /imports:Microsoft.VisualBasic,System,System.Collections,System.Configuration,System.Data,System.Drawing,System.Web,System.Web.UI,System.Web.UI.HtmlControls,System.Web.UI.WebControls"/></compilers> > > <assemblies> > > > > etc, etc, > > > > > > > Hi Robert,
Yes, what a pity that the migration wizard was not able to automatically correct this, maybe it is due to the <system.codedom> is outside the <system.web> that beyond the migration checking. Anyway, the error message make some sense, also thanks for Juan's informative suggestion. Thanks, Steven Cheng Microsoft Online Support Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.) -------------------- | Thread-Topic: The element 'compilation' has invalid child element <ewe5xmX6FHA.3***@TK2MSFTNGP10.phx.gbl>'compilers | thread-index: AcXpe7dhGIAffoz4SzOtjdSjQDOyUA== | X-WBNR-Posting-Host: 67.180.214.235 | From: =?Utf-8?B?Um9iZXJ0?= <robertv@noemail.nospam> | References: <9999C8CB-CF4F-4F1A-89A5-775753A7B***@microsoft.com> Show quoteHide quote | Subject: Re: The element 'compilation' has invalid child element microsoft.public.dotnet.framework.aspnet:358118'compilers | Date: Mon, 14 Nov 2005 16:30:01 -0800 | Lines: 72 | Message-ID: <0A4CC52E-0180-414A-9D4D-DAF5F9482***@microsoft.com> | MIME-Version: 1.0 | Content-Type: text/plain; | charset="Utf-8" | Content-Transfer-Encoding: 8bit | X-Newsreader: Microsoft CDO for Windows 2000 | Content-Class: urn:content-classes:message | Importance: normal | Priority: normal | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 | Newsgroups: microsoft.public.dotnet.framework.aspnet | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250 | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGXA03.phx.gbl | Xref: TK2MSFTNGXA02.phx.gbl Show quoteHide quote | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet /imports:Microsoft.VisualBasic,System,System.Collections,System.Configuratio| | Thanks for the response. | | I removed it entirely from web.config as it is apparently unnecessary. | | Guess I wish the migration wizard could of either 1) removed it for me or 2) | flagged it as a todo with an explanation. | | Thx. | R- | | "Juan T. Llibre" wrote: | | > In 2.0, the <compilers> section is found in machine.config, | > so you don't need to place it in web.config. | > | > Check out machine.config.comments in the .Net Framework\config dir. | > | > The syntax has changed. | > It's now in the <system.codedom> section. | > | > See : http://msdn2.microsoft.com/en-us/library/e4hwk57e.aspx | > | > | > | > | > Juan T. Llibre, ASP.NET MVP | > ASP.NET FAQ : http://asp.net.do/faq/ | > ASPNETFAQ.COM : http://www.aspnetfaq.com/ | > Foros de ASP.NET en Español : http://asp.net.do/foros/ | > ====================================== | > "Robert" <robertv@noemail.nospam> wrote in message | > news:9999C8CB-CF4F-4F1A-89A5-775753A7B124@microsoft.com... | > >I have a number of web projects converted from 1.1 to 2.0 in VS2005. | > > | > > I am methodically seeing the error below: | > > | > > The element 'compilation' has invalid child element 'compilers'. List of | > > possible elements expected: 'assemblies, buildProviders, codeSubDirectories, | > > expressionBuilders'. | > > | > > Here's what the web config looks like. The error doesn't cause any issues | > > and according to the MSDN documentation this is valid. So why is VS2005 | > > giving me this bogus error? | > > | > > <configuration> | > > <system.web> | > > <httpRuntime maxRequestLength="8192"/> | > > <!-- DYNAMIC DEBUG COMPILATION | > > Set compilation debug="true" to insert debugging symbols (.pdb | > > information) | > > into the compiled page. Because this creates a larger file that | > > executes | > > more slowly, you should set this value to true only when debugging | > > and to | > > false at all other times. For more information, refer to the | > > documentation about | > > debugging ASP.NET files. | > > --> | > > <compilation defaultLanguage="vb" debug="true" batch="false"> | > > <compilers> | > > <compiler language="vb" type="Microsoft.VisualBasic.VBCodeProvider, | > > System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" | > > extension=".VB" compilerOptions="/define:Debug=True /define:Trace=True | > > n,System.Data,System.Drawing,System.Web,System.Web.UI,System.Web.UI.HtmlCont rols,System.Web.UI.WebControls"/></compilers> Show quoteHide quote | > > <assemblies> | > > | > > etc, etc, | > > | > > | > | > | > |
Other interesting topics
User Control Security on .Net 2.0
.Net 2.0 - Should I? RadioButtonList and Javascript What kind of error is this?? Using a user control as EditItemTemplate in a DataList ADODB.Connection closing issues Tragic loss of the "embed" tag sorted List gridview - data format First Ever Project - Beginner Please Help |
|||||||||||||||||||||||