все способы связи
и решения проблем
Многоканальный телефон: (495) 989-1540, бесплатно по россии: 8-800-555-1540
 
Начало О проекте Регистрация На главную
страница из 1GbWiki

[править] ServiceActivationException

При ошибках вида

[ServiceActivationException: The service '/service.svc' cannot be activated due to an exception during compilation.
The exception message is: This collection already contains an address with scheme http.  There can be at most one 
address per scheme in this collection. Parameter name: item.]

Нужно дописать что-то типа

<serviceHostingEnvironment aspNetCompatibilityEnabled="true">
  <baseAddressPrefixFilters>
    <add prefix="http://dmach.ru/"/>
  </baseAddressPrefixFilters>
</serviceHostingEnvironment>

[править] Could not load type 'System.ServiceModel'

При работе под ASP.NET версии 4

Could not load type 'System.ServiceModel.Activation.HttpHandler' from assembly 'System.ServiceModel, Version=3.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089'.

Нужно убрать из web.config следующее:

aspNetCompatibilityEnabled="true"

 

 

Мы всегда готовы ответить на ваши вопросы!
 

 

 

 

 

   
 
Наверх     
Copyright © 2002-2026 In-Solve JSC.