i have a flash app that loads data from an xml file.
i get a network error 404 not found for the xml file but it shows the correct path to the xml file.
"NetworkError: 404 Not Found - http://www.mysite.com/movie/StartDATA.xml" this path is correct.
also i can call up this XML file in browser.
also this works on my localhost, just will not work on live server (have tried 2 different servers).
i thought a permission problem so i set XML to read/write all but also that does not work.
i am out of ideas now.
Related
We are converting rvt file to svf and saved it in local store.
Now we are want to open this saved file in offline viewer.
We have code for offline viewer but have problems, when we run this code with visual studio code from 'Go live server, we can see result. But when we want to run that code from server, we getting error with status 404.
here attached code and error`
Remove the extra ../ from the beginning of model's URL - looks like your viewer HTML is already at the root path on your server so in the screenshot you ended up with the wrong path http://Test_2/... for the model...
I'm trying to use Angular2 and NodeJS, express in my new project and running into an issue. Ive used cli to ng build the Angular2 project and have the dist folder generated.
Now when I try to point this folder using express, I can see only the "Hello world" html in the index.html. In the networks tab on dev tools on chrome, I can see the .js files getting called with 200OK but however they seem to return the index.html in response. And on browser console, I see errors on the js files as below.
Refused to execute script from 'https://localhost:8080/inline.bundle.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
Same error for rest of the js files.
I've tried:
1. CORS to allow *
2. Content-type: application/javascript on before res.sendFile(__dist+'index.html');
3. ng serve seem to work file from localhost:4200 though. But I need express to render the page.
Not sure how to solve the issue. Any suggestions are appreciated.
Try
app.use(express.static('your angular dist folder here'))
For more info about serving static files, you can get here.
I have been struggling with this all morning and I have not had much luck.
I am trying to get the following stackoverflow post to work: How to remove .html from URL
Here is my file directory with the htaccess file:
Here is my code that works fine using .html
So I went into sublime text and posted the same code into a .htaccess file as shown here (also in my directory first pic):
I then changed my links and removed .html
But I get an error
If anyone could please tell me what I'm doing wrong I would be grateful! Been bashing my head on this all morning
.htaccess is a file used to control access for Apache web servers. It won't affect anything unless you're running and accessing an Apache server. From your screenshots I can see that you're directly opening a file from your hard drive.
Your browser is saying File not found because you're trying to access a non-existent file. The address bar in your browser should say this:
file:///Users/mikegeng/Documents/GitHub/MichaelGeng.github.io/index.html
.htaccess is used by Apache Webserver. You must install and configure an Apache Webserver and access your site through http://localhost for example.
Currently your .htaccess is completely ignored until your site is served by Apache.
I have an issue when i try to upload an attachment to my application.
When the file is still open on my computer and i try to upload it, i get an application/octet-stream MIME type instead of application/sword. But when i close it, there is no error while uploading.
Files what have a problem are excel or word files and are stocked in database.
The configuration of the database allows to save in binaries and text (depending of the file)
Obviously, i could fix it by closing it. But i would like to understand how/why my file is uploaded in another MIME type.
EDIT : The browser is IE9 (compatibility with IE7) and the OS is windows 7.
It happends on each computer of my service. (with the same configuration)
I have successfully implemented rest webservice using apache wink. I am using ant to build war and to deploy it to tomcat server. Now I want include html or jsp file in the project to display some results. But I dont know how to include it via ant build file. I tried copy and pasting the html file in the root folder as well as web-inf folder in tomcat's webapp folder and than restarted it. But so far I am not able to access it. Whenever I try to access html page it gives me error
org.apache.wink.server.internal.RequestProcessor - The following error occurred during the invocation of the handlers chain: WebApplicationException (404 - Not Found) with message 'null' while processing GET request sent to http://localhost:8080/outliers/index.html
Please help me how can I include html file in my server.
Basically you should just put the html file in the war's root directory. \
Don't put it in WEB-INF, it's is not accessible from the web!
If the html file in root directory, and you still cannot access it, check that tomcat started without errors. Sometimes errors are not displayed in console, so check the logs.