The gatekeeper of reality is quantified imagination.
ASP.Net 3.5 And SGEN
Purpose
The purpose of this tutorial is to show how to fix an error with ASP.NET (Visual Studio 2008) when your project is using web services. The error that will be addressed here is "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information."
Introduction
The error above is generated when the serializer (SGEN) cannot locate resources with regard to web services in a project. In cases when you cannot simply specify "FullTrust" in the security portion of the web.config (that is, it fails to work), there is one other way to solve the error by changing the ASP.Net configuration on the local computer, detailed in the three steps illustrated below.
You experience the SGEN error when you try to build the project containing web services. The specific error involves "SGEN" as "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information."
With local administrator rights on the local computer, open control panel.
Open the Microsoft .Net Framework Configuration that is used by the project; being ASP.Net 3.5 most likely this will be "Microsoft .NET Framework 2.0 Configuration".