Not loading CSS on the win server 2016 - html

I'm new here and I'm getting some problem that I'm not finding any solution so far, I tried to follow some tips that I found here but not luck.
Here is my problem: When I test my page on localhost everything works fine, but when I publish to my server (Win Serv 2016) and access through the server page, some CSS are not there, not loading.
Thanks for your time.

Related

Deploying a .NET application to Google Cloud Platform worked on initial deploy, now getting 502 Error: Server Error

To give some background, I'm an (unpaid) intern, and I'm unrelated to dealing with this kind of stuff. My employers wanted to update some pictures, and they did locally but didn't know how to upload the new version to the server.
I used the publish settings that were saved in Visual Studio from when the previous intern deployed the server (he was specialized in web site stuff) and it worked on deploy ... then I refreshed the page and I'm getting 502 server error.
Steps I have taken:
Connect to the VM and restart it - didn't solve it. it's using Microsoft server 2016.
Open the VM trough RDP, check if there are errors. There were 3 services not running, and I start them manually. One still isn't running, Downloaded Maps Manager. Ok... I google it and it's not a necessary service so I disable it. Now there are no errors and all services are running but I still am getting this error.
I tried pinging the IP of the server, and the URL itself and it works.
I believe it might be something to do with the load balancer, but I had one HTML class and nothing dealing with actually publishing stuff. If you could point me in the right direction I would appreciate it. The only reason why I'm trying to fix this myself is that I didn't make some kind of backup, and I feel so stupid having taken the site down.
Edit: I've gone to "load balancing" and it says service unhealthy. I tried going to the IPs there and it brings me to the same 502 server error page. From what I've gathered this is a configuration error, it's impossible they messed something with the site itself, right? It did work that first time, and if I run it from Visual Studio it works on the local machine ...

VS Code 2017 "Localhost refused to connect" HTML file

This is a simple index.Html file, when i click on run i get the attached screen.
I have included the Json configuration.
The previous posts did not resolve my issue, and i did restart the machine as well as running VS Code as an admin. VS Code Error
installed Extensions
This happening because of your firewall setting restriction. please
Try Live Server Extension AND check for Firewall Settings.
Plain HTML/CSS can be opened as a file, no need to run them through a web server.
And if these procedures didn't work tell me about your browser.

Why am I getting this ISAPI error on a cloned site?

I'm a corporate developer and was recently tasked with copying a live website that is already up. It's step one of a project and this is meant to be a testing copy. Project spec requires the site be an exact clone of how the site appears now. This is all being done on IIS 8.
I copied the folder and set it up as its own website, but the "_dev" version. I changed nothing at all in the web.config and even used KDIFF3 when I started having issues to ensure everything I'd copied was a binary copy (It's a Winforms site). Any time I attempt to navigate to the page, I get a 500 error. The original site, in the same box on the same IIS, is still fine.
Naturally, I enabled failed request logging and it turned out to be this:
ModuleName
IsapiModule
Notification
EXECUTE_REQUEST_HANDLER
HttpStatus
500
HttpReason
Internal Server Error
HttpSubStatus
0
ErrorCode
The specified module could not be found.
(0x8007007e)
ConfigExceptionInfo
I don't use IIS much, but I'm pretty sure the only reference either the working site or the problem site has which involves ISAPI is a reference to the .Net 2.0 aspnet_filter in System32 for the .Net 2.0 framework.
Since the sites have identical content, which is very simple content, I thought it was permissions. For 20 minutes or so I gave r/w/x for "Everyone" with inheritance to child objects enabled, essentially ensuring permissions could be ruled out on the folders or on web.config, and still had the same issues.
I'm sort of at the end of my rope here. I can't find anything more than the steps above as a fix, but I'm in the same boat, even after restarting IIS. Both sites are using the same Application Pool (a 2.0 one, Classic mode) and are simple WebForms. Does anyone know why I'm having this issue?
Update: I also tried it locally on my desktop instead of on the web server. I can connect flawlessly to it via Localhost. I then installed a second on my desktop just by copying the folder and adding a page to IIS. That worked as well. Copying the working local install to the server still gives me a site that doesn't work.
The answer was a strange one. The previous developer working on the site was familiar with the AJAX tools from earlier versions of Visual Studio and had installed .Net 1.1 on the box to ensure compatibility with his code. IIS was defaulting new sites to point to the .Net 1.1 DLLs, while running in a .Net 2.0 app pool. Changing all of these manually to point to the 2.0 DLLs fixed the problem.

MS Edge SEC7117 Error when loading PNG

I am receiving the following error when trying to load a PNG (over https) into an iframe on Amazon's mechanical turk:
SEC7117: Network request to https://toucan.cs.colostate.edu/pp/images/125.png did not succeed. This Internet Explorer instance does not have the following capabilities: privateNetworkClientServer
You can view the page here https://workersandbox.mturk.com/mturk/preview?groupId=36TBNKR908TLAX7SKNTTRWW7TFYEDT It works fine in all other browsers.
I can't for the life of me figure out why Edge would be blocking PNG files (JS I can understand) and how to remedy it. Any ideas would be greatly appreciated.
More Info
Windows 10 64bit
Edge 20.10240.16384.0
Have tested on several machines and been able to replicate the problem
Have admin rights on all machines and they are not part of a domain.
Update
It seems to be an issue with the web server that is hosting the image which is running Apache. I placed the image on another apache server and everything worked fine. so then I tried to send the CORS header for all images as explained on https://github.com/h5bp/server-configs-apache/blob/fc379c45f52a09dd41279dbf4e60ae281110a5b0/src/.htaccess#L36-L53
but that still didn't solve the problem. For some reason Edge blocks the request.
The issue is Edge detecting the file server to be part of the local intranet, which is being referred to from a public website.
Related: SEC7117 Error when trying to load a javascript file in MS Edge
The solution is to host the files on a different subnet from what the computer you're accessing it from.

Access Forbidden! Error 403

I just reformat my pc and installed XAMPP 1.8.3 in a 64 bit Windows 7 platform.
I put my project in htdocs and run it in Browser.
My project's function saves offenses to a student but when I clicked the Save Changes button in the addedit_offense.php file in my project, it says:
Access Forbidden!
You don't have permission to access the requested object.
It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
localhost
Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7
Before everything went wrong and before I reformat my PC, everything went well. It runs okay and fine.
Please help me, I've been looking everywhere in the web but can't seem to find the right solution. Thanks! :)
ok as far as you said in the comments, the .htacess causes the problem. try to remove the .htacess file and it will surely work fine