Skip to content

Commit 3bf95f0

Browse files
committed
doc: update README.md, explain possible 32-bit/64-bit errors
WE2-572 Signed-off-by: Mart Somermaa <[email protected]>
1 parent aa6a6b8 commit 3bf95f0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Set up the `libdigidocpp` library as follows:
4242

4343
1. Install the _libdigidocpp-3.14.4.msi_ package or higher. The installation packages are available from [https://github.com/open-eid/libdigidocpp/releases](https://github.com/open-eid/libdigidocpp/releases).
4444
2. Copy the C# source files from the `libdigidocpp` installation folder `include\digidocpp_csharp` to the `src\WebEid.AspNetCore.Example\DigiDoc` folder.
45-
3. Copy all files from `libdigidocpp` installation folder `x64` subfolder to the example application build output folder `bin\...\net60` (after building, see next step).
45+
3. Copy all files from either the `x64` subfolder of the `libdigidocpp` installation folder to the example application build output folder `bin\...\net60` (after building, see next step). When building custom applications, choose `x64` if your application is 64-bit and `x86` if it is 32-bit.
4646
4. When running in the `Development` profile, create an empty file named `EE_T.xml` for TSL cache as described in the [_Using test TSL lists_](https://github.com/open-eid/libdigidocpp/wiki/Using-test-TSL-lists#preconditions) section of the `libdigidocpp` wiki.
4747

4848
Further information is available in the [libdigidocpp example C# application](https://github.com/open-eid/libdigidocpp/tree/master/examples/DigiDocCSharp) and in the [`libdigidocpp` wiki](https://github.com/open-eid/libdigidocpp/wiki).
@@ -101,3 +101,7 @@ See the [Web eID Java example application documentation](https://github.com/web-
101101
#### Why do I get the `System.ApplicationException: Failed to verify OCSP Responder certificate` error during signing?
102102

103103
You are running in the `Development` profile, but you have not created an empty file named `EE_T.xml` for TSL cache. Creating the file is mandatory and is described in more detail in the [_Using test TSL lists_](https://github.com/open-eid/libdigidocpp/wiki/Using-test-TSL-lists#preconditions) section of the `libdigidocpp` wiki.
104+
105+
#### Why do I get the `System.BadImageFormatException: An attempt was made to load a program with an incorrect format` error during signing?
106+
107+
You are using `libdigidocpp` DLLs for the wrong architecture. Copy files from the `x64` subfolder of the `libdigidocpp` installation folder to right place as described in the section _3. Setup the `libdigidocpp` library for signing_ above. In case you get this error while developing a custom 32-bit application, copy files from the `x86` subfolder instead.

0 commit comments

Comments
 (0)