.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

infopath form webpart/ anonymous access

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :C#


I need the  anonymous users  to submit InfoPath List Forms via an InfoPath Form Web Part.

Currently when I go to a page with the InfoPath Form web part configured as an anonymous users I get the following error message:

Error loading the form

A form template (.xsn) file cannot be accessed. You may not have the required permissions to open the file

The list allows anonymous users permissions to add and view items

When logged in the form works fine.

I have setup the list settings for anonymous users to add items. but still the page with infopath form webpart is not opening.

View Complete Post

More Related Resource Links

Anonymous users submitting Infopath forms via InfoPath Form Web Part

Is there a way for anonymous users in a public facing site to submit InfoPath List Forms via an InfoPath Form Web Part? Currently when I go to a page with the InfoPath Form web part configured as an anonymous users I get the following error message: Error loading the form A form template (.xsn) file cannot be accessed. You may not have the required permissions to open the file The list allows anonymous users permissions to add and view items When logged in the form works fine

Using UserName to enable disable access to InfoPath form fields

Hi Everyone, I have created a browser enable form in InfoPath and restrict certain fields depending on the official logged on User Name. Now this works most of the time but my problem has to do with the "case" of User Names for some of the site users. In most cases the User Name is an exact match but for some reason, some user's names are reported by SharePoint (the Welcome at top of screen) with some parts captilized. Example - my hidden filed on the form reports my user name as xrs_master but the Welcome up top says XRS_Master - and the fields act as though I am not the correct user and won't enable. On the other hand there are users who's user name matches the case exactly and all works fine. Why is SharePoint reporting the user name differently? And if this is the reason they don't match, how do I fix it? Any Ideas? Many thanks in advance for help!

File upload in infopath form put in xmlformview webpart MOSS2007


Hi all,

Is there any workaround involed in the infopath form when it has file upload control in it.

This is called in the  xmlformview webpart of an aspx page. While submitting the form the file upload diesn't happen.

And I'm using Infopath 2007 and MOSS 2007.

Any solution for this ?

Thanks in advance


sharepoint development

Sharepoint Access DB Infopath form


Is it possible to store the access database inside sharepoint with infopath as front end form.

My findings is; we have access database inside sharepoint but unable to desing infopath form for this.

Infopath form with Totals connected to a graph webpart?


I have a form with two fields labeled "Total" which are filled with the sum of other fields. I would like to represent the totals in the graph webpart in a way the lower the number the better. I would like the bar to kind of transition from Red to Green as the number goes down. I connected the webpart to the field in my form but I am not sure what other parameters I need to represent what I want in the chart. Can anyone assist with this?

What I am trying to do is make a dashboard for people when they login the main page will have this webpart avaible to the group they belong to. As I get this working I would like to introduce other data to be presented to the employee.


Infopath 2010 and SP2010

Users who do not have permissions to access InfoPath 2007 web based form can view the form if someon


I have a SharePoint Form Library with an InfoPath form published to the form as the default template. The form library has several forms in it that have line item permissions. This is supposed to restrict who can view the form. If the user who has had their permissions removed navigates to the form through SharePoint the form does not display (this is expected behavior). However if the user is provided a link to the URL for the form then the can view the InfoPath form.

Here is an example of the link: http://moss.companyname.com/test/_layouts/FormServer.aspx?XmlLocation=/test/InfoPath%20Test/system2009-10-23T12_23_13.xml&Source=http%3A%2F%2Fmoss%2Ecompanyname%2Ecom%2Ftest%2FInfoPath%2520Test%2FForms%2FAllItems%2Easpx&DefaultItemOpen=1

In addition I tried to put the forms into a folder and restirct the permissions on the folder, but the restricted users can still view the form.

When I removed the users permission to the form library then they got an error message.

I also tested this with a SharePoint list item and restricted permissions and this did not allow the user to view the item.


Infopath form in SharePoint export to SQL or Access


I have an infopath form on a sharepoint site.  Whenever users hit submit button data goes and sits in a table in sharepoint.  Instead I need to export all that information to a SQL table.

Anyone knows what is the procedure to do that?


Browser based InfoPath Form - fully trusted gives Access denied Error for few users


We have a code-based (code behind) browser based Infopath form which is fully trusted, but it gives out an Access denied error for some users.


The InfoPath form is not digitally signed. Let us know if this has to be done and what is the process for the same for DEV, STAGING and PRODUCTION.




Error submitting form with anonymous access because of workflow


Hi All,

I’m running MOSS 2007, not using InfoPath.

I have a list set up to accept registrants for upcoming events. A customized form was attached to the list to collect sign-up information. The registrants may be authenticated users or people outside of the organization, so I enabled anonymous access for the list, with permissions to Add Items. Once the form is submitted, users are directed to a Thank You page. Two workflows were also added: the first to send an e-mail saying "thank you for registration"; the second, an Approval workflow to approve or reject registrants and send a follow-up e-mail regarding their status.

When the input form is submitted, the process works fine for authenticated users. The data for anonymous users populates the list as expected, but an Error page is generated: "The data source control failed to execute the insert command."  Through research, I've since learned that workflows cannot be initiated by anonymous users. I changed both workflows to start manually, and when that didn't work, I turned them both off completely, but the problem persists.

