boggy
boggy

Reputation: 4027

IIS Express w/ VS 2022 crashes when debugging web app and selecting file via file html input on page w/ ExtJs

Here are the details:

I have a form with a file field. This link has more information on how the upload works, it basically uses an iframe under the hood.

Now, in VS 2019 the upload works. In VS 2022 the upload doesn't work anymore and it returns the error: "Blocked a frame with origin "http://localhost:38991" from accessing a cross-origin frame." (the error is returned in the client JavaScript code). Just to be clear, I open exactly the same project in VS 2019 and it works, then I open the project in VS 2022 and the uploads don't work anymore.

Both use the same IIS Express process (64 bit). And one minor detail, the upload operation when run from VS 2022 kills IIS Express, it basically evaporates.

Any idea on how to fix this in VS 2022? For now, I have to use VS 2019 in order to be able to test uploads.

Thanks in advance.

Update: I installed VS 2022 version 17.1.6.

Initially I thought IIS express evaporates upon uploading the file. It actually exits when I select the file in the Open dialog.

The program '[19000] iisexpress.exe' has exited with code 4294967295 (0xffffffff).

When I run the project without debugging, it works fine!

I changed the title of the post from:

ExtJs file upload getting: "Blocked a frame with origin "http://localhost:38991" from accessing a cross-origin frame." when run w/ VS 2022 IIS Express

to

IIS Express w/ VS 2022 crashes when debugging web app and selecting file via file html input on page w/ ExtJs

Upvotes: 2

Views: 3671

Answers (1)

boggy
boggy

Reputation: 4027

ok, found the answer here: IIS Express stops suddenly when I click on a text box in my web app.

This did the trick: enter image description here

The checkbox was clear in VS 2019, a colleague confirmed the uploads work in VS 2019 even with the checkbox selected.

Upvotes: 8

Related Questions