When we communicate with a PHP webservice by using a HTTP post, you may run into some problems. I recently spend a few hours trying to solve one of these problems. My WebRequest wasn't returning any results from the PHP service. Even more, it look liked the webservice was just returning the page as like it was called without any parameters in a browser.
ASP.NET / MVC / SharePoint
Blog about c# development and random thoughts.
Friday, April 13, 2012
Tuesday, February 21, 2012
Probing privatePath
Ok,
let’s talk a bit about DLL hell in .NET and how we can make it a bit more clear
at times. Let’s say we have a lot of dll’s that need to be imported in a
website but they are very likely to change a lot over time, how would we go
about that? Or what about dll’s that don’t need to be referenced directly in
your project but get imported by the use of MEF?
Labels:
DLL hell,
privatePath,
Probing
Thursday, December 15, 2011
Unit tests: Ignore and InternalsVisibleTo attributes
Hey, I
want to quickly show you two helpful attributes when working with NUnit (unit
tests). I will quickly highlight the ignore attribute and the internalsVisibleTo
attribute.
Let’s
say you have internal methods in a class library that you want to test. So you
decide to test these through unit tests (NUnit). But suddenly you aren’t able
to call these methods in your test assembly. What are you going to do now,
rewrite them to be public? Wait a minute, there’s an attribute for that!
Friday, November 18, 2011
NuGet: Failed to download package correctly
While I like working with NuGet there is one error that randomly comes back every now and then. Maybe you have experienced the same one before:
Failed to download package correctly. The contents of the package could not be verified.
As I tried multiple work arounds in the past maybe this time I found one that really does fix the problem, at least for a while :).
Failed to download package correctly. The contents of the package could not be verified.
As I tried multiple work arounds in the past maybe this time I found one that really does fix the problem, at least for a while :).
Saturday, October 29, 2011
The triple door: Extension method – custom attribute – enum
Ever
found yourself in the position where you wanted to store information on an enum
value but didn’t remember how you could get them? Here is a good solution for
storing additional information on your enum in a custom attribute and getting
that info with an extension method.
Labels:
custom attribute,
Enum,
Extension Methods
Subscribe to:
Posts (Atom)
Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer’s view in any way.