by michaellotter
19. December 2008 14:39
This week has been one crazy week for me because Christmas is next week and I’m technically on vacation now for the next 3 weeks. Just like almost everyone else I've been scrambling to get as much work finished before leaving and I had several projects at once pushing for everything to be released by today (Friday). This unfortunately caused for some oversight on my part and caused a lot of little interesting problems to pop-up. One problem that I had was with InfoPath and Data Connections. During the course of my current project the SharePoint Site Collection where the forms were being deployed and Data Connection files being published changed because of Information Architecture had been modified to include "Forms Centeral" and yesterday I ran into this nice error.
“Relative links to Data Connection Libraries located in different SharePoint site collections are not supported”
It didn’t take me long to figure out what the problem was but it was the first time I ran into it and I wanted to mention it. The error message was dead on and I was getting this because I was referencing 2 site collection data connection libraries. I had 2 data connections pointing to the old site collection and one to the new one. After changing the reference everything started working again with no errors. Since I’m publishing all my InfoPath forms into a single Site Collection I decided to keep all my Data Connection files local to that site collection and not publish them to IPFS data connection library in central admin and when I switched site collections I didn’t update the forms data connection references.. You might be saying that this should have broken right away and in normal circumstances it probably would have but I had the “Allow cross-domain data access for user form templates that use connection settings in a data connection file” option selected on IPFS "Configure InfoPath Forms Services" page and this allows for cross site collection Data Connection and Form Library usage.. It’s turned off now that way I don’t have any more problems like this in the future.
If you’re interested in learning more about submitting InfoPath forms across site collections or even web applications you should come out to the spring SharePoint Connections in Orlando because I’ll be doing a session on this very subject. This is will be my first time speaking at SharePoint connections and I really excited about it.
Well it's that time of the year again and I hope that everybody is all ready for the holidays and if not you still have a couple days left. I’m heading back home from New York to get ready myself and then we are spending Christmas with my folks. I’m looking forward to it because I’ll be getting a really good home cooked meal and see everybody in the family. My brother Mark, who just got back from Iraq on Thanksgiving Day, will be there to. It’ll be the first time I’ve seen him since he shipped out in early spring. This Christmas is shaping up to be a good one for me and I hope everyone else a great one to.
Cheers
by michaellotter
18. December 2008 11:14
If anybody does any type of InfoPath 2007 browser based form development knows all about the dreaded IPFS error box. In my opinion it's dreaded because the lack of error details it gives or when it does give details how cryptic it is. If you don't do this type of development and think I'm kidding checkout the warning box that I got today.

Honestly how is anybody supposed to troubleshot this error. It doesn't say what rules weren't applied or anything that can help you troubleshoot the error or in my case a warning. When I got this today I went and looked at all the rules to make sure nothing was broken or not set correctly in the form and I couldn't find anything for the life of me and when I ran it through the client no warning or error was received. At this point some people might be at the point throwing up their arms and saying uncle but just keep reading because not everything is lost. Since your form is "Powered by: InfoPath Forms Services" there is one other place you can look and it usually gives really good details. Can you guess where this is at? Come on think really really hard, think SharePoint, yep you got it, SharePoint log files located in the Logs folder ("c:\program files\common files\microsoft shared\web server extensions\12\logs"). If you open your latest large log file in your favorite editor (mine Excel 2007) and search or filter for "Forms Server" you should find your details.

In my case a Data Connection was giving me problems and until I looked in the SharePoint log file there was no way I was going to find the error. It's crazy that you have to go this deep to find the actual error message but to be honest I'm glad its being written somewhere and its accesible.
Cheers
by michaellotter
3. July 2008 02:06
by michaellotter
29. June 2008 15:50
The SUGDC Regional SharePoint Conference was this weekend (Friday and Saturday) and to my understanding from talking to people that attended both days it was a great SharePoint conference. I didn’t get to attend both days but just Saturday when I was speaking but I had a great time on Saturday hanging out with Paul Galvin, Becky Isserman and Bob Fox during the afternoon. This conference was a little different for me because it was the first event I ever spoke at that people actually paid money to attend. I’m really curious what people thought and I’m hoping that I’ll get some evaluations from the people that attended my session. I really want feedback from people good or bad so I can approve on things. When attending some of the sessions with Paul and Becky one thing that I noticed was that I really need to spend a lot more time on getting my slides to look a lot nicer and probably slow down a little when I speaking. One of the things that I keep catching myself doing is speeding through my sessions trying to get as much content in a session as possible instead of maybe spending little extra explaining things. One of the things that I really enjoyed besides speaking on InfoPath was having the extra time talking with Paul and Becky and a few other people at the conference. It is really nice to sit down and speak with people that do the same thing you do and listen to what they are saying and pickup new ideals and making new contacts. It's too bad that I didn't have the chance to come on Friday so I could see Paul's session because I really think he has done a lot of cool things and I think it would have been a great session.
When preparing my presentation I did a lot of research qualifying everything I would be presenting and I was really impressed with all the detail information on the MSDN site. I found so much information in the MOSS and WSS SDKs that I was really impressed. I remember doing SharePoint 2003 it took forever for any good stuff to appear but that’s not the case for MOSS and WSS v3. Anybody trying to learn SharePoint shouldn’t have any problem doing so anymore.
During the Roundtable session that Becky and I were doing on Ajax and InfoPath Paul asked some really good questions and I will be blogging about them over the coming days because I've had a little time to think about them and do some research. I truly still can't believe how big InfoPath 2007 and InfoPath Form Services really is.
The conference was a blast and I would like to thank Bob Fox, Gary Blatt and Gary Vaughn for giving me a chance to talk at the conference and I hope they let me come back in the fall.
Cheers,
Michael
by michaellotter
25. June 2008 21:03
by michaellotter
16. April 2008 00:34
Last weekend Nas and I were speaking at the Pittsburgh Code Camp and we had a great time and we meet a lot of great people. While in the speaker room we met Amanda Launcher and she introduced us to http://twitter.com/. If you don’t know anything about it I would suggest going out and taking a look because to my understanding it’s the next new fad. I would think that “twitter” is something that could complement a blog or if you don’t have much to say at one moment. To my understanding you are only allowed 140 characters per post and you can do it from either you’re phone or IM.
Nas and I didn’t have a chance to sit in on any other sessions because we were doing some deep dive discovery on FBA and MOSS (MySite) configuration and trying to really understand how and why it’s configured the suggested way. I must say its pretty complex at first but it gets a lot simpler once all the SQL permissions are set correctly on the FBA database. Once we got done with this I spent more time on InfoPath Forms Services/FBA and got everything working correctly for my demo but when I tried to do the demo I couldn’t get logged into the SharePoint site because of some “unknown exception”. When adding FBA to SharePoint it has been really unpredictable and frustrating for me. I’m hoping that I can get all the bugs worked out by the Richmond Code Camp on April 26th.
Cheers,
Michael
by michaellotter
13. March 2008 14:24
Last week B&R Business Solutions won a contract for a SharePoint and FBA installation and that got me on the kick of FBA again. Last weekend I built some code to retrieve the username for a FBA user and during that process I ended up wanting to debug my browser based InfoPath 2007 form. This was going to be the first time for me to try this because in the past I've always made my forms code free because I never wanted any of my clients to maintain code for InfoPath 2007 form if it could all be built in Visual Studio Web Service or Class project. My thought was it should be extremely easy to do because I had a Visual Studio 2008 VSTO InfoPath 2007 project and the form was web based. I was hoping debugging was going to be as easy as SharePoint debugging is and believe it or not it was. To debug my web based form all I had to do was attach the w3wp.exe process where my InfoPath 2007 web based form was running under to my Visual Studio 2008 VSTO InfoPath 2007 project and set my break point in the code. I was really surprised it was this easy to do because I was guessing that there had to be something funky to make it work but I was totally wrong.
Since I'm doing this extra SharePoint/FBA project with Nas, I only suspect that I will do more things with InfoPath and FBA. Most likely I will end up building a new .NET Class for retrieving FBA user information based off user id for pre-populating web based InfoPath 2007 forms.
Well it's time for me to get some sleep because I've a lot of things to do tomorrow. I hope everybody has a great weekend.
Cheers,
Michael
by michaellotter
30. October 2007 09:14
This for all you know administrators that have SharePoint 2007 installations and use InfoPath Forms Services. Josh and I working in our development environment on Monday and we had issues uploading, upgrading or deleting forms from InfoPath Forms Services. We could see the jobs in “Solutions Management” but not in the Timer Jobs but we also could manually get the jobs to execute when we ran “stsadm.exe –o execadmsvcjobs” command. We started to Google and everything else that we could possible think of but we didn’t have any luck until this morning. Josh wrote Jason Medero (brother) a long email about our problem and he said to make sure we had the DST patch installed. When we checked are environment this morning and we didn’t have that installed. So with little searching we found these 2 links that guided us how to install the patches and now everything works great. We didn't have this issue in production because we installed the patches already but forgot to do it in development.
http://blogs.msdn.com/joelo/archive/2007/10/16/sharepoint-faq-on-dst-and-october-9th-public-update.aspx
http://msmvps.com/blogs/shane/archive/2007/10/18/please-install-the-sharepoint-updates-on-your-server.aspx
by michaellotter
18. October 2007 14:02
This week has been a pretty interesting week for me so far because I'm training a new guy on InfoPath 2007 and InfoPath Forms Services and we are getting new errors and I wanted to share one of them. "There has been an error while loading the form" was an error that we got today when launching one of his forms.
After doing a little investigation we discovered it was a old form that he deployed and activated to a Site Collection through InfoPath Forms Services but then decided to remove it from InfoPath Forms Services before deactivating it from the Site Collection. I was pretty amazed that he was able to successfully remove the form before deactivating all instances. When I looked for the deployment files in the Features folder they weren't there so it appears it was removed successfully. To resolve the problem we delete the form entry from the Form Template library on the main site and deleted it from the Site Content Type gallery.
Cheers
by michaellotter
10. October 2007 09:47
Just last week an old existing SharePoint 2007 environment was re-introduced into the InfoPath development process for my current client and this morning when trying to preview a form either through InfoPath 2007 designer or InfoPath Form Services and using the InfoPath function "UserName()" the below error was given (error when viewing through InfoPath 2007).
The full error message is
InfoPath
Your user name cannot be verified because the form's security settings do not permit it.
Error occurred during a call to property or method 'get-UserName'.
The problem started to happen when the "Domain" textbox on the "Preview" screen and "Enter the URL of a server that is running InfoPath Forms Services and can be used to verify compatibility" textbox on the "Compatibility" screen from the "Form Options" menu was set to point to the development SharePoint server. Below are visuals of the options that I'm talking about.
The error sort of took me back at first because there weren't any problems with any of the previous forms. Since this was a new form I was thinking that there was a setting that was not correct but that wasn't the case. While troubleshooting the issue I changed the form security to "Full Trust" from "Domain" and everything was working but I knew that wasn't the solution but it got me thinking in a different direction. It got me thinking that it wasn't an InfoPath problem after all. To further that theory I changed "Preview" and "Compatibility" values to point to production and when I previewed the form everything worked with no errors. This confirmed my theory in my mind that it wasn't an InfoPath problem and I started to think what else is tied into InfoPath.
So naturally I thought it could be an IE issue because we all know that IE is an integral part of InfoPath. The first thing that I did was open each SharePoint site that I was using in IE and looked at the security zone for each site. To my surprise there was a difference between them. The production site had "Local Intranet" and the development site had "Internet". You can easily tell this by looking at the bottom right corner of the IE 7 browser. After noticing this I added the development site to the "Local Intranet" zone and then tested my InfoPath form out again and there were no errors this time.
This error was a first for me since I started blogging everything on my experiences with InfoPath, InfoPath Forms Services and SharePoint for my current project. I started to really think if I ran into this problem before and I'm thinking that it might have happened with InfoPath 2003 when building custom forms for a client or on an ASP.NET project but not a 100 percent sure. I'm just really glad it wasn't a hard error to figure out.
Cheers