In IIS 6, I am trying to deploy a Web Site project from Visual Studio 2008. This site has a sub-folder with some aspx pages in it. When I deploy the project to the server and navigate to the site, everything works except for the pages that exist in the sub-folder, they throw a 404 error.
In IIS, I can navigate the sub-folders and see t...
I'm teaching myself some basic scraping and I've found that sometimes the URL's that I feed into my code return 404, which gums up all the rest of my code.
So I need a test at the top of the code to check if the URL returns 404 or not.
This would seem like a pretty straightfoward task, but Google's not giving me any answers. I worry I...
I'm using URL rewrite on my site to get URLs like:
http://mysite.com/users/john
instead of
http://mysite.com/index.aspx?user=john
To achive this extensionless rewrite with IIS6 and no access to the hosting-server I use the "404-approach". When a request that the server can't find, the mapped 404-page is executed, since this is a aspx-pa...
if (strstr($_SERVER['REQUEST_URI'],'index.php')){
header('HTTP/1.0 404 Not Found');
}
Why wont this work? I get a blank page.
...
If given the route:
{FeedName}/{ItemPermalink}
ex: /Blog/Hello-World
If the item doesn't exist, I want to return a 404. What is the right way to do this in ASP.NET MVC?
...
I'm replacing an old web application with a new one, with different structure.
I can not change the virtual directory path for the new app, as I have users which have bookmarked different links to the old app.
Lets say I have a user, who has this bookmark:
http://server/webapp/oldpage.aspx?data=somedata
My new app is going to reside ...
In FireFox3 when I go to URL's such as:
http://download.microsoft.com/download/4/A/A/4AA524C6-239D-47FF-860B-5B397199CBF8/windows-kb890830-v2.7.exe
I get a 404 error for the URL locally on my XAMPP installation I use for local development.
It has to do with the .exe I think but I can't figure out why.
Whats the problem?
Object not f...
I'm using spring and acegi in a webapp that's deployed in tomcat 5.5.26.
I want to see if the user is logged in on the 404 page, so that we can show their name if they're logged in, and a login link otherwise.
I have the HttpSessionContextIntegrationFilter, in the filters on the REQUEST dispatcher. I also have it in the ERROR dispatche...
The pertinent part of my .htaccess looks like this:
Options -Indexes
<FilesMatch include>
Order allow,deny
Deny from all
</FilesMatch>
RedirectMatch 404 ^/include(/.*)$
And it's generating the following responses:
/include 403
/include/ 404
/include/config.inc 403
I can tell by looking at my pattern that problem is l...
Hi all,
I have an aspx page where I’m allowing a user to upload a file and I want to cap the max file upload size to be 10MB. IIS7, .NET 3.5. I have the following configured in my web.config file:
<location path="foo.aspx">
<system.web>
<!-- maxRequestLength: kbytes, executionTimeout:seconds -->
<httpRuntime maxRe...
The concept
So, I've already made (upgraded actually) this website with its own Content Management System (CMS) that everyone likes. As with most CMS, the default behavior was the access pages with the ugly and utterly unhelpful url like such:
www.mysite.edu/index.php?pageid=xxxx
So the idea was to change it so that we could have "r...
I just started using jQuery 1.3.2 on one of my sites - mostly DOM stuff but there's a little bit of ajax. My log records show consistent 404's coming from the folder where I keep the jQuery file, and the 'pages' triggering the error turn out to be snippets of the jQuery file:
){F.html(E?o(
]||!o.suppo
rt.htmlSerialize&&[1,
I've scour...
I haven't been able to replicate the exception when I browse my site... but I found out about this through my event logger (it emails my cell phone when an unhandled exception occurs).
Here's the exception:
The controller for path
'/Content/UsrImg/ImageFileName.jpg'
could not be found or it does not
implement IController.
Wh...
Is it possible to get the URL of the failed request from a custom 404 error page? I'm using IIS to set the custom error page to a .net page where I want to process the failed request.
I've tried using the url and referer attributes from the request object but they don't work.
...
I've got a grid which provides some links for users to download files. Files are stored outside of the application, the path references are read from the database and a HTTP handler (*.ashx) is used to serve each requested file. It is, however, possible that there could be a database entry pointing to a non existent file. I catch the Fil...
Does anyone know the best way to do this? Apache, tomcat, linux
...
I am just getting started on ASP.NET MVC so bear with me. I've searched around this site and various others and have seen a few implementations of this.
EDIT: I forgot to mention I am using RC2
Using URL Routing:
routes.MapRoute(
"Error",
"{*url}",
new { controller = "Errors", action = "NotFound"...
I'm trying to determine the best way to implement a 404 page in a standard ASP.NET web application. I currently catch 404 errors in the Application_Error event in the Global.asax file and redirect to a friendly 404.aspx page. The problem is that the request sees a 302 redirect followed by a 404 page missing. Is there a way to bypass t...
I changed my show controller to find records by their permalink rather than their id (for SEO juiciness).
def show
@project = Project.find_by_permalink(params[:id])
end
But, if I type in localhost:3000/projects/foo (and there is not a project with a foo permalink) I get a 500 server error instead of a 404 not found.
Why is this, an...
I am trying to access the Exchange 2007 mail store programmatically using WebDAV. However, for some users I am getting the dreaded error "404 Not found". I am using a url similar to http://server/exchange/usermailbox/. It is working just fine for some users but not for others.
What might I be doing wrong?
...