chromelyapps / Chromely

Build Cross Platform HTML Desktop Apps on .NET using native GUI, HTML5, JavaScript, CSS, Owin, AspNetCore (MVC, RazorPages, Blazor)
MIT License
2.98k stars 279 forks source link

Failed to load resource: the server responded with a status of 404 (File not found.) #300

Closed redaxol closed 3 years ago

redaxol commented 3 years ago

I added a file index.js in my file index.html

but after execution i got this error Failed to load resource: the server responded with a status of 404 (File not found.) index.js I have verified that the path of the JS file is correct is there a solution ?

mattkol commented 3 years ago

@redaxol

I have verified that the path of the JS file is correct

You mean the file source location is correct? Is it in the destination folder (bin) directory? If not in bin, then it is likely you are not copying it over.

Please ensure "Copy Always" or "Copy if Newer" is set. https://github.com/chromelyapps/demo-projects/blob/1cac58ffb95098223e206043ad9748c3f80dcea1/regular-chromely/CrossPlatDemo/CrossPlatDemo.csproj#L58

If this is not the issue, then I will suggest starting with CrossPlatDemo and make incremental changes.

redaxol commented 3 years ago

Works fine, thank you.