About Me

I am a Software Engineer presently working in Microsoft as vendor.The main aim of this blog is to Share my knowledge in Sharepoint,AZURE and Silverlight.

Thursday 19 March 2009

MOSS-InfoPath-Error on 64bit MOSS when accessing SPSite through OM in InfoPath

I had an issue with infopath2007 and sharepoint2007 when i m trying to use object model from infopath in 64 bit machine where sharepoint is installed it gave me the below error. The same code is working fine with console.



The web application at "" could not be found.verify that you have typed the URL correctly.If the URL should be serving existing content,the system administrator may beed to add a new request.


The solution to this problem is :
InfoPath is a 32 bit app and is loading a 64 bit binary (Microsoft.sharepoint.dll)
so what we have is a 32 bit process (InfoPath) running on a 64 bit OS, wow64 will
translate registry calls to the wow64 registry note, and
"HKLM\\wow6432node\SOFTWARE\\Microsoft\\Shared Tools\\Web Server
Extensions\\12.0\\Secure\\ConfigDB" does not exist. Since the 64 bit version of
SharePoint is installed, wow64 does not get involved and the registry key
"HKLM\\SOFTWARE\\Microsoft\\Shared Tools\\Web Server
Extensions\\12.0\\Secure\\ConfigDB" is used to store the farm’s connection string
info.

There is no 64 bit version of InfoPath. For Office2007, we support mixing 32-bit
and 64-bit front end servers in the same farm, with the caveat being that customer
must install 32-bit WSS on a 32-bit OS and 64-bit WSS on a 64-bit OS. We do not
support 32-bit WSS v3 on a 64-bit OS via WOW64. If InfoPath 2007 is calling our OM
and installed on a SharePoint box, then they’ll have to install it on an front end
server where 32-bit WSS is running on a 32-bit OS.
The solution would be to add a 32 bit server with 32 bit MOSS and
InfoPath installed to the farm.

And my sincere thanks to Travis Mathison,Sailaja kalidindi on helping this issue. :)

Friday 6 March 2009

getting current node value in a dynamic section of infopath.

Hi ,

came back to blog some thing.
using this technique we can copy the current values and paste to the new section in a check box event.such as copy the same as above.

last week I had an issue how to get the current node value in a repeating section on firing a dropdown event.

for example if we have a text box value and a drop downs in a repeating section. as in below image.


In this example ResourceName is the dropdown and groupname is the textbox and in the change event of the dropdown we have to get groupname value.if we are doing with only one section then no need of doing all the below explaination we can use direct xpath.

But if we have same Resource names in different groups then we have to get the group name and use that group to locate the resource and fill the dependencies.

so here is the line i used to get the groupName Value

e.Site.SelectSingleNode("../../../@my:DisplayName", this.NamespaceManager).Value

here "e" is the event passed by dropdown and give the xpath value as shown above this gives the country value and we can get easily state value by using e.NewValue