Web Deploy error "file not found" #6973
-
Hello, I have a problem deploying my Serene project to an IIS webserver using Web Deploy. Build runs fine, but then these messages appear:
Seems like Can someone give me a hint? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Update: Removing the target But that's just a workaround, not the solution. |
Beta Was this translation helpful? Give feedback.
-
It is an issue with ASP.NET Core static web assets, and a chicken-egg situation. Your project must be built, and esbuild runned successfully before publishing. Otherwise, some files which were available before the build starts, might not be there before the build ends (as esbuild is run) so static web assets calculation is getting confused. They are not static web assets actually, but as it thinks everything under wwwroot are static web assets, it raises such errors. You may ignore it for now, or build first, run tsbuild, then publish. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answer. That means every time before I publish, I have to remove the target |
Beta Was this translation helpful? Give feedback.
-
This might not be related to your problem. Recently with updates I found this issue that was intermittent when compiling/publishing. I installed .NET SDK 8.0.404 (I had 7 and 9 installed) and placed a file "global.json" in my project directory and it worked!!!. this is the global.json content you can find info here |
Beta Was this translation helpful? Give feedback.
It is an issue with ASP.NET Core static web assets, and a chicken-egg situation. Your project must be built, and esbuild runned successfully before publishing. Otherwise, some files which were available before the build starts, might not be there before the build ends (as esbuild is run) so static web assets calculation is getting confused. They are not static web assets actually, but as it thinks everything under wwwroot are static web assets, it raises such errors. You may ignore it for now, or build first, run tsbuild, then publish.