Monday, August 30, 2010

Fiddler and Android SDK

So, I've been trying to get my android emulator to talk through fiddler. I've run through all the settings, command line options, and nothing seems to work. I ran across one quote that I suspect is true, in Android 2 it ignores any proxy settings and is broke. It works great in 1.5.

Even though we aren't using Android 2.2 OS, I decided, why not. Kick it off, tweak the settings, and sure enough, it actually works. Since what I'm needing to test isn't specific to 2.1 or 2.2, this is good enough for me. YMMV, but try it with 2.2 and it should work. (if only Google would go back and fix 2.1)...

Thursday, August 26, 2010

Custom Membership Provider in winforms

So, I've been tasked to create users on one system into another. No prob. I just create a simple console app, add our custom membership provider to the right config section, borrow some code from another app, and loop it. Whee....

... Until, that is, I kept getting the error, Unable to find XXXX.Membership in System.Web....

There's all kinds of references of how to use the default membership provider in a winform or console app, but not much on a custom membership provider. After a good bit of digging, I found this blog: http://geekswithblogs.net/Shadowin/archive/2007/04/05/110864.aspx

I failed to put ", AssemblyName" in the reference in the config. So it was defaulting to System.Web.

Your entry for the custom membership provider should look something like this:


< add name="AspNetSqlMembershipProvider"
type="XXXXWeb.Security.CustomMembershipProvider, XXXXMembership"
connectionstringname="SiteSqlServer" / >