Posts Tagged ‘ASP.NET’

Forms authentication and domain names with underscores

In a recent project we had a test server with an internal DNS name (something like portal_uat and portal_test). Forms authentication is enabled and it works fine in Chrome and FireFox, but Internet Explorer did not get pass the authentication page because the cookie was not set. It appeared that our DNS name contained a [...]

Web installer cannot contain a folder called filters

In a recent project we use the standard VS 2008 Web Installer Project to create a MSI to setup a web application. This worked fine before but after some recent changes the installer stopped at almost 100% and rolled back. After creating a log (by executing msiexec from the command line and specifying the /lv [...]

Handling the The remote certificate is invalid according to the validation procedure exception

If your application accesses a webservice or other type of service where a secure connection is required by the use of SSL, you need to make sure this SSL certificate is valid. On a development machine this is not always possible. At runtime the application will throw an exception: System.Security.Authentication.AuthenticationException: The remote certificate is invalid [...]

Use culture inside url with ASP.MVC

For a website I needed to pass in the culture for the UI and other settings. The culture info needed to be set by using a url, so the links can be bookmarked and emailed. One way to do this, is specifying the culture inside the route like this: routes.MapRoute(“Default”, “{culture}/{controller}/{action}/{id}”, new { action = [...]