Select the product you need help with
HOW TO: Create and Use a Meta Data AssemblyArticle ID: 323491 - View products that this article applies to. This article was previously published under Q323491 On This PageSUMMARY
This step-by-step article describes what meta data assemblies are and in what scenarios you can use them. This article also explains how to use the Soapsuds tool with the nowrappedproxy flag to generate a meta data assembly.
RequirementsThe following list outlines the recommended hardware, software, network infrastructure, and service packs that you need:
What Are Meta Data Assemblies?Meta data assemblies are .NET Framework assemblies that contain only meta data and type information. Meta data assemblies are similar to type libraries in COM, but meta data assemblies do not contain any implementation code.Together with a distributed client application, you can deploy meta data assemblies that contain enough information for that client application to create a remote proxy and use that remote proxy to invoke methods on the actual assembly, which may reside on a different computer. The following guide demonstrates how to generate a meta data assembly from a simple .NET-based component. Create a Simple .NET Framework Component
Use the Soapsuds Tool to Generate the Meta Data AssemblyThis section explains how to use the Soapsuds tool (Soapsuds.exe) and it's nowrappedproxy flag to create the meta data assembly. The simple assembly file that you created in the previous steps is used as input:
Alternative Use of -nowrappedproxyYou can use a meta data assembly after your clients are compiled, also. In this scenario, you must generate a meta data assembly file that has the same name as the original input assembly. To do this, run the Soapsuds tool by typing the following command (as one command line) at the Visual Studio .NET Command Prompt:soapsuds.exe -inputassemblyfile:myremotecomp -outputassemblyfile:metaonly/myremotecomp.dll -nowrappedproxy This command creates the new meta data assembly file in the directory project\bin\debug\metaonly, and gives the new meta data assembly file the same name as the input assembly file. It is helpful to give this new file a meaningful name temporarily, while you are manipulating the file before deployment. When you deploy the new meta data assembly, change the name to the original name. You can deploy this new assembly to remote clients that have already been compiled against the original input assembly. In this deployment configuration, when the client application loads the assembly, the client looks for the original assembly file by name, but the client finds the meta data assembly by the same name. The client requires only the meta data and type information that is contained in the assembly file to invoke the remote methods, so the meta data assembly is enough for this purpose. Troubleshooting
REFERENCES
For more information about the Soapsuds tool, visit the following MSDN Web site:
Soapsuds Tool (Soapsuds.exe) For additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrfsoapsudsutilitysoapsudsexe.asp)
323490
(http://support.microsoft.com/kb/323490/EN-US/
)
INFO: Configure .NET Remoting When the Remoting Client Is an ASP.NET Application or the Client Is Another Remoted Component That Is Hosted by IIS
Properties |


Back to the top








