Skip to content

Commit 27ce474

Browse files
authored
Merge pull request #108056 from gladjohn/patch-2
Packaging your WAM Application into a single file bundle
2 parents ab43cc6 + cbdcc3f commit 27ce474

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

articles/active-directory/develop/scenario-desktop-acquire-token-wam.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,15 @@ This message indicates that either the application user closed the dialog that d
161161
```powershell
162162
if (-not (Get-AppxPackage Microsoft.AccountsControl)) { Add-AppxPackage -Register "$env:windir\SystemApps\Microsoft.AccountsControl_cw5n1h2txyewy\AppxManifest.xml" -DisableDevelopmentMode -ForceApplicationShutdown } Get-AppxPackage Microsoft.AccountsControl
163163
```
164+
### "MsalClientException: ErrorCode: wam_runtime_init_failed" error message during Single-file deployment
165+
166+
You may see the following error when packaging your application into a [single file bundle](/dotnet/core/deploying/single-file/overview).
167+
168+
```
169+
MsalClientException: wam_runtime_init_failed: The type initializer for 'Microsoft.Identity.Client.NativeInterop.API' threw an exception. See https://aka.ms/msal-net-wam#troubleshooting
170+
```
171+
172+
This error indicates that the native binaries from the [Microsoft.Identity.Client.NativeInterop](https://www.nuget.org/packages/Microsoft.Identity.Client.NativeInterop/) were not packaged into the single file bundle. To embed those files for extraction and get one output file, set the property IncludeNativeLibrariesForSelfExtract to true. Read more about [how to package native binaries into a single file](/dotnet/core/deploying/single-file/overview?tabs=cli#native-libraries).
164173

165174
## Sample
166175

0 commit comments

Comments
 (0)