CustomErrors does not work when setting redirectMode=”ResponseRewrite”

It is important to note for anyone trying to do this in an MVC application that ResponseRewrite uses Server.Transfer behind the scenes. Therefore, the defaultRedirect must correspond to a legitimate file on the file system. Apparently, Server.Transfer is not compatible with MVC routes, therefore, if your error page is served by a controller action, Server.Transfer … Read more

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

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 configure SMTP server (why?). I configured SMTP server as follows to make things work: Open … Read more

How to allow download of .json file with ASP.NET

If you want to manually add support to your site, you can just add the following to your web.config in the system.webServer section: <staticContent> <mimeMap fileExtension=”.json” mimeType=”application/json” /> </staticContent> This will add a “local” configuration under IIS. This does not work in IIS6, but does work in IIS7 and newer.

Login failed for user ‘DOMAIN\MACHINENAME$’

NETWORK SERVICE and LocalSystem will authenticate themselves always as the correpsonding account locally (builtin\network service and builtin\system) but both will authenticate as the machine account remotely. If you see a failure like Login failed for user ‘DOMAIN\MACHINENAME$’ it means that a process running as NETWORK SERVICE or as LocalSystem has accessed a remote resource, has … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)