Error: “sgen.exe” exited with code 1

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 [...]

InfoPath Forms Code Error: Schema validation found non-data type errors

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 [...]

How To: Access Contact Selector control data in infopath forms code behind and Microsoft.Office.Workflow.Utility not found problem

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 [...]

Using stsadm to deploy, upgrade, update InfoPath Forms Templates with Managed code behind

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 [...]

Cannot open log for source . You may not have write access

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 [...]

How to show the forms library item data to which workflow is attached in the infopath based task form

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 [...]

InfoPath cannot connect to a data source when viewed in browser – Cross Domain Issues – Universal Data Connection

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 [...]

InfoPath Forms 2007: Web Service – Change URL – Fix URL – URL Problem

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 [...]

Follow

Get every new post delivered to your Inbox.