I've read about impersonation, RunWithElevatedPrivileges, event handlers and automatically signing in anonymous users as a Guest. But I don't have access to the servers and I'm not a programmer, so I need an easier solut

InfoPath 2007: Designing Form Templates With The New Features Of InfoPath


InfoPath 2007 is an XML forms designer and editor, and a fully featured and integrated member of the Office family. This article takes a sneak peek at some of its new features.

Scott Roberts and Hagen Green

MSDN Magazine August 2006

Using Infopath form fieldnames in a workflow fails



I designed a form in Infopath and I published it on a SP2007 server to use in a workflow in a library. That goes fine. In the workflow I send an email message. I can use the fields from my Infopath form in the message that I create. 
If the workfow is starts, Shrepoints sends me the message. But it does not use the fields from my InfoPtah form in the message in stead I see questionmarks.

Why doesn't it show the fields?

I alse saw (maybe this makes it clear) that when I let it dipslay the URL in the message, it show: http://1.portal.lucasonderwijs, but the actual site is whithout the "1" and it should also start with https://

Has anyone seen this before?

Thank you,


InfoPath Workflow Task Form "Loading" event handler only being called after App Pool recycled.


I have a Workflow that is using an InfoPath task form.  In the "FormEvents_Loading" method event handler I have some code that needs to run each time the form is opened.   I recycle the App Pool and open the form the code runs perfectly, but if I close and try to re-open the form the code is not run at all.  I can then recycle the App Pool again and on the next load the code executes just fine.   The code that is supposed to be run is a very simple statement to set a field value, so I don't think it is interfering.

Does anyone know what this might be?


Problems moving an InfoPath form from a DEV system to QA environment


We developed an InfoPath form using a local DEV environment.  The site collection under which the form was developed was http://server1/.

We are now attempting to deploy this form to a TEST environment that uses a slightly different structure for the collection, namely http://server2/sites/sitecol1.

In both cases the site that contains the form is /fin (so we were using http://server1/fin in DEV and want to use http://server2/sites/sitecol1/fin in TEST). 

The form contains VBA code and so requires admin-based deployment via Central Administration, so to deploy to TEST we:

1. Publish the form against the TEST server using InfoPath Designer

2. Upload the form using Central Administration > Application Managment > Manage Form Templates

3. After upload, we activate the form for the site collection http://server2/sites/sitecol1/

4. The form is then associated with a Form Library

When we try to create an instance of the form within this library we get the following error when we click on New to create the form instance:

The following location is not accessible, because it is in a differ

Infopath cannot load this form. Either the signature is corrupted, or the certificatie used to sign



I have a whole bunch of forms contains errors like whenever you try to open it up.

Infopath cannot load this form.  Either the signature is corrupted, or the certificatie used to sign this form is expired or revoked.

The forms were orginally created with digital signature with it.  But we were in the middle of transition from one company to another company.  The digital signature was no longer valid.  Actually, the certificate should have been expired by now.  I removed all the signatures for all of the forms.  So they can continue using the forms to fill in the information.  The problem right now, is trying to open the old forms with digital signature on it.   Not only the company has changed.  We also moved sharepoint from the old server to the new server.

Any idea to resolve th

Insert image into Infopath form and save to SharePoint as PDF file


I have an InfoPath web-enabled form in MOSS 2007, that is integrated with a K2 blackpoint process for an approval workflow.

Once the form (a Purchase Order request form) has been approved in the K2 workflow process, I switch the form view to a "print-friendly" view for the requestor to view from the browser.  However, now I need to go one step further with this scenario:

1) I need to somehow insert/embed an image with the scanned-in signature of the approver (likely stored in a SP doc library) at the signature line section of my form.  Also, what are the security requirements for storing such images, but not granting all users access to these (e.g. only services accounts that need to access this for embedding into the form, etc.)?

2) Then I need to convert this final "print-friendly" view of the form (with the signature image) to a PDF document so that I can store it in SharePoint (and email it to the requestor using K2's email event capabilities).

Can anyone help me with a solution to both of these requirement, or point me to some resources for this (even 3rd party components are open-game).



InfoPath form checked out so 'on create' workflow not being started


Hi all,


I have found a couple of threads asking for advice on how to check in an InfoPath form when it’s saved or submitted to a forms library. The reason for doing this is so a workflow can start based on a new item being created in that library, and so it doesn’t just sit there with a “Starting” status.


The answers I have found contradict each other:

·         You have to do it with a workflow.  This can be done easily with SharePoint Designer if that's an option for you. Source:

Error when opening Infopath Form


Background: Created an Infopath 2003 form with 2 views (1 as Read-Only View and another 1 for Submitting content) and published to a Sharepoint 2007 Library.

Working: When a user opens a new form it opens in submit view; once the form has been submitted, when the user tries to open again, the form opens in read-only view.

Error: 99% of the users do not face any issues, however when the the rest 1% of the users try to open a new form; they receive the following error and are unable to open the form.

Form template: _http://server/sites/subsite/library/forms/template.xsn
InfoPath cannot open the following view: Edit_View
The following view file is not valid: view1.xsl
The file is not a valid XML document.

An invalid character was found in text content.

Line 673, Position 12

I am not sure what is wrong here (or) from where this error is being generated!

Balaji Baskar [Please mark the post as answer if it answers your question]
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend