Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / WCF, Web Services, Remoting [игнор отключен] [закрыт для гостей] / wcf как поцепить клиента к веб-приложению / 2 сообщений из 2, страница 1 из 1
14.05.2009, 20:26
    #35986747
karambol
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
wcf как поцепить клиента к веб-приложению
Написал простенькое WCF приложение. Сгенерил клиента. Подключил к виндовс приложению - работает. Подключил к веб-приложению - при отладке работает, а когда запускаю своим ходом через IIS - не работает. Ругается:
1. "System.ComponentModel.Win32Exception: Сообщение или подпись, предоставленные для проверки, были изменены"
2. " return base.Channel.CalculateVal(formula);"

Что бы это значило? Подскажите плз.
Вот конфиги сервера и клиента
Сервер:
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
<configuration>

  <system.serviceModel>
    <services>
      <service 
          name="WCFServices.CellCalculator"
          behaviorConfiguration="CellCalculatorServiceBehavior">
        <host>
          <baseAddresses>
            <add baseAddress="http://192.168.0.2:8001/CellCalculator/"/>
          </baseAddresses>
        </host>
        <endpoint address=""
                  binding="wsHttpBinding"
                  contract="WCFServices.ICellCalculator" />
        <endpoint address="mex"
                  binding="mexHttpBinding"
                  contract="IMetadataExchange" />
      </service>
    </services>

    <behaviors>
      <serviceBehaviors>
        <behavior name="CellCalculatorServiceBehavior">
          <serviceMetadata httpGetEnabled="True"/>
          <serviceDebug includeExceptionDetailInFaults="True" />
        </behavior>
      </serviceBehaviors>
    </behaviors>

  </system.serviceModel>

</configuration>

клиент:
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
<system.serviceModel>
    <bindings>
      <wsHttpBinding>
        <binding name="WSHttpBinding_ICellCalculator" closeTimeout="00:01:00"
            openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
            bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
            maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
            messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
            allowCookies="false">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
              maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00"
              enabled="false" />
          <security mode="Message">
            <transport clientCredentialType="Windows" proxyCredentialType="None"
                realm="" />
            <message clientCredentialType="Windows" negotiateServiceCredential="true"
                algorithmSuite="Default" establishSecurityContext="true" />
          </security>
        </binding>
      </wsHttpBinding>
    </bindings>
    <client>
      <endpoint address="http://192.168.0.1:8001/CellCalculator/" binding="wsHttpBinding"
          bindingConfiguration="WSHttpBinding_ICellCalculator" contract="ICellCalculator"
          name="WSHttpBinding_ICellCalculator">
        <!--
        <identity>
          <userPrincipalName value="DIMA\dima" />
        </identity>
        -->
      </endpoint>
    </client>
  </system.serviceModel>
...
Рейтинг: 0 / 0
14.05.2009, 20:29
    #35986756
karambol
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
wcf как поцепить клиента к веб-приложению
Прошу прощения.. строку
Код: plaintext
1.
<add baseAddress="http://192.168.0.2:8001/CellCalculator/"/>
читать как
Код: plaintext
1.
<add baseAddress="http://192.168.0.1:8001/CellCalculator/"/>
Этьо на ошибку не влияет... тестировалось с адресом 192.168.0.1:8001 ...
...
Рейтинг: 0 / 0
Форумы / WCF, Web Services, Remoting [игнор отключен] [закрыт для гостей] / wcf как поцепить клиента к веб-приложению / 2 сообщений из 2, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]