Entity + GAC’d Assembly == Hell?!

June 17th, 2009 Rev No comments

Okay, so I’m trying to have the .NET conversion of the site at work use Entity for our Data Access Layer. Seems reasonable. I also figure I’ll represent the different silo’s of data (accounts, catalog, etc) into their own Entity Contexts and in their own Assemblies… all under a namespace.. like DAL.Accounts or DAL.Catalogues. So far so good.

Now my thinking goes that I’ll want these accessible by any of the web applications we’ll be creating for the site. And I’ll only want to maintain one copy of the files rather than spread across all the web apps. So clearly I should put the assemblies in the GAC.

First issue comes up is that the default connection string is stored in the app.config file. This isn’t put in the GAC. So, no default connection string. Hrmmm okay…

Well, if I put the appropriate connection string in the web.config of the web app this should suffice. Hrmm stretching a bit.. but okay. Ooop, nope. Not working. Well, perhaps I need to be specific about the assembly name in the reference section of the connection string. Noooo… still hates me. In looking at the documentation is looks like (if I read it correctly) it’s going to search for the resources files in assemblies in every spot BUT the GAC!

Sure, sure… I can create a context and pass the connection string in by hand. okay.. that works. I even created an EntityFactory class in the assembly to pass back a new context… so I don’t have to worry about knowing the connection string. But, I’m faced with the fact that none of the data binding is working.

What am I, or Microsoft, doing wrong here? Clearly one of the two of us is at fault.

iPhone Stencil

June 16th, 2009 Rev No comments

Just got back from picking up my iPhone Stencil from Design Commission. The stencil looks nice. Look forward to using it as soon as I get a chance to design one of my ideas. Got to email a company and see if they’d have my app pulled if I did it. We’ll see.

Oh, and 3rd and Yesler is a pit! Like one of the lower levels of hades. Uggg.

Tags:

A little like smoking

June 10th, 2009 Rev No comments

I’ve found myself reaching for my iPhone and my twitter client, which I’ve deleted. It’s like reaching for smokes all the time. Oh well. It’ll pass. Now I need start getting projects in order.

Tags:

Simplifying

June 10th, 2009 Rev No comments

So, I’m breaking up with twitter. But not just twitter. I’m reorging my tech heavy life to try and get focus and control back.

My focus and time management are trashed and with ADD, a very delicate thing to begin with. So I’m pulling a Star Trek reboot on how I do things and the tools I use to interact with others on the net.

I’ll be rolling back to my blog as my outlet for ideas and tips and what not. I mean, the sub caption is “Rev’s Thought Dump”. For chatting feel free to email me or even IM if you’re so inclined. Could even call!

Yeah, it’s just time for me to finish projects and work on myself for a change.

It was cool meeting everyone on twitter. And it’s been my primary social outlet. But I get nothing done with it in my life. Not just twitter, but that’s the most notable outward change.

To email and chat I can tell you I have a Gmail account and it’s rev(dot)fry.

Hope to keep chatting with everyone from twitter. It’s not you, it’s them. =)

(go go power iPhone wordpress app)

“I’m Philbert and I approve of this message.”

Tags:

Silly @ work

March 26th, 2009 Rev No comments

Had a conversation with my coworker about customer service asking for passwords on the phone. It devolved into us taking turns in creating the fictitious one side phone support call transcribed below. At the time we laughed our asses off.

Excuse me sir i’ll need the social and cc numbers for you and your extended family in order to fix that site problem…. in fact just mail a check to this po box.

Do you have a daughter? Uh huh?  Is she cute?  uh huh… 16?  Yeah… yeah, I was afraid of that sir.  Yeah she made need to fly out here and stay with me for a few weeks while we get this fixed.

no the blank checkis just for identity validation purposes…. yes you must sign it

Noooo…. if you write VOID on it then it’s VOID and I can’t….. erm…. use it to fix the problem.

Are you trying to void your identity sir …. i beleive that may be illegal…

Something tells me, you’re the kind of sick terrorist bastard type that rips the tag off their matress.  Am I right, sir?  AM I RIGHT?! I’m sorry sir, but to continue working with you despite my moral judgement I’m going to need you to send me a $150 star bucks card.  yes, yeah, that’s right sir.  Just send it along with your daughter.

I’m going to need you to make several deposits to this account in order to establish a “Freedom of  Information Transaction Channel” - no don’t worry the money will never really l;eave your account - it wil;l just appear that way for a little while…

We are sorry for the increased security sir - unfortnately these measures have become nessacary in the post 9/11 world…

Of course, sir, everyone in the know will deny all knowledge.  The is triple top secret stuff, you understand.

you are very lucky to have been selected for this special patriot plus program.

To decline our offer would surely indicate terrorist ties and you WOULD be subject to a full body cavity search as well as complete IRS audit.

Ahh, bein’ nutty is fun.  I <3 imagination.

Tags: ,

IE “Object doesn’t support this action”

March 9th, 2009 Rev 2 comments

I ran into this little bundle of awesome while trying to work with JSON and jQuery. In FireFox (as always) everything worked wonderfully. But as soon as I opened it up in IE it quickly turned into anything Microsoft is involved in, a huge cluster.

After hunting and hunting I found the issue with this bit of javascript:

for(item in ResultsArray.items){….

Turns out in IE ‘item’ is a reserved word. So watch out for that.

Ugg I hate IE. I hate how it makes me scream and complain.

Damn you MS!

Thanks for the pointer from Johannes Fahrenkrug’s site.

System.IndexOutOfRangeException: Index was outside the bounds of the array.

March 6th, 2009 Rev 1 comment

Okay, this one made me want to smash my head with a brick.  I’m working along on a web site using C# and ASP.NET 1.1 when I suddenly get this error.  I’m getting a DataTable from a DataSet so it makes sense.

I start by checking the query. Nope, still returns data just fine.  I test and make sure the DataSet isn’t null.  I make sure the table isn’t null.  Nothing seems to be wrong.  So I say, okay, fuck it and I choose a different way of getting my DataTable.  Then suddenly it’s saying assign “” to the value of a string is an array out of bounds exception.

By this time I’m losing my ever loving mind.  Finally I google it up and find that for what ever reason ASP.NET will flag the first line of a method for that exception even though it happens later in the method.

Completely blew my mind. I mean, I had other errors and exceptions come up that pointed to the right line of code.  But not that one.  VERY furstrating.

So, keep an eye out for that one.

GMail and iPhone issues Redux

November 14th, 2008 Rev No comments

Okay, I posted earlier about having issues logging into your gmail account on the iPhone or via Pidgin for google chat.  I started running into this problem again only on the iPhone and only when I was on edge/3G. Here’s how I got it working again.

Recently I got my phone replaced and synched with my computer.  For what ever reason the accounts that synched back were faulty.  So what I did was to delete each account from the phone and then recreate it.  But first, for each gmail account I went to this link: https://www.google.com/accounts/UnlockCaptcha and unlocked it.

You might recall in the previous post I had a link to a similar page on google’s site that could prompt with a captcha if locked.  But this takes you right there and get’s the job done.  Again, just search Google’s site for UnlockCaptcha.

After unlocking and recreating the accounts everything seems to be working perfectly again.  Go figure.

Tags: , ,

Can’t log into gmail on iphone or gchat on pidgin

October 20th, 2008 Rev No comments

I’m getting this occasionally.  Where I can’t log into my gmail in the mail client on the iphone or into google chat with pidgin.  Though, oddly enough I’m still perfectly capable of logging into my gmail account via the browser. I believe it most often occurs when I have something set incorrectly and it repeatedly tries the incorrect password for an account.

In this case I had just restored my iPhone backup to the new phone I got over the weekend ( had dust behind the screen so they gave me a new one). When it restores it doesn’t fill in your passwords for you and apprently this can result in several failed attempts to connect.  I don’t know why it didn’t prompt me for the correct password, even though my Exchange account at work popped up an invalid password notice.

Anywho, like I said I’ve had this happen a few times now and it’s always really annoying and I tend to forget how to clear the issue. But since, like I said, this just happened.  I’m going to go ahead and post the solution here. For you. And for myself.

Simply go to https://www.google.com/accounts and log into your account.  It should prompt you again to login but this time present you with a captcha.  Login one more time, filling in the captcha, and tada!  All done!

In a time of phising attacks and the like, I wouldn’t blame you for not wanting to just follow my link.  So here is the link to the Google knowledge base article.

And if that doesn’t make you feel secure, just google for “How do I unlock my Google Account”

Good, now let’s hope I remember to look here first next time.

A blog about geeks living with ADD?

September 18th, 2008 Rev 1 comment

You know, as good an idea as that sounds, I think by definition it wouldn’t work. It’s like the apocryphal “Anarchists meeting”

And really, isn’t every personal tech blog out there a journal of tech and ADD, for the most part?

Tags: ,