Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...ASP.NET Child Application ErrorASP.NET Child Application Error
Previous
 
Next
New Post
6/22/2011 11:18 AM
 
I have been trying to get DotNetNuke to work on my server for sometime now but have not had any luck. I am installing in wwwroot/domain. I do use a .NET 4 application which is located in wwwroot/domain/application. It seems that anytime I install DotNetNuke it works but it seems to break the child application which is on .NET 4.

It does seem to be a known issue if the root application is running on .NET 2 or 3.5. See below:
http://www.asp.net/learn/whitepapers/aspnet4/breaking-changes
Search for "compilerversion" which will result in "ASP.NET 4 Child Applications Fail to Start When Under ASP.NET 2.0 or ASP.NET 3.5 Applications"

Below is the error I am getting on my child application. I have tried doing the work around listed on the asp.net site but either it's not working or I am not using the correct syntex (I rarely manually edit files so I am not familiar with how to format them.

Server Error in '/gallery' Application.


The value for the 'compilerVersion' attribute in the provider options must be 'v4.0' or later if you are compiling for version 4.0 or later of the .NET Framework. To compile this Web application for version 3.5 or earlier of the .NET Framework, remove the 'targetFramework' attribute from the <compilation> element of the Web.config file.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Configuration.Configurati sException: The value for the 'compilerVersion' attribute in the provider options must be 'v4.0' or later if you are compiling for version 4.0 or later of the .NET Framework. To compile this Web application for version 3.5 or earlier of the .NET Framework, remove the 'targetFramework' attribute from the <compilation> element of the Web.config file.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[Configurati sException: The value for the 'compilerVersion' attribute in the provider options must be 'v4.0' or later if you are compiling for version 4.0 or later of the .NET Framework. To compile this Web application for version 3.5 or earlier of the .NET Framework, remove the 'targetFramework' attribute from the <compilation> element of the Web.config file.]
System.Web.Compilation.MultiTargetingUtil.ValidateCompilerVersionFor40AndAbove(String compilerVersion) +235
System.Web.Compilation.MultiTargetingUtil.ValidateCompilerVersionFor40AndAbove() +76
System.Web.Compilation.MultiTargetingUtil.InitializeTargetFrameworkName() +101
System.Web.Compilation.MultiTargetingUtil.EnsureFrameworkNamesInitialized() +149
System.Web.Compilation.BuildManager.Initialize() +204
System.Web.Compilation.BuildManager.InitializeBuildManager() +246
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +350

[HttpException (0x80004005): The value for the 'compilerVersion' attribute in the provider options must be 'v4.0' or later if you are compiling for version 4.0 or later of the .NET Framework. To compile this Web application for version 3.5 or earlier of the .NET Framework, remove the 'targetFramework' attribute from the <compilation> element of the Web.config file.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8950644
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +258

So, I edited the file per the asp.net site as a work around and I then got the following error:

Server Error in '/gallery' Application.


Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: The 'location' start tag on line 33 position 4 does not match the end tag of 'appSettings'. Line 57, position 5.

Source Error:


Line 55: <add key="enableSimpleMembership" value="false" />
Line 56: <add key="autoFormsAuthentication" value="false" />
Line 57: </appSettings>
Line 58: <system.codedom>
Line 59: <compilers>


Source File: C:\Inetpub\wwwroot\imlay.org\web.config Line: 57


I am at a total loss here.... This is on a Windows 2003 Server with IIS 6.

Thanks.
 
New Post
6/24/2011 7:28 AM
 
Check the following link to see if this helps. I went through the same process when putting a child application under DNN.

http://www.byteblocks.com/post/2011/0...

Since you are getting tag mismatch error as well after deleteting targetFramework, I would recommend looking at web.config in Visual Studio editor to notice any error indicators in the file itself.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...ASP.NET Child Application ErrorASP.NET Child Application Error


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out