iis-6

ASP.net HTTP 404 - File not found instead of MaxRequestLength exception

时光总嘲笑我的痴心妄想 提交于 2019-11-26 22:45:17
问题 I have a file upload control on my webpage. The maximum request length is set to 8 MB ( maxRequestLength = 8192 ). I also have server validation that throws an error if the file is more than 4MB. The reason that its 8MB in the config is the leverage that's given to the user and also so that the application can be tested. If I upload a file that's 9MB, I get thrown an exception Maximum request length exceeded. , which is fine and working as expected. But when I try to upload a file that's 1GB,

ASP.NET MVC3 and Windows Auth on IIS keeps redirecting to /Account/Login

梦想的初衷 提交于 2019-11-26 21:32:50
I'm running MVC3 and a windows auth web application. When I deploy to IIS6 it runs great until I hit a page that requires authentication. It then is auto-redirecting to /Account/Login when I have no trace of that in my application and my web.config is configured to windows auth. Any ideas? Here is my entire web.config file: http://pastie.org/1568510 Check whether you have WebMatrix.Data.dll and/or WebMatrix.WebData.dll deployed in the bin directory of your application. If they are there (and you know you don't use them) then try removing them and accessing a page that requires authentication.

Get IIS6 to serve JSON files (inc. POST,GET)?

余生长醉 提交于 2019-11-26 20:13:39
By default, IIS6 does not serve .json (no wildcard MIME type). Therefore a 404 not found is thrown. I then add a new MIME type (.json, text/plain or application/x-javascript or application/json) which works fine. However, when you then add a new mapping (Home Directory -> Configuration -> Add) with .json, C:\WINDOWS\system32\inetsrv\asp.dll , " GET,POST " and try to browse to the file, you get a 404. If you remove the mapping and try and POST or GET to it, you get a 405 . ... Suggestions? Evan Anderson By default, IIS in W2K3 and above won't serve files that aren't of a MIME type that it knows

programmatically control output caching - disable or enable cache according to parameter value

白昼怎懂夜的黑 提交于 2019-11-26 19:44:55
问题 We've got a fairly standard e-commerce scenario with paged lists of products within categories. For better or worse, about 80% of visitors never navigate past the first page, depending on the category there may then be 5-10 more pages of results which are viewed far less often. (Yes we do optimise what appears on the first page and have good search - but that's a different discussion) We can't cache every single page of results, because we're constrained by memory, but the benefit of caching

Mailbox unavailable. The server response was: 5.7.1 Unable to relay for abc@xyz.com [closed]

跟風遠走 提交于 2019-11-26 19:41:15
I am getting " Mailbox unavailable. The server response was: 5.7.1 Unable to relay for abc@xyz.com " when I try to send the mail using ASP.NET. The site is deployed on IIS7, Windows 2008 server. The website was working fine on IIS6 and Windows 2003 Server . I deployed it on IIS7, 2008 it has started giving me this error. Has anybody experienced this before? Vinod T. Patil Aahh got it... I got it working :) Thanks Christopher, your suggesion is correct. But, finding "Default SMTP Virtual Server" was tricky ;) Even if you use IIS7 to deploy your web site, you have to open IIS6 Manager to

CustomErrors does not work when setting redirectMode=“ResponseRewrite”

不打扰是莪最后的温柔 提交于 2019-11-26 19:36:39
In a old site, I was changing the way that CustomErrors works by adding redirectMode="ResponseRewrite" (new in 3.5 SP1): <customErrors mode="RemoteOnly" defaultRedirect="Error.aspx" redirectMode="ResponseRewrite"> <error statusCode="404" redirect="404.aspx" /> </customErrors> The thing is: it shows me the generic error page (the one that you get when you don't set customErrors . If I remove the redirectMode="ResponseRewrite" part, it works fine. I'm sure 3.5 SP1 is installed in the server, because I use the same setting on other sites hosted in the same server. Any ideas? Michael Hallock It is

Socket transport “ssl” in PHP not enabled

佐手、 提交于 2019-11-26 18:38:45
I'm having trouble enabling the socket transport "ssl" in PHP. When I run my script, I get the error: Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://www.my.site.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) I'm running IIS6 on Windows and this is what I've done so far to try to get it working: uncommented the php_openssl.dll and php_sockets.dll extensions in php.ini made sure PHP was loading the ini file I made changes to (it is, and it's definitely loading other extensions, so I'm fairly sure this isn't the

Unmanaged DLLs fail to load on ASP.NET server

空扰寡人 提交于 2019-11-26 18:30:21
This question relates to an ASP.NET website, originally developed in VS 2005 and now in VS 2008. This website uses two unmanaged external DLLs which are not .NET and I do not have the source code to compile them and have to use them as is. This website runs fine from within Visual Studio, locating and accessing these external DLLs correctly. However, when the website is published on a webserver (runnning IIS6 and ASP.NET 2.0) rather than the development PC it cannot locate and access these external DLLs, and I get the following error: Unable to load DLL 'XYZ.dll': The specified module could

How to redirect a URL path in IIS?

橙三吉。 提交于 2019-11-26 17:41:55
In IIS 6.0, is there an easy way to re-direct requests to a folder to another folder, while preserving the rest of the path. e.g. If I have moved the content from: mysite.org.uk/stuff to stuff.mysite.org.uk/ Can I automatically redirect requests for specific pages like mysite.org.uk/stuff/countrybriefing/tanzania/travel.html to stuff.mysite.org.uk/countrybriefing/tanzania/travel.html I know that .htaccess can do things like this in Apache, is there an equivalent in IIS? Dmitri Farkov Taken from Microsoft Technet . Redirecting Web Sites in IIS 6.0 (IIS 6.0) When a browser requests a page or

Web App getting Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'

房东的猫 提交于 2019-11-26 17:32:27
问题 I see that many people get this error, but their situations all appear a little different from mine. I have a ASP.NET 4.0 web app that runs in IIS 6.0 on a Windows 2003 Server. When I Remote to the web server box and log on there and access the site as localhost rather than by machine name, the web app works fine. However, when I access the web site from another client machine, I get the following error: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON' The web site has Anonymous access