Posted on March 24, 2008 by svarukala
While building a project or solution, if you get the error like: “sgen.exe” exited with code 1, then the most probable reason is because you have a different version of the same project’s DLL in the GAC.
Solution:
Open the GAC (C:\Windows\Assembly), find the DLL corresponding to your project.
Right click on it and select uninstall
Now re-build your [...]
Filed under: SharePoint Errors and Solutions | Tagged: VS .Net | 7 Comments »
Posted on March 23, 2008 by svarukala
As per Microsoft InfoPath blog this error occurs when we are trying to set a nodes element value and the node has an xsi:null attribute. So, before setting any value check if the node has the xsi:nil attribute and if so delete that attribute. Belowcode snippe is from the same blog which can be used [...]
Filed under: InfoPath Forms | Tagged: InfoPath Forms | 8 Comments »
Posted on March 20, 2008 by svarukala
To access the contact selector we need to use the Contact class for which we need to add this line into our code file:
using Microsoft.Office.Workflow.Utility;
The next question is where does this library sit and how to add reference to it. Well, just as any developer does I too opened up the Add Reference window but [...]
Filed under: Uncategorized | Tagged: InfoPath Forms | 1 Comment »
Posted on March 18, 2008 by svarukala
This post talks about using stsadm and batch scripts to deploy InfoPath form with code behind which usually is called as InfoPath forms with managed code or the InfoPath forms managed templates.
The problem: If it’s just a couple of InfoPath forms with simple code behind we can deploy the form using the InfoPath Forms Client [...]
Filed under: InfoPath Forms, Sharepoint | Tagged: InfoPath Forms, Sharepoint | 8 Comments »
Posted on March 18, 2008 by svarukala
If you get the error some thing like (while writing to the event log):
Cannot open log for source {0}. You may not have write access
As quick solution is to increase or raise the user permissions temporarily to write the event log and then revert back the elevated permissions.
Below is the code:
System.Security.Principal.WindowsImpersonationContext wic = System.Security.Principal.WindowsIdentity.Impersonate(IntPtr.Zero);
–your [...]
Filed under: InfoPath Forms | Tagged: Permissions | 2 Comments »
Posted on March 6, 2008 by svarukala
I have an infopath forms library list in my SharePoint site. (Forms library is basically a document library whose content type is of InfoPath forms type or xml document type) This list holds the request forms which end users submit using the browser based infopath form.
I have my custom workflow developed in VS 2005 attached [...]
Filed under: InfoPath Forms, Workflows | Tagged: InfoPath Forms, Workflows | 5 Comments »
Posted on March 6, 2008 by svarukala
InfoPath cannot run the specified query.
InfoPath cannot connect to the data source.
Access is denied.
One of the big issues with InfoPath Forms is its error reporting. It could sometimes piss you off. It says there is a problem that is it! We have to spend lot of time clicking and clicking and clicking buttons all over [...]
Filed under: InfoPath Forms | Tagged: InfoPath Forms, MOSS, Sharepoint | 6 Comments »
Posted on March 2, 2008 by svarukala
Today I had this weird problem: I downloaded a custom workflow sample which has an InfoPath form. The infopath form has a data source which retrieves using a web service. Since the form was already designed the web service URL used to set up the ‘Retrieve data source’ was some what like : http://localhost/_vti_bin/ExternalSystemService.asmx?WSDL
Even [...]
Filed under: InfoPath Forms, SharePoint Errors and Solutions, Sharepoint | Tagged: InfoPath Forms | 3 Comments »