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:

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" / >

Wednesday, July 28, 2010

'standardEndpoints' cannot be read because it is missing a section declaration

I just tried to publish my first WCF RESTful service to our 2k8 box, and hit the wall with the following error:

The configuration section 'standardEndpoints' cannot be read because it is missing a section declaration

Well, after much searching, trying different options, reconfiguring, reading documentation, I finally found a post that should clear it out:

NET 4.0 Beta1/Beta2 Web Application Configuration section missing declaration error

Appearently, on a windows server 2008 box, most .net 40 stuff works (well stuff that I've tried), but a couple of the items were missed. I didn't see an sp2 for win2k8 in the updates, so I downloaded and ran the HotFix. And what do you know? That worked. I've seen a bunch of posts on how to fix this error. This might just be the solution you're looking for.

Tuesday, June 29, 2010

Okay... i've been busy...

Currently, I'm working on a new project using MVC 2, StructureMap, and all those goodies. I just ran across a nice blog that combines all those, plus some:
Maintainable MVC series.

The main point was this little nugget, that I figured out on my own, but would have been nice to know about in the beginning:

If a class is created by StructureMap it defaults to the constructor with the most parameters.

Oh well. Even though it takes longer, you often remember things better when you have to struggle to find the answer than it being given to you.

Thanks anyways!