Last post Mar 10, 2010 09:20 AM by kfkyle
Mar 02, 2010 02:08 PM|kfkyle|LINK
I am having issues with the aspnet_merge.exe utility that may be related to this movement of the GAC assemblies to a different folder
The following error message is kicked out when I run it and the merge does not succeed. It almost seems like the new aspnet_merge.exe located under C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\ does not recocognize the .NET 4.0 GAC which has now moved
under the "C:\Windows\Microsoft.NET\assembly" folder for .NET 4?
We are currently using the Release Candidate for .NET 4 and plan to go-live with it as we begin our next development cycle. I've provided some details below with respect to the issue I am encountering. Our Visual Studio project has been upgraded to 2010 and
I confirmed that the refernced assemblies point to the .NET 4 framework assemblies within project references.
// Error kicked out by the aspnet_merge.exe
Utility to merge precompiled ASP.NET assemblies. Version 3.5.30729.
Copyright (c) Microsoft Corporation 2007. All rights reserved.
aspnet_merge: error occurred: An error occurred when merging assemblies: Unresolved assembly reference not allowed: System.Web.
// Sample from Merge log output
Running on Microsoft (R) .NET Framework v2.0.50727
mscorlib.dll version = 126.96.36.199
The list of input assemblies is:
// blah blah blah
All input assemblies have a compatible PeKind value.
AssemblyResolver: Assembly 'App_Code' is referencing assembly 'System.Web'.
AssemblyResolver: Attempting referencing assembly's directory.
AssemblyResolver: Did not find assembly in referencing assembly's directory.
AssemblyResolver: Attempting input directory.
AssemblyResolver: Did not find assembly in input directory.
AssemblyResolver: Attempting user-supplied directories.
AssemblyResolver: Did not find assembly in user-supplied directories.
AssemblyResolver: Unable to resolve reference. (It still might be found, e.g., in the GAC.)
// Batch File commands used to compile and then merge our web application.
SET WIN_SDK_BIN="C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\"SET MS_BUILD="C:\Windows\Microsoft.NET\Framework\v4.0.30128\"SET MS_BUILD_PROPERTIES="configuration=Release;TargetFrameworkVersion=v4.0"REM Dev BranchSET APPDIR=".\PrecompiledWeb\WebApp"SET MERGELOG=".\PrecompiledWeb\WebAppMergeLog.log"%MS_BUILD%msbuild.exe /v:normal /t:Clean;Rebuild /p:%MS_BUILD_PROPERTIES% WebApp.sln%WIN_SDK_BIN%aspnet_merge.exe -o WebUI.dll %APPDIR% -log %MERGELOG% -r -a -copyattrs
aspnet_merge .net 4 GAC resolution
Mar 02, 2010 11:54 PM|qwe123kids|LINK
Not ery sure ..
have seen the above link
Mar 03, 2010 08:15 AM|kfkyle|LINK
yea, Thanks, I saw this post as well. Tried unregistering then registering System.Web.dll with no success.
Mar 10, 2010 09:20 AM|kfkyle|LINK
I've submitted an MS Connect issue for this since I've recreated it with a newly created VS 2010 RC/.NET 4 solution containing a WebSite and class library project.