Unrecognized attribute 'targetFramework'.

Analyzes .NET assemblies for types of exceptions

Moderators: Luke Jefferson, Charles Brown, AndrewH, melvyn.harbour, Chris.Allen, dom.smith

Unrecognized attribute 'targetFramework'.

Postby carl.schutte » Mon May 16, 2011 12:04 pm

Does anybody know how I fox this error?

An exception was encountered while trying to load the assembly C:\\Users\\Carlschutte\\Documents\\Visual Studio 2010\\Projects\\ManagementInformationReporting\\ManagementInformationReporting\\Default.aspx.
RedGate.Exceptions.AssemblyNotLoadedException
at RedGate.ExceptionHunter.Logic.CecilSPI.DotNetAssembly.a(Exception )
at RedGate.ExceptionHunter.Logic.CecilSPI.DotNetAssembly.a(Boolean )
at RedGate.ExceptionHunter.Logic.CecilSPI.DotNetAssembly.a(String )
at RedGate.ExceptionHunter.Logic.CecilSPI.DotNetAssembly..ctor(IExceptionHunterSession session, String fullPathname)
at y.GetPE(String fullPathname)
at v.AddSessionAssembliesAndReferences(IEnumerable`1 filenames)
at RedGate.ExceptionHunter.UI.MainForm.<>c__DisplayClass21.<AddAssemblies>b__1d()

Caused by:

Compilation of ASP.NET pages did not succeed: Utility to precompile an ASP.NET applicationCopyright (C) Microsoft Corporation. All rights reserved.C:\\Users\\Carlschutte\\Documents\\Visual Studio 2010\\Projects\\ManagementInformationReporting\\ManagementInformationReporting\\web.config(26): error ASPCONFIG: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
RedGate.Exceptions.AssemblyNotLoadedException
at G.FullNameForAssembly(String filename)
at cB.a(String , Boolean )
at bz.LoadAssemblyFromFile(String filename)
at bs.e.PerformTask()
at bs.a()
carl.schutte
 
Posts: 2
Joined: Mon May 16, 2011 11:58 am
Location: Sydney

Postby Brian Donahue » Mon May 16, 2011 2:44 pm

I think this is just the lack of support for Microsoft .NET version 4 in Exception Hunter. targetFramework was an assembly-level attribute added to v4 to allow it to run multiple versions of the Framework.

The next version of Exception Hunter will be able to process .NET 4 assemblies.
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Re:

Postby carl.schutte » Tue May 17, 2011 12:27 am

Thanks Brian - I wasn't aware that .NET 4 is not currently supported.
I'll try to downgrade to .NET 3.5 in the interim and see if I can get it working.

Brian Donahue wrote:I think this is just the lack of support for Microsoft .NET version 4 in Exception Hunter. targetFramework was an assembly-level attribute added to v4 to allow it to run multiple versions of the Framework.

The next version of Exception Hunter will be able to process .NET 4 assemblies.
carl.schutte
 
Posts: 2
Joined: Mon May 16, 2011 11:58 am
Location: Sydney


Return to Exception Hunter 2

Who is online

Users browsing this forum: No registered users and 0 guests