Geeks With Blogs

News





The SharePoint Hillbilly Fewer Big Words... More Pretty Pictures...

I hear a lot of stories that start off with “We were going to use InfoPath for this project but we couldn’t get it to work so we had to do it all as .aspx forms”.  Frankly, if I were not so stubborn I would have the same stories.  At first glance InfoPath seems like a great solution, then you start to get under the covers a little bit and it becomes more and more frustrating.  You end up having to purchase a code signing certificate, open the form up to Full Trust, write Code Behind, etc… and every time you add something else you have to go through the learning curves of any quirks that might exist.

The latest quirk we ran up against is accessing the getUserProfileByName method of userprofileservice.asmx.  Hey, it worked great on our VM!  So, we go to deploy our InfoPath form on our Dev Farm and we start getting 5566 errors accessing the web service.  We have not a clue why.  The log says that our certificate may be invalid (our Dev, QA, and Prod farms use SSL).  So, we get our infrastructure guy on the phone and he tells us that the farm cannot access the CRL (Certificate Revocation List) to determine if the certificate is valid or not.  He has us open up the server to the internet (Our servers do not have random internet access) and hey! what do you know! Everything works fine and dandy. Yes.. I used the word dandy.

So, we go to deploy our form to our QA farm so users can start testing and what do you know… 5566 errors again.  We were expecting it this time though, so we give our servers internet access and… what?? 5566 errors?  it still doesn’t work?  But it worked before?  Frick!  After reviewing our logs in the 12 hive we discovered we were now getting a 401 error when accessing the web service.  REALLY??  We could browse directly to web service, what’s the deal?

After HOURS of searching online I once again resorted to twitter… are you using it yet?  Anyway, fairly quickly I get a response from Keith Dahlby and the man himself Todd Klindt (I know how you girls ooh and ahh over his Netcasts).  They both asked me if I tried the “disable loopback check” fix.  Huh?  what’s that?  Glad you asked!  Here’s Todd’s blog about it:

Can’t crawl web apps you KNOW you should be able to crawl

After reading Todd’s blog and the KB I was not real excited.  This is not really the problem I’m having, but hey, I’ll try anything at this point.   SO!  I follow the KB instructions, disable the loopback check and guess what happened?

It fixed our problem!  Not only did it fix the new 401 error on  our QA farm, it also fixed the original 5566 error on our dev box meaning we did not have to punch a hole in our firewall to access the CRL.  I was pretty stupefied (not that hard to stupefy me actually).  Like I said, this KB did not specifically address our problem, but it ended up fixing it.  It makes sense when you dig a little deeper.

So, let’s bring the blog back full circle, my conclusion is this:  Don’t give up on InfoPath just because you run into lots of hurdles.  Fight through them, learn from them, and take advantage of what InfoPath has to offer.   In the long run it will save you a ton of development time and you can eventually push off all the InfoPath work to your junior developers and you can concentrate on what you really hate about SharePoint.  :)

Posted on Monday, May 4, 2009 10:52 AM | Back to top


Comments on this post: KB 896861 Saves the Day Again! - InfoPath 5566 Errors

# re: KB 896861 Saves the Day Again! - InfoPath 5566 Errors
Requesting Gravatar...
Hi,

I followed the KB instruction, but still i am getting the same error.

Left by S Jeeva on Aug 11, 2009 7:18 AM

# re: KB 896861 Saves the Day Again! - InfoPath 5566 Errors
Requesting Gravatar...
Hi,

I can browse some of my web sites and web services using machine name; but others only on localhost. That makes me think that this must be a web.config asp.net issue for thoose specific applications.

For the trouble sites I have the same symptom as in the KB:

"You only receive this error message if you try to browse the Web site directly on the server. If you browse the Web site from a client computer, the Web site works as expected."

But; I'm missing the error in the Eventvwr Security log.

I did add the Fix anyway; but the problem is still there.
Left by David J on Nov 11, 2009 4:08 PM

# re: KB 896861 Saves the Day Again! - InfoPath 5566 Errors
Requesting Gravatar...
I think that tutorial is a little misleading (though it's overall excellent) in that it implies it's a direct connection to active directory. It's actually a connection to the user profile service which itself queries the user profiles in MOSS. These in turn, come from AD. My Meyers Briggs INTP side forces me to make that comment .This is a common technique and I've used it successfully several times, so don't give up hope .That infopath error page should have a "more details" link. If you click on that, what is the exact text?
Left by gioco del bingo on Mar 25, 2010 7:15 AM

# re: KB 896861 Saves the Day Again! - InfoPath 5566 Errors
Requesting Gravatar...
I'd really like to use infopath - however i am continually disappointed by comparing the marketing hype of microsoft's products to the reality.

All I am trying to do is publish an infopath 2007 form - which has NO code in it - runs FULL trust - created on the server is is deployed to - uses and XML return to populate a single drop down only and 2 days later still the same error as 2 days ago - 5566.

I have tried maybe 20 different fixes and no quite frankly i dont care.

I have long thought InfoPath was great - now i think it sucks - I am trying to use OOTB functionality and it does not work.

The logs have no useful info. All fixes tried have done nothing.

And this is a simple form in a simple environment created and deployed by me - farm admin - site admin - local admin on a dev standalone install.

It should not be this hard and infopath sucks because it is.

I feel like going and working with unix/oracle - at least that stuff is welll engineered.

Left by steve h on Mar 08, 2011 5:32 AM

Your comment:
 (will show your gravatar)


Copyright © Mark Rackley | Powered by: GeeksWithBlogs.net