Failed to create an editor. Exception from HRESULT: 0x80070057 (E_INVALIDARG)

664 views Asked by At

Failed to create an editor. the parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

Error

Script-Migration -From "PreviousMigration"

the Update Visual Studio Community 2022 From Version 17.8.6 to 17.9.0 is causing Error.

Script-Migration : Error HRESULT E_FAIL has been returned from a call to a COM component.

At line:1 char:1

**SOLUTION:

I've tried to remove all temporary files form system folder for user and framework, but it didn't work for me, then I've downgraded to previous Visual Studio Community 2022 Version 17.8.6, and it works.

I've tried to remove all temporary files form system folder for user and framework, but it didn't work for me, then I've downgraded to previous Visual Studio Community 2022 Version 17.8.6, and it works.

2

There are 2 answers

0
pseudocoder On

This bug will be fixed in 17.9.1, per the Visual Studio community site:

https://developercommunity.visualstudio.com/t/sql-Files-cannot-be-opened/10584835

I'll update this answer once I verify it is squashed.

Edit: 17.9.1 has been released and script-migration now works for me.

0
Prasanna Manikandan On

That was a bug found in 17.9.0 , so Microsoft fixed it.

The newer version 17.9.1 now avaliable for Vsiaual Studio will enable you to open files and edit it using Ctrl+O.

So please update your Visual Studio to 17.9.1.This will help you to resolve the issue that I faced too.