I'm developing a WebApplication that as several dependencies. Till now, the WebApplication worked fine in debug mode. I'm now trying to compile it in release mode and that's the problem!
I keep getting the following error:
Error: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1892,9): error MSB6006: "sgen.exe" exited with code 1.
I've tried changing the AssemblyVersion in the AssemblyInfo.cs to a fixed number, but it didn't work either.
Marco Mendon...
Member
41 Points
25 Posts
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for mor...
Jan 12, 2007 11:01 AM|LINK
Hi,
I'm developing a WebApplication that as several dependencies. Till now, the WebApplication worked fine in debug mode. I'm now trying to compile it in release mode and that's the problem!
I keep getting the following error:
Error: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1892,9): error MSB6006: "sgen.exe" exited with code 1.
I've tried changing the AssemblyVersion in the AssemblyInfo.cs to a fixed number, but it didn't work either.
So, how can i solve this?
VS2005 is running the following command:
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin\sgen.exe /assembly:"C:\Users\MarcoMendonca\Projects\Portal\Development\Portal\ePortalNavision FrontEnd\WebSite\obj\Release\WebSite.dll" /proxytypes /reference:"C:\Users\MarcoMendonca\Projects\Portal\Development\Portal\ePortalNavision FrontEnd\BusinessLayer.Data\bin\Release\BusinessLayer.Data.dll" /reference:"C:\Users\MarcoMendonca\Projects\Portal\Development\Portal\ePortalNavision FrontEnd\BusinessLayer.Data.SqlClient\bin\Release\BusinessLayer.Data.SqlClient.dll" /reference:"C:\Users\MarcoMendonca\Projects\Portal\Development\Portal\ePortalNavision FrontEnd\BusinessLayer.Entities\bin\Release\BusinessLayer.Entities.dll" /reference:"C:\Users\MarcoMendonca\Projects\Portal\Development\Portal\ePortalNavision FrontEnd\BusinessLayer.Services\bin\Release\BusinessLayer.Services.dll" /reference:"C:\Users\MarcoMendonca\Projects\Portal\Development\Portal\ePortalNavision FrontEnd\BusinessLayer.Web\bin\Release\BusinessLayer.Web.dll" /reference:\\vs_eportalnet\Refs2.0\Link.Data.dll /reference:"C:\Users\MarcoMendonca\Projects\Portal\Development\Portal\ePortalNavision FrontEnd\EPortal.FE.ContentServer\bin\Release\Link.EPortal.FE.ContentServer.dll" /reference:\\vs_eportalnet\Refs2.0\Link.Portal.dll /reference:\\vs_eportalnet\Refs2.0\Link.StringMapping.dll /reference:\\vs_eportalnet\Refs2.0\Link.Web.WebControls.dll /reference:bin\Microsoft.Practices.EnterpriseLibrary.Common.dll /reference:bin\Microsoft.Practices.EnterpriseLibrary.Configuration.Design.dll /reference:bin\Microsoft.Practices.EnterpriseLibrary.Data.Configuration.Design.dll /reference:bin\Microsoft.Practices.EnterpriseLibrary.Data.dll /reference:bin\Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.Design.dll /reference:bin\Microsoft.Practices.EnterpriseLibrary.Logging.Database.Configuration.Design.dll /reference:bin\Microsoft.Practices.EnterpriseLibrary.Logging.Database.dll /reference:bin\Microsoft.Practices.EnterpriseLibrary.Logging.dll /reference:bin\Microsoft.Practices.ObjectBuilder.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.configuration.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.DirectoryServices.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.EnterpriseServices.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Messaging.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Web.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Web.Services.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /compiler:/delaysign-
Any suggestions?
Regards...
Marco Mendon...
Member
41 Points
25 Posts
Re: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for...
Jan 12, 2007 06:03 PM|LINK
Ok, I've managed to solve this problem.
Just went to "WebSite Properties"->"Build" and selected "Off" in the "Generate serialization assembly" (in the "Output" section).
I'll try to collect more info about the reason why the error was obtained. If someone knows the reason, feel free to post...