http-status-code-404

ASP.Net 404 Redirect for friendly url not working

你说的曾经没有我的故事 提交于 2019-12-24 12:00:27
问题 I have the below code to do 404 redirect in Global.asax.cs protected void Application_Error(object sender, EventArgs e) { Exception ex = Server.GetLastError(); if (ex.InnerException != null) ex = ex.InnerException; if ((ex is HttpException && ((HttpException)ex).GetHttpCode()==404 )) { Response.Redirect("~/Custom404Page.aspx"); } } It works fine in visual studio and getting user friendly Custom404Page. But when I deploy the same in IIS 7.0, it is not at all working. Shows the below message In

Azure Active Directory B2C, 404 error, unexpected question mark in URL

雨燕双飞 提交于 2019-12-24 11:55:42
问题 I am implementing Azure Active Directory B2C from this official tutorial. when I run my code it says 404 - File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable. The issue is with URL, it contain question mark (screenshot). In place of question mark there should me an ampersand (&), if I manually replace "?" with "&" it works fine. Here my startup class public partial class Startup { // App config settings

Sitecore Images (ASHX extensions) not being picked up by IIS 5.1 or IIS7 Express- Getting 404 Instead

ぐ巨炮叔叔 提交于 2019-12-24 07:32:46
问题 At the moment I have no images being picked up at the moment, and this is off a completely default Sitecore Xpress install. I think this version is based on a 6.0 release I have installed it on a XP machine (no images) and then tried running it through WebMatrix, still with no images. I am at a loss really, and I have been grasping at straws a little. 回答1: Unfortunately I don't have much expirience with the Xpress edition. But one thing is that you need to have the mime-types setup on the

Exclusive url-patterns in Tomcat web.xml descriptor

旧巷老猫 提交于 2019-12-24 07:26:14
问题 I am trying to redirect erroneous page requests - 404 errors - to a custom error page. In order for my servlet, instead of the root servlet, to handle these requests, I entered the following url-pattern: <url-pattern>/</url-pattern> Unfortunately, this also catches embedded requests for files like *.js, *.css, *.png, *.jpg, and other such files. Is there a way in the deployment descriptor to specify an exclusive pattern? Say, "everything EXCEPT requests with x extension"? Or is there another

Android HTTP request wierd 404 not found issue

送分小仙女□ 提交于 2019-12-24 07:12:57
问题 In my application, I am trying to hit a URL which I do using the following code try { url = new URL(serverURL); httpURLConnection = (HttpURLConnection) url.openConnection(); int timeout = 30000; httpURLConnection.setConnectTimeout(timeout); httpURLConnection.setReadTimeout(timeout); httpURLConnection.connect(); String httpResponseMessage = httpURLConnection.getResponseMessage(); responseCode = httpURLConnection.getResponseCode(); Log.i(LOG_TAG,"Response code "+responseCode); } catch

Source map request causes 404 error

你离开我真会死。 提交于 2019-12-24 04:25:12
问题 After updating to Chrome 29 I have noticed that the browser try to get jquery.min.map from app root. But request before it was received from assets (small reputation don't let me post screen image for proofing). Of course, I can switch off source maps in browser settings as at this question, but maybe there's another true way? And the difference in my case is that the source map was received from assets. 回答1: Source maps are only loaded by Chrome when the developer tools are opened, so it

Nginx + Rails 4 assets not found

空扰寡人 提交于 2019-12-24 03:56:05
问题 I've just deployed my first Rails app to production, but encountered error: my assets for some reason are not served by nginx. Assets are compiled and exist. Names are correct, paths correct. Instead of assets nginx sends me 404 error. As a server I use Puma if that matters. My config for that part looks like this: location ~* ^/assets/ { # Per RFC2616 - 1 year maximum expiry expires 1y; add_header Cache-Control public; # Some browsers still send conditional-GET requests if there's a # Last

Keycloak - using admin API to add client role to user

时光总嘲笑我的痴心妄想 提交于 2019-12-24 03:39:19
问题 I'm triyng to use keycloak AdminAPI (https://www.keycloak.org/docs-api/3.0/rest-api/index.html#_users_resource) to create user and assign client roles. I'm receiving correct token, and user is created but assigning roles return 404 I'm using Postman to connect with API: /auth/realms/{realmName}/protocol/openid-connect/token Content-Type application/x-www-form-urlencoded <-with parameters ofc /auth/admin/realms/{realmName}/users Content-Type application/json Authorization Bearer {TOKEN} Body:

Umbraco V6 404 not handled properly according to culture

情到浓时终转凉″ 提交于 2019-12-24 03:08:34
问题 I have an umbraco site (umbraco v6), and I have set up custom 404 handling as per http://our.umbraco.org/Documentation/Using-Umbraco/Config-files/umbracoSettings/index. My content tree is as follows: Content Root Greek-Homepage Greek-Content Greek-Not-found (id: 1303) English-Homepage English-Content English-Not-found (id: 1304) And I've set up the <errors> tag as follows: <error404> <errorPage culture="default">1303</errorPage> <errorPage culture="el-GR">1303</errorPage> <errorPage culture=

Receiving 404 error for assets in Github Pages Jekyll site

人盡茶涼 提交于 2019-12-24 02:23:30
问题 I'm attempting to set up a basic Jekyll site on github pages. The site in question currently is: https://kculmback.github.io/kcfeatures-v2/ Here is the repo: https://github.com/kculmback/kcfeatures-v2 My problem is that the site is not loading images or the css files from my assets folder, even though the link seems to be correct (as far as I can tell). Example link to image: kculmback.github.io/kcfeatures-v2/assets/img/Logo.svg (currently not working) Here is the image in the repo: github