|
WCF + авторизация asp.net
|
|||
---|---|---|---|
#18+
Есть приложение на sirverlight. Все работает нормально пока не потухла сессия. После этого при обращении к wcf.svc в fiddler можно увидеть как идет переадресация на страницу авторизации. В Reference.cs ошибка ProtocolException: The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: ' Как сделать чтобы при возникновении с файлом svc ошибки 302 было обновление страницы? Нашел способ: Код: c# 1. 2. 3. 4. 5. 6. 7. 8.
Но методов обращений WCF очень много. Может есть более проще решение? ... |
|||
:
Нравится:
Не нравится:
|
|||
01.08.2013, 16:09 |
|
|
start [/forum/topic.php?fid=19&gotonew=1&tid=1397058]: |
0ms |
get settings: |
9ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
43ms |
get topic data: |
10ms |
get first new msg: |
6ms |
get forum data: |
2ms |
get page messages: |
32ms |
get tp. blocked users: |
1ms |
others: | 266ms |
total: | 390ms |
0 / 0 |