Share via


Registro do lado do servidor

Servidor-activated or Objects Client-Activated are Registered normally in the arquivo Web.config when they are Hosted through Serviços de Informações da Internet (IIS), or in the arquivo de configuração aplicativo when the Objects are Hosted directly. Colocar Tudo objetos que hospeda o aplicativo dentro de elemento https://msdn.microsoft.com/pt-br/library/hb3cs75f(v=vs.85) < serviço >.

Quando o servidor publicação-ativado (< wellknown >) objetos, você deve indicar se o objeto é um SingleCall ou singleton objeto, o tipo do objeto e o ponto de extremidade onde o objeto pode ser acessado. Quando o cliente a publicação-ativado (< ativado >) objetos, você deve indicar apenas o tipo de objeto.

Configurar tipos de servidores-ativado com o IIS

If you intend to Host Your remoto serviço in Serviços de Informações da Internet to take advantage of the Benefits IIS Provides, there are some Changes slight You Must Make to Your arquivo de configuração. You can use the arquivo Web.config to Configure IIS to requests identificador For Your tipo automaticamente, or You can use the manipulador Application_Startin the Global. Arquivo ASAX to carregar Your arquivo de configuração Using RemotingConfiguration.Configure and the name of Your arquivo de configuração passing. In Either maiúscminúsc:

  • Fazer não especificar um Nome do aplicativo usando o atributo nome da marca de < aplicativo >. O diretório virtual Criar para hospedar seu tipo remoto será o nome do aplicativo para clientes do seu tipo.

  • Não especificar uma porta usando o atributo porta de uma marca < canal > dentro de uma marca < aplicativo >. If IIS creates a new segmento to serve an número increased of requests, a new canalizar Might be Criado, but an exceção will be thrown because that porta is already in use by the original canalizar. INSTEAD, especificar the porta to Use in serviços de Internet Gerente. .NET Serviços de Comunicação Remota will identificador any Requests For Your tipo remoto on that porta.

Consulte também

Tarefas

Como: Register a Object Server-Activated and a Object Client-Activated for a Host Aplicativo Domain

Conceitos

Configuração de aplicativos remoto

Configuração de objetos remotos

Referência

System.Runtime.Remoting.RemotingConfiguration Class

Outros recursos

Registering Remoto Objects Using Configuration Files

Visão geral sobre a arquitetura de comunicação remota do .NET Framework