Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Error
mjimlay
#1 Posted : Friday, 13 May 2011 7:19:07 PM(UTC)
Rank: Member

Joined: 15/11/2010(UTC)
Posts: 5
Location: Pensacola, FL

My gallery is installed in wwwroot/imlay.org/gallery and I recently installed a ASP Application into wwwroot/imlay.org/ and since I have done that, I am getting the following error when trying to access my gallery... any suggestions? I have restarted SQL Server and IIS 6.0. This is a Windows 2003 R2 x86 Server.

URL: http://www.imlay.org/gallery

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.ConfigurationErrorsException: 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:


[ConfigurationErrorsException: 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





Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Roger Martin
#2 Posted : Friday, 13 May 2011 7:30:40 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

This is a known issue with .NET 4.0. Read here for more info and a workaround (search the page for "compilerVersion".
Roger Martin
Creator and Lead Developer of Gallery Server Pro
mjimlay
#3 Posted : Friday, 13 May 2011 7:56:09 PM(UTC)
Rank: Member

Joined: 15/11/2010(UTC)
Posts: 5
Location: Pensacola, FL

Thanks. I have done that and now I am a getting 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



Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Roger Martin
#4 Posted : Friday, 13 May 2011 8:02:36 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

I am not sure what is going on with that. Try searching the internet or carefully studying your file for syntax errors. The issue is not really a GSP one, but rather an ASP.NET one. I hope you understand that my free tech support needs to stay focused on issues directly related to GSP.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
damo
#5 Posted : Tuesday, 9 August 2011 9:32:19 AM(UTC)
Rank: Member

Joined: 30/10/2010(UTC)
Posts: 6

I had the same original issue with the compiler version and solved it by removing

<compilation debug="false" targetFramework="4.0">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
</compilation>

from the web.config

hope this helps
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.