-
DotNetNuke: “Validation of viewstate MAC failed” exception when using the DNN 7 login form in multiple tabs
Update 2013-04-18 It turned out, that this is not a bug, but a security feature in DNN. I’ve written an new blog post that describes a possible workaround. This is the first blog post in my new DotNetNuke blog series. For a while now, I’m developing custom DotNetNuke modules and skins and I would like […]
-
Eclipse & Windows 64-Bit: Resolve “Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available…” and “Java was started but returned exit code= 13…”
It’s been a while I’ve set up Eclipse the last time and today I tried to run Eclipse (“Eclipse Classic 4.2.1 / 64 Bit” downloaded from here to be precise) on my fresh installed Windows 8. After extracting the zip folder and starting eclipse.exe I got the error message: Java Runtime Environment (JRE) or Java […]
-
Ubuntu 12.04.1 LTS & ant: Resolve “Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk-amd64/lib/tools.jar”
I recently got the following error when I tried to run ant on a fresh installed Ubuntu 12.04.1 LTS machine: Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk-amd64/lib/tools.jar The solution was to install the openjdk-6-jdk package as follows: #sudo apt-get install openjdk-6-jdk Hope this helps somebody…
-
ASP.NET MVC 4 RC: Get current controller name from HttpContext
To find out the name of the current controller from a HTTP context, you can use the following code snippet: var controllerName = RouteTable.Routes.GetRouteData( new HttpContextWrapper(HttpContext.Current) ).Values[“controller”].ToString();
-
ASP.NET MVC 4 RC & ASP.NET Web API: Implementing custom XmlMediaTypeFormatter that ignores XML namespaces
In this blog post I will show how to implement a custom XmlMediaTypeFormatter that extends the default ASP.NET Web API XmlMediaTypeFormatter in a way that it ignores XML namespaces when parsing xml messages. By default the ASP.NET Web API XmlMediaTypeFormatter is not able to parse XML requests that contain any XML namespace declarations. If you […]
-
ASP.NET MVC 4 RC & ASP.NET Web API: Return “HTTP Status code 4xx” instead of throwing InvalidOperationException “No MediaTypeFormatter is available to read an object of type ‘[…]’ from content with media type ‘[…]’”
By default ASP.NET Web API (included in ASP.NET MVC 4) throws the following exception when trying to process a request with an unsupported content-type (like “text/plain”): System.InvalidOperationException No MediaTypeFormatter is available to read an object of type ‘[…]’ from content with media type ‘[…]’. IMHO, sending a wrong content-type is a client-side error, and the […]