При подписи (формат- Cades X long type 1) выдается ошибка
System Error. Code: -2147024809.
Параметр задан неверно.
логи:
00000001 0.00000000 [2816] cpcspi: Thread: file:line function text xcode(dcode) level: 0
00000002 0.00044361 [2816] cpcsp: Thread: file:line text level: 0
00000003 0.01166397 [2816] cpui: Thread: file:line function text xcode(dcode) level: 0
00000004 7.16082907 [5672] 15:54:31.852 ::WinHttpGetIEProxyConfigForCurrentUser(0x472f5a8)
00000005 7.16084623 [5672] 15:54:31.852 ::WinHttpGetIEProxyConfigForCurrentUser(0x3ebf948)
00000006 7.17429018 [5672] 15:54:31.865 ::WinHttpGetIEProxyConfigForCurrentUser() returning TRUE
00000007 7.17809343 [5672] 15:54:31.870 ::WinHttpGetIEProxyConfigForCurrentUser() returning TRUE
00000008 24.56345749 [5672] 15:54:49.529 ::WinHttpGetIEProxyConfigForCurrentUser(0x472f5a8)
00000009 24.57032013 [5672] 15:54:49.536 ::WinHttpGetIEProxyConfigForCurrentUser() returning TRUE
00000010 27.40129471 [3216] cpcspi: Thread: file:line function text xcode(dcode) level: 0
00000011 27.40382385 [3216] cpcsp: Thread: file:line text level: 0
00000012 27.42917633 [3216] cpui: Thread: file:line function text xcode(dcode) level: 0
00000013 63.28703308 [4044] .\Externs.cpp(33) : /Init/
00000014 63.28732300 [4044] .\CPSettings.cpp(193) : /Init/
00000015 63.37672424 [4044] cpcspi: Thread: file:line function text xcode(dcode) level: 0
00000016 63.37720871 [4044] cpcsp: Thread: file:line text level: 0
00000017 63.43218231 [4044] cpui: Thread: file:line function text xcode(dcode) level: 0
00000018 63.54674149 [4044] cprdr: Thread: file:line function text xcode(dcode) level: 0
00000019 64.15596771 [4044] cpext: Thread: file:line function text xcode(dcode) level: 0
00000020 64.76303864 [4044] cpcng: Thread: file:line function text xcode(dcode) level: 0
00000021 64.82878876 [4044] .\Externs.cpp(33) : /Init/
00000022 64.82902527 [4044] .\CPSettings.cpp(193) : /Init/
00000023 64.92111206 [4044] 15:55:30.523 ::WinHttpOpen("Crypto-Pro tspcli.dll", WINHTTP_ACCESS_TYPE_NO_PROXY (1), "", "", 0x0)
00000024 64.92119598 [4044] 15:55:30.523 ::winhttp-dll added a reference to winhttp.dll (via LoadLibrary() call)
00000025 64.92758179 [4044] 15:55:30.529 ::thread-pool created
00000026 64.92767334 [4044] 15:55:30.529 ::thread pool initialized successfully
00000027 64.92778015 [4044] 15:55:30.529 ::_SvcsStartup() succeeded; async-count = 1
00000028 64.92785645 [4044] 15:55:30.529 ::WinHttpOpen() returning handle 0xf6268
00000029 64.92794800 [4044] 15:55:30.529 ::WinHttpGetIEProxyConfigForCurrentUser(0x31d688)
00000030 64.96857452 [4044] 15:55:30.571 ::WinHttpGetIEProxyConfigForCurrentUser() returning TRUE
00000031 64.96864319 [4044] 15:55:30.571 ::WinHttpSetOption(0xf6268, WINHTTP_OPTION_PROXY (38), 0x31d890 [0x3], 12)
00000032 64.97167969 [4044] 15:55:30.574 ::WinHttpSetOption() returning TRUE
00000033 64.97173309 [4044] 15:55:30.574 ::WinHttpConnect(0xf6268, "www.cryptopro.ru", 80, 0x0)
00000034 64.97603607 [4044] 15:55:30.579 ::Indicate Status 0x114338, 0x0, WINHTTP_CALLBACK_STATUS_HANDLE_CREATED (1024), 0x31d640 [0x114338], 4
00000035 64.97610474 [4044] 15:55:30.579 ::WinHttpConnect() returning handle 0x114338
00000036 64.97615814 [4044] 15:55:30.579 ::WinHttpOpenRequest(0x114338, "POST", "tsp/tsp.srf", "", "", 0x0, 0x00000000)
00000037 64.97621918 [4044] 15:55:30.579 ::Indicate Status 0x114420, 0x0, WINHTTP_CALLBACK_STATUS_HANDLE_CREATED (1024), 0x31d5f4 [0x114420], 4
00000038 64.97627258 [4044] 15:55:30.579 ::WinHttpCreateUrl(0x31d590, 0x0, 0x0, 0x31d5e0)
00000039 64.97631836 [4044] 15:55:30.579 :: WinHttpCreateUrl(); URL = (null), URL Length = 0
00000040 64.97637939 [4044] 15:55:30.579 :: WinHttpCreateUrl: error 122 [ERROR_INSUFFICIENT_BUFFER]
00000041 64.97642517 [4044] 15:55:30.579 ::WinHttpCreateUrl() returning FALSE
00000042 64.97647858 [4044] 15:55:30.579 ::WinHttpCreateUrl(0x31d590, 0x0, 0xc3510, 0x31d5e0)
00000043 64.97652435 [4044] 15:55:30.579 :: WinHttpCreateUrl(); URL =
http://www.cryptopro.ru/tsp/tsp.srf, URL Length = 35
00000044 64.97657776 [4044] 15:55:30.579 ::WinHttpCreateUrl() returning TRUE
00000045 64.97664642 [4044] 15:55:30.579 ::WinHttpOpenRequest() returning handle 0x114420
00000046 64.97670746 [4044] 15:55:30.579 ::WinHttpSetOption(0x114420, WINHTTP_OPTION_AUTOLOGON_POLICY (77), 0x31d8d0 [0x2], 4)
00000047 64.97675323 [4044] 15:55:30.579 ::WinHttpSetOption() returning TRUE
00000048 64.97680664 [4044] 15:55:30.579 ::WinHttpSendRequest(0x114420, "Content-type: application/timestamp-query", -1, 0x3626d08, 64, 64, 0)
00000049 64.97686005 [4044] 15:55:30.579 ::WinHttpAddRequestHeaders(0x114420, "Content-type: application/timestamp-query", 41, 0x20000000)
00000050 64.97692108 [4044] 15:55:30.579 ::WinHttpAddRequestHeaders() returning TRUE
00000051 64.99724579 [4044] 15:55:30.600 ::usr-req 001146C0 transitioning from state _READY to state _SENDING_RECVING
00000052 64.99732208 [4044] 15:55:30.600 ::sys-req added the 'Content-Length: 64' header
00000053 64.99739075 [4044] 15:55:30.600 ::sys-req updates BytesToSend to 0
00000054 64.99743652 [4044] 15:55:30.600 ::sys-req transitioning from state _INIT to state _SENDING
00000055 64.99748993 [4044] 15:55:30.600 ::current thread is not impersonating
00000056 64.99754333 [4044] 15:55:30.600 ::sys-sender calling HttpSendHttpRequest(overlapped = 000F43B8)
00000057 64.99759674 [4044] 15:55:30.600 ::sys-sender transitioning from state _INIT to state _SENDING
00000058 64.99769592 [4044] 15:55:30.600 ::usr-req 001146C0 received OnDnsResolvingName callback
00000059 64.99774933 [4044] 15:55:30.600 ::usr-req 001146C0 received OnDnsNameResolved callback
00000060 65.00407410 [4044] 15:55:30.607 ::usr-req 001146C0 received OnTcpConnecting callback
00000061 65.00455475 [4044] 15:55:30.607 ::sys-req pends send-request
00000062 65.00461578 [4044] 15:55:30.607 ::usr-req 001146C0 blocks waiting for async to complete...
00000063 65.12112427 [4044] 15:55:30.725 ::usr-req 001146C0 received OnTcpConnected callback
00000064 65.12504578 [4044] 15:55:30.729 ::usr-req 001146C0 received OnSendingRequest callback
00000065 65.12580109 [4044] 15:55:30.730 ::usr-req 001146C0 received OnRequestSent callback
00000066 65.17998505 [4044] 15:55:30.785 :: <c-b> an async I/O operation completes (overlapped = 000F43B8, #bytes/info = 0, error = ERROR_SUCCESS (0))
00000067 65.18010712 [4044] 15:55:30.786 ::sys-sender processing HttpSendHttpRequest completion (error-cdoe = ERROR_SUCCESS (0x0), #bytes = 0, overlapped = 000F43B8)
00000068 65.18016815 [4044] 15:55:30.786 ::sys-sender sent a request successfully
00000069 65.18022919 [4044] 15:55:30.786 ::sys-req completing a send-request call (error = ERROR_SUCCESS (0))
00000070 65.18029785 [4044] 15:55:30.786 ::usr-req 001146C0 received OnSendRequest callback; error = ERROR_SUCCESS (0)
00000071 65.18036652 [4044] 15:55:30.786 ::usr-req 001146C0 signals sync caller 000E9CD8 (api = 5, error = ERROR_SUCCESS (0), # bytes = 64)
00000072 65.19640350 [4044] 15:55:30.802 ::... async completed (result = ERROR_SUCCESS (0)); usr-req unblocked
00000073 65.19654846 [4044] 15:55:30.802 ::WinHttpSendRequest() returning TRUE
00000074 65.19665527 [4044] 15:55:30.802 ::WinHttpReceiveResponse(0x114420, 0x0)
00000075 65.19677734 [4044] 15:55:30.802 ::sys-recver starts in _INIT state
00000076 65.19685364 [4044] 15:55:30.802 ::current thread is not impersonating
00000077 65.19695282 [4044] 15:55:30.802 ::sys-recver processing WebReceiveHttpResponse completion (error-cdoe = ERROR_SUCCESS (0x0), overlapped = 000F43B8))
00000078 65.19703674 [4044] 15:55:30.803 ::sys-recver has received response from WebIO
00000079 65.19712830 [4044] 15:55:30.803 ::sys-recver returning ERROR_SUCCESS (0) from RecvResponse()
00000080 65.19722748 [4044] 15:55:30.803 ::sys-req completes recv-headers inline (sync); error = ERROR_SUCCESS (0)
00000081 65.19732666 [4044] 15:55:30.803 ::usr-req 001146C0 recved final status code 407
00000082 65.19744873 [4044] 15:55:30.803 ::usr-req 001146C0 transitioning from state _SENDING_RECVING to state _HEADERS_RECVED
00000083 65.19754028 [4044] 15:55:30.803 ::WinHttpReceiveResponse() returning TRUE
00000084 65.19763184 [4044] 15:55:30.803 ::WinHttpQueryHeaders(0x114420, HTTP_QUERY_STATUS_CODE (0x20000013), "<null>", 0x4412e54, 0x31d8c4 [4], 0x0 [0])
00000085 65.19771576 [4044] 15:55:30.803 :: WinHttpQueryHeaders(); Header = I, Buffer Length = 4, Index = 0
00000086 65.19778442 [4044] 15:55:30.803 ::WinHttpQueryHeaders() returning TRUE
00000087 65.19786835 [4044] 15:55:30.803 ::WinHttpQueryAuthSchemes(0x114420, 0x31d8c8, 0x31d8ac)
00000088 65.19795227 [4044] 15:55:30.803 :: Supported Schemes = 0x13; First Scheme = 0x10; Auth Target = 0x1
00000089 65.19802856 [4044] 15:55:30.804 ::WinHttpQueryAuthSchemes() returning TRUE
00000090 65.19810486 [4044] 15:55:30.804 ::WinHttpQueryAuthSchemes(0x114420, 0x31d8c8, 0x31d8ac)
00000091 65.19818115 [4044] 15:55:30.804 :: Supported Schemes = 0x13; First Scheme = 0x10; Auth Target = 0x1
00000092 65.19824982 [4044] 15:55:30.804 ::WinHttpQueryAuthSchemes() returning TRUE
00000093 65.19833374 [4044] 15:55:30.804 ::WinHttpSetCredentials(0x114420, 0x1, 0x1, "", "<username>", "<password>")
00000094 65.19841003 [4044] 15:55:30.804 :: WinHttpSetCredentials: error 87 [ERROR_INVALID_PARAMETER]
00000095 65.19848633 [4044] 15:55:30.804 ::WinHttpSetCredentials() returning FALSE
00000096 65.19863129 [4044] 15:55:30.804 ::WinHttpCloseHandle(0x114420)
00000097 65.19870758 [4044] 15:55:30.804 ::usr-req 001146C0 releases sys-req 00107CC0
00000098 65.19877625 [4044] 15:55:30.804 ::sys-req calling WebCancelHttpRequest
00000099 65.19920349 [4044] 15:55:30.805 ::sys-req WebCancelHttpRequest completed with ERROR_SUCCESS (0)
00000100 65.19931793 [4044] 15:55:30.805 ::usr-req 001146C0 is shutting down
00000101 65.19940948 [4044] 15:55:30.805 ::Indicate Status 0x114420, 0x0, WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING (2048), 0x31cbe0 [0x114420], 4
00000102 65.19950867 [4044] 15:55:30.805 ::WinHttpCloseHandle() returning TRUE
00000103 65.19958496 [4044] 15:55:30.805 ::WinHttpCloseHandle(0x114338)
00000104 65.19966125 [4044] 15:55:30.805 ::Indicate Status 0x114338, 0x0, WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING (2048), 0x31cbe0 [0x114338], 4
00000105 65.19974518 [4044] 15:55:30.805 ::WinHttpCloseHandle() returning TRUE
00000106 65.20004272 [4044] 15:55:30.805 ::WinHttpCloseHandle(0xf6268)
00000107 65.20255280 [4044] 15:55:30.806 ::winhttp-dll is shutting down
00000108 65.20266724 [4044] 15:55:30.808 ::Indicate Status 0xf6268, 0x0, WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING (2048), 0x31cba4 [0xf6268], 4
00000109 65.20330811 [4044] 15:55:30.808 ::WinHttpCloseHandle() returning TRUE
00000110 81.11783600 [5672] 15:55:46.975 ::WinHttpGetIEProxyConfigForCurrentUser(0x3ebf948)
00000111 81.12513733 [5672] 15:55:46.982 ::WinHttpGetIEProxyConfigForCurrentUser() returning TRUE
00000112 88.64018250 [5672] 15:55:54.616 ::WinHttpGetIEProxyConfigForCurrentUser(0x3ebf948)
00000113 88.64643860 [5672] 15:55:54.622 ::WinHttpGetIEProxyConfigForCurrentUser() returning TRUE
00000114 125.20184326 [4044] 15:56:31.753 ::thread pool is shutting down
00000115 125.20191193 [4044] 15:56:31.753 ::thread pool closed
00000116 125.20195770 [4044] 15:56:31.753 ::thread pool destroyed
00000117 125.20201874 [4044] 15:56:31.753 ::winhttp-dll object released its reference to winhttp.dll via FreeLibrary()
00000118 144.15670776 [3100] cpcspi: Thread: file:line function text xcode(dcode) level: 0
00000119 144.15724182 [3100] cpcsp: Thread: file:line text level: 0
00000120 144.17938232 [3100] cpui: Thread: file:line function text xcode(dcode) level: 0
00000121 216.75109863 [5672] 15:58:04.551 ::WinHttpGetIEProxyConfigForCurrentUser(0x3ebf948)
00000122 216.75755310 [5672] 15:58:04.557 ::WinHttpGetIEProxyConfigForCurrentUser() returning TRUE
00000123 323.14996338 [5672] 15:59:51.550 ::WinHttpGetIEProxyConfigForCurrentUser(0x472f5a8)
00000124 323.16210938 [5672] 15:59:51.562 ::WinHttpGetIEProxyConfigForCurrentUser() returning TRUE
00000125 373.36004639 [1328] .\Externs.cpp(33) : /Init/
подскажите, из-за чего может быть?