Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , , ,

Sponsored Links



Getting Access Denied error while preview infopath form

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 03-12-2009
Member
 
Join Date: Aug 2009
Posts: 34
sad Getting Access Denied error while preview infopath form

Hello Everyone,

This is the first time I am using Infopath and I got stuck with "Access Denied" error. I created a data connection (to receive data from SQL Server) and then I simply took one drop down

and bind the dropdown value from external data source column value. When I click on the preview button, I am getting three button :

1. Work Offline 2. Try to Connect (When I clicked ion this button, I got one popup saying that, Infopath connected to data source but failed to receive data)

3. Show Details -> when I clicked on this button it shows :

The query cannot be run for the following DataObject: OEE_Data
InfoPath cannot run the specified query.
InfoPath cannot connect to the data source.
Access is denied.
Access is denied.


Can anyone please help me as I dont know why I am getting this Access Denied error. Any help would be appreciated......Thanks
Reply With Quote
  #2  
Old 11-12-2009
Member
 
Join Date: Aug 2009
Posts: 34
Re: Getting Access Denied error while preview infopath form

is anyone there to help me on this regard.............
Reply With Quote
  #3  
Old 12-12-2009
opaper's Avatar
Member
 
Join Date: May 2008
Posts: 2,362
Re: Getting Access Denied error while preview infopath form

You may check security level of the form in info path. May be this is the reason for error access is denied in infopath. You can also check from following method : Design a new blank form template in infopath and save the template as a test123.xsn to a network share that you should write access to. Then go to the file menu and click on that form then fill out that form task pane and select test. click save on the file menu as a c:\test123form.xml and close infopath. Then start a notepad and then write a script on that :

objIP = new ActiveXObject("InfoPath.ExternalApplication")
objIP.Open ("C:\\test123form.xml")

and save the file name Test123.js. Then double click on that java script file. May be this will help you.
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
  #4  
Old 18-12-2009
Member
 
Join Date: Aug 2009
Posts: 34
Re: Getting Access Denied error while preview infopath form

Yar, I din't get the sol. Can you please explain in easy way..........
That will be really helpful............
Thanks in advance....
Reply With Quote
  #5  
Old 18-12-2009
MindSpace's Avatar
Member
 
Join Date: Feb 2008
Posts: 1,832
Re: Getting Access Denied error while preview infopath form

Are you able to connect to the server? When you create the data connection, are you using Windows Authentication? Or SQL? If you are using SQL, are you saving the connection string? You are this error possibly because your template.xml file does not match your form schema. Look at your template.xml file and compare it with your schema and checout if you are missing anything in it.
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Getting Access Denied error while preview infopath form"
Thread Thread Starter Forum Replies Last Post
Problems with publishing an InfoPath 2010 form MindFu@er MS Office Support 3 24-01-2011 05:21 AM
Not Importing form templates in InfoPath 07 AlexisSoft Windows Software 5 19-11-2010 11:48 PM
How to import form templates from other programs in InfoPath 2007? Devabrata Windows Software 4 11-08-2010 03:46 PM
Part of the text of an InfoPath form does not Print! desilva Windows Software 5 16-03-2010 02:45 AM
InfoPath Form MSI fails to Install Manoj Office Setup 0 19-12-2008 05:34 PM


All times are GMT +5.5. The time now is 11:57 AM.