Nebulae Spiral

Spiralling Golden… and maybe blogging about code.

Archive for September, 2008

The Rhetoric and the Reality – Interactive Graphic – NYTimes.com

without comments

Reality Check

John McCain

Republican convention speech, Sep. 4

I will keep taxes low and cut them where I can. My opponent will raise them.”

Reality Check

This drastically simplifies what the candidates’ tax plans would do. Mr. McCain would preserve all of the Bush tax cuts, while Mr. Obama would let them expire for those making more than $250,000 a year. Mr. McCain would also double the child tax exemption to $7,000 and reduce business taxes. Mr. Obama would reduce income taxes and provide credits for people earning less than $250,000 a year. The nonpartisan Tax Policy Center found that Mr. Obama’s plan would amount to a tax cut for 81 percent of all households, or 95.5 percent of those with children. The center calculated that by 2012 the Obama plan would let middle-income taxpayers keep about 5 percent more income on average, or nearly $2,200 a year, while Mr. McCain would give them an average 3 percent break, or about $1,400. The richest 1 percent would pay an average $19,000 more in taxes each year under Mr. Obama’s plan but see a tax cut of more than $125,000 under Mr. McCain.

please do read more:

The Rhetoric and the Reality – Interactive Graphic – NYTimes.com.

Written by Nebulae

September 12th, 2008 at 9:37 am

Posted in personal

Tagged with

People in the Sun: On the 2008 RNC Convention

with one comment

Saying Palin’s nomination is historic because she’s a woman is like saying the last eight years have been historic because it was the first time an idiot man-child has been allowed to rule a nation.

People in the Sun: On the 2008 RNC Convention.

Written by Nebulae

September 12th, 2008 at 9:33 am

Posted in personal

Tagged with

without comments

Ive notice a trend in the people hitting this site… they are looking for sharepoint info, not updates on my personal life.  Ive made private posts hidden to anonymous users, but if you do care for updates on the life of trinity, please register to see them.  

Apparently the Save Conflict is a pretty common search hit, I’m sorry i dont have a solution or cause to this but i can do some more reserch and try to narrow down a good solution.

cheers

trinity

Written by Nebulae

September 11th, 2008 at 12:02 pm

Posted in random

RPC_E_ATTEMPTED_MULTITHREAD

with 3 comments

Exception information:
Exception type: COMException
Exception message: Attempted to make calls on more than one thread in single threaded mode. (Exception from HRESULT: 0×80010102 (RPC_E_ATTEMPTED_MULTITHREAD))

ooh yah baby. this ones a doozy.

If you’re running into this in your sharepoint development journey, you have well bypassed the open site / open list / get list item / do stuff with it stage and have moved into the world of creating object representations of your list items, probably databinding that object off the list item to work with it, then populating the listitem columns from the object before saving it. IMHO, this is a nice, clean and managable way of development, BUT you could run into a couple roadblocks. this one looks a tad daunting but its an easy one to get around.

My scenario uses 3 lists. Registrations, Organizations, and Solutions. An Organization has an owner (registration) and 0-many solutions. I know, I know, the organization should be a property of the registration, but i digress…

so i have an organization object. this object has a bunch of fancy properties – address, phone number, etc, etc, and also an Owner and a List<Solution> . During the databind of this object from the listitem, I attempted to set these objects and received the RPC_E_ATTEMPTED_MULTITHREAD error – if you google this error, which you probably have since you landed here, you’ll see some answers that will have you believe that you need to implicitly dispose of the SPSite, SPWeb – you may even be tempted to add a GC.Collect in there.

This didn’t – and still doesn’t – make a whole lot of sense to me because the access to the list item was wrapped in a using statement which of course only works with types that inherit from IDisposable, and will be disposed of when you exit the using statement, right? Right? so you would think that after you access that list item and leave the using statement, the SPSite is disposed of and youre good to go… which is not really the case and I don’t know the intricacies of it all but I do know how to bypass this problem and the answer is – Lazy Loading. yes, serious.

back to my databind…
as I am binding all the properties from the listitem i just retrieved and I try to set the owner which would have to go access that site and get that list item from the registrations list, create a new owner object from that item, the RPC_E_ATTEMPTED_MULTITHREAD error gets thrown. the same when I’m trying to populate the Associated Solutions. If you move the code to populate these properties into the public accessor ( the getter ) so that the property is loaded when it is accessed instead of when the object is databound – poof! problem solved.

If this doesn’t solve your problem, or you’re seeing this error in Sharepoint without having the structure i described above or some format of it, drop me a line and we can figure it out.

cheers,
trinity
err, neb

Written by Nebulae

September 4th, 2008 at 10:02 am

Posted in code

Tagged with , , ,

Infopath forms hang when submitting to server.

with one comment

Ever run into the problem where you fill out a web based infopath form and it just… hangs… sending data to server? probably an issue with SP1. if you check the SPLogs, you’ll probably see errors about the canary being modified or something otherwise cryptic and useless: The format of the Canary has been tampered with for form {some guid here}

I dealt with this last week, did some research, and was advised to replace the SP1 Microsoft.Office.InfoPath.Server.dll with the pre SP1 infopath dll on the server. this seemed to fix the problem, but who knows what other issues it introduced. I would love to hear if anyone else has run into this, and if they managed to solve it in another, less hackey way.

Written by Nebulae

September 2nd, 2008 at 12:35 pm

Posted in personal