I have a moderately large VB.NET ASP.NET website, originally created in ASP.NET 2 and recently upgraded to ASP.NET 4.
I recently built my own packaging scripts that use aspnet_compiler and aspnet_merge.
I was careful to use the .NET Framework v4 version of aspnet_compiler.
When running aspnet_merge on the precompiled website, I got a very strange error :
Utility to merge precompiled ASP.NET assemblies. Version 3.5.30729.The problem was pretty obvious, but stumped me for probably an hour or so : I was using the wrong version of aspnet_merge.exe.
Copyright (c) Microsoft Corporation 2007. All rights reserved.
aspnet_merge: error occurred: An error occurred when merging assemblies: Unresolved assembly reference not allowed: Microsoft.VisualBasic.
This page helped me find the correct version. On my computer, that's in :
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\aspnet_merge.exe
HTH :o)