Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception within Word VSTO after moving from System.Buffers 4.5.1 to 4.6.0 #189

Open
brunohunziker opened this issue Dec 2, 2024 · 3 comments

Comments

@brunohunziker
Copy link

The Word VSTO can no longer be installed when using System.Buffers 4.6.0:

************** Exception Text **************
System.ArgumentException: Value does not fall within the expected range.
at System.Deployment.Internal.Isolation.IActContext.ApplicationBasePath(UInt32 Flags, String& ApplicationPath)
at System.ActivationContext.get_ApplicationDirectory()
at System.AppDomainSetup..ctor(ActivationArguments activationArguments)
at System.AppDomainSetup..ctor(ActivationContext activationContext)
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.CreateAppDomainSetup(ActivationContext context, Uri deploymentManifestUri, AddInInstallationStatus installStatus)
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn

@carlossanlop
Copy link
Member

Hello, can you please provide a small repro project and attach it in a zip in a comment?

@brunohunziker
Copy link
Author

Here you find a small repro project:
WordAddIn4.zip

Steps I did to create the attached repro project:

  • created a Word-VSTO C# project in VS2022
  • added nuget packages “Microsoft.Identity.Client” and “Microsoft.Bcl.Build”
  • (publishing and running setup.exe is still working well)
  • Updating nuget packages
  • (running setup.exe no longer works)

Thanks!

@brunohunziker
Copy link
Author

Any news here? :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants