In .NET Framework 4 url checking – request validation – is different from .Net 2.0. This is the error you will see when you hit this: Server Error in ‘/’ Application. A potentially dangerous Request.Path value was detected from the client Description: An unhandled exception occurred during the execution of the current web request. Please… Continue reading How to remove characters to avoid .NET Request Validation Error (A potentially dangerous Request.Path value was detected from the client)
Author: Max
ASP.NET Routing gives 404 error
I really like the new .NET 4 (3.5) routing, it is very simple and straight forward to implement – just add some MapPageRoute to your global.asax and then some RouteData.Values to your aspx files 🙂 Anyway it was simple until last night when I was adding routing to an old VB.NET WebSite project. I just… Continue reading ASP.NET Routing gives 404 error
Filter by Label in Gmail
I have just started playing around with Filters in Gmail. This is one thing that took me some time to figure out, how to filter by label. It turns out it was quite easy, it seems you can use any search string in the “Has the words” field of your filter. To get a label… Continue reading Filter by Label in Gmail
How to Create a Google Map from GPS coordinates
You can import coordinates into Google Maps using the KML or GeoRSS formats. Here’s how you do it in five easy steps: 1. Have your coordinates ready, in a text file, Excel, csv file, on paper etc. 2. Download a csv/text/Excel to KML converter. I used this one by simon_a and it worked like a… Continue reading How to Create a Google Map from GPS coordinates
ASP.NET 4.0 Chart Control Problems on IIS7
I have been playing around with the ASP.NET 4.0 Chart Controls for a new web site (Bilvärdet.se – used car price statistics) When deploying it to IIS7 on my Windows Server 2008 I ran in to a few problems: 1) I did not have .NET 4.0 Framework installed on the server 🙂 It turns out… Continue reading ASP.NET 4.0 Chart Control Problems on IIS7
MySQL and Visual Studio 2010 Membership, Roles and User Profile Provider
In Visual Studio 2010 (VS2010) when you create a new Web Application Project using the default Web Template “ASP.NET Web Application” it creates an Account folder with the files Login.aspx, Register.aspx and ChangePassword.aspx. These are files/pages for ASP.NET Membership which is ASP.NET’s built-in user handling. I have never used Membership before but have been curious… Continue reading MySQL and Visual Studio 2010 Membership, Roles and User Profile Provider
Install cURL PHP Extension on Windows IIS
I tried to run a new PHP script that someone else wrote for me on my Windows Server 2008 and got some errors relating to cURL such as this: Fatal error: Call to undefined function curl_multi_init() First I spent a lot of time trying to find information on how to install cURL on a Windows… Continue reading Install cURL PHP Extension on Windows IIS
MySQL Workbench Query Browser is super slow
MySQL GUI Tools which included the MySQL Query Browser and MySQL Administrator has now been replaced by the MySQL Workbench tool. The Workbench edition which includes Query Browser (now called SQL Development) and Administrator (now called Server Administration) is only available in beta but it the old MySQL GUI Tools have already been pulled from… Continue reading MySQL Workbench Query Browser is super slow
WordPress on Windows/IIS cannot upgrade, add plugins, upload themes
I have been struggling with this one ever since I moved my WordPress installation from my old Windows 2003 server to a new Windows Server 2008 machine. If I try to use “automatic upgrade” to upgrade to the latest WordPress release or upgrade or add a new plugin I get to the “Connection Information” page… Continue reading WordPress on Windows/IIS cannot upgrade, add plugins, upload themes
PHP 5.3.1 upgrade on IIS7 and MySQL gives Internal Server Error
Solution After a lot of googling and testing I finally found Bruce Kirkpatrick’s comment at the end of the PHP install manual Seems it is no longer enough to have localhost in the servers local hosts file (C:\Windows\System32\drivers\etc\hosts) you also have to comment out or remove the IPv6 equivalent. 127.0.0.1 localhost #::1 localhost After I… Continue reading PHP 5.3.1 upgrade on IIS7 and MySQL gives Internal Server Error