Daily Archives: September 3, 2007

EntityKey and ASP.NET ViewState

Just to see another aspect the before and after difference of serializable EntityKeys in the Beta2 of EntityFramework, I simply stored a single Customer entity into viewstate, posted back and then looked at the entity in debug to see that yes, the EntityKey is there.

I went back to my Beta1 VPC and when I try to add a single customer entity object to viewstate, I get all kinds of serialization errors. No point in analyzing them since it works now.

I’ll probably explore some asp.net databinding scenarios next.

Jersusalem Trail hike and lots of pretty berries I don’t want to eat

On Saturday, Rich and I hiked up the Jersusalem trail which is only a short drive from our house. It is one of the many trails that take you up to the Long Trail. This one lands about half way between the App Gap and Mt. Abe.

Alongo the way there were lots of berries growing, none which looked the least bit appetizing. So I took their pics and came home to find out what they were. i’ve only got one id’d so far. And I’m STILL trying to figure out what the flowers were that I saw on an early summer hike that are here. I think I saw them on a wildflower poster somewhere and tried to memorize the name, but forgot by the time I got home. uggh.

The first turns out to be a White Baneberry, aka “Doll’s eyes”, which I identified thanks George Africa’s blog post. George is one of those fairytale gardeners. You’ll see what I mean if you poke around his blog.

Here is a really unpalatable blue berry which really is probably just a dried up seed pod from whatever flower was here. The leaves are reminiscent of a bleeding heart.

This last one looks like maybe it’s some type of viburnum and it’s something I’ve seen frequently. I’ve just looked at pictures of many varieties, but can’t find one quite like this. So maybe it’s something else. but the most important thing is not to eat the darned things.

Speaking of eatingi things in the woods, the chanterelles have finally arrived! They were much later this year than the past few years. I’ve only had one sumptuous batch so far – about 2 pounds that I picked and brought to a recent party and cooked up in pounds of butter. Over the past few years, my skill as a chanterelle cook have definitely improved. High heat, loads of butter and lots of salt & pepper. Very French, just don’t tell my doctor. 😉

Entity framework Tools: Package Load Failure when opening up EDMX in designer (FAQs are coming)

In the forums, Craig Lee responds to the  problem reported in this thread:

We are planning on releasing an FAQ of known issues, but here is a preview to see if this helps you.

Issue
Visual Studio displays a Package Load Failure error message for Package ‘Microsoft.Data.Entity.Design.Package.MicrosoftDataEntityDesignPackage’ when you double-click on a .edmx file

Workaround

This issue is caused by earlier installations of the MCrit June CTP.

1.    If it is installed, uninstall the ADO.NET Entity Framework Tools CTP from “Add/Remove Programs” in control panel

2.    Use gacutil.exe to verify that the following DLLs are not in the GAC. 

a.    Microsoft.Data.Entity.Design.dll

b.    Microsoft.Data.Entity.Design.EntityDesigner.dll

c.    Microsoft.Data.Entity.Design.Package.dll

d.    Microsoft.Data.Tools.XmlDesignerBase.dll

3.    Use Regedit.exe to check for and remove the CodeBase value from the registry at:

a.    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Packages\{8889E051-B7F9-4781-BB33-2A36A9BDB3A5}

4.    Reinstall the the ADO.NET Entity Framework Tools CTP