Office - Access is denied, but Windows User has rights to DB

Asked By chris.boothroy
09-Aug-07 08:14 PM
Hi,

I have built and InfoPath 2007 form and supporting (.NET 2.0) web service,
which both work fine on my development machine.  However, I am integration
testing the solution on a Windows 2003 Virtual PC Image.

When I host the form on the VPC image, I cannot get InfoPath to connect to
*anything* (not even directly to a SQL Server table).  I keep getting "The
query cannot be run for the following DataObject: Main connection. InfoPath
cannot run the specified query. InfoPath cannot connect to the data source.
Access is denied. Access is denied."

I am running as the Admininstrator of the machine, I have DBO rights to the
database, and I can connect to the database using my web service and/or
Excel.  In fact, InfoPath is able to connect to the database for the purpose
of generating the form schema (and the TEST SQL button works), but it just
can't get any data.

This is holding up my entire project (due to be installed at 8.00am THIS
Sunday!).

Hope someone is out there.

Best Regards,

Chris
--
Chris Boothroyd
President
Avatar CTS LLC
SQL Server
(1)
Virtual PC
(1)
InfoPath 2007
(1)
Windows 7
(1)
Excel
(1)
Database
(1)
DataObject
(1)
HelloWhat
(1)
  KalyanGReddyMVPGGKTec replied...
10-Aug-07 06:12 AM
Hello

What is the security level you are using for your Form?

--
Kalyan G Reddy - INFOPATH MVP 2007
http://www.ggktech.com
  chris.boothroy replied...
10-Aug-07 01:16 PM
It was set to automatically detect the security level, but I played around
with that late last night and managed to get the form to work  by changing it
to Full Trust.

Thanks very much for your help.

Chris
--
Chris Boothroyd
President
Avatar CTS LLC
  todd golterman replied...
03-Mar-09 05:26 PM
I am having a similar issue as one you posted several months back (I hope your project worked out).  I set up an access database on a laptop at home and am trying to get infopath to access it.  I can see the fields, but am getting "Access is Denied".



Did you learn how to fix this?
  greg appelt replied to todd golterman
04-Nov-09 10:57 PM
I also had this problem on my new Win7 Pro box with SQL 2008 and InfoPath 2007.  While in design mode of the form, go into the menu selection Tools/Form Options, selecting the Security and Trust category, deselecting the Automatically determine security level, change the radial button to Full Trust and click OK.



The form now can make an ADO connection to the database defined in the data sources.  No more Access Denied when attempting to Open, Submit, or Query data!!
Create New Account
help
Can not install 'Office Communications Server 2007 R2' onto Windows 2008 Enterprice Server 32 bit Office Hi All, I hope you can help. I'm trying to evaluate 'Office Communications Server 2007' within a Virtual PC Windows 2008 Server Enterprise domain. Server 1 (DC) Windows 2008 Enterprise Server 32 Bit Active Directory, DNS, DHCP SharePoint Server 2007 Server 2 Windows 2008 Enterprise Server 32 Bit SQL Server 2008 Exchange 2007 Enterprise
Office 2007 does not install on Server 2008 Virtual Machine Office Office 2007 does not install on Server 2008 Virtual Machine. No problem when installing it on Server 2003 Virtual Machine. Any help will be appreciated! Office Setup Discussions SQL Server (1) Office 2007 (1) Vista (1) ASP.NET (1) X32 (1) Windows (1) Sweden (1
data source – Access Denied’. Now let me state that my InfoPath form and my Sql-Server database is in the same server –so no issue of network problem or connectivity. When I go for the â naturally. My Web-service is a file-system based web-service existing on the same server. The web-service in itself just works fine. Now can anyone help me with this data source through Data Connections or Web Service connection ? Any suggestions are welcome. InfoPath Discussions SQL Server (1) Visual Studio (1) SharePoint (1) InfoPath (1) MOSS 2007 (1) ASP.NET (1) IIS sure you use the Publish Form Template option to publish the form template to the server rather than just saving the .XSN file. This embeds the correct processing instruction in the the correct URL domain. - When using the InfoPath rich client, a secondary data connection to SQL Server is authenticated via NTLM using the user's Windows credentials. Make sure the user
Row Versioning: TimeStamp SQL Server Data Type Office We are currently trying to develop an InfoPath 2007 form based on a SQL server link. Unfortunately, our ERP app requires a timestamp for versioning purposes. When I try to from the tables. Do you want InfoPath to add the row version columns to your SQL Statement?" I click "No" so that upon submission of records info path doesn't try this on two other machines. Is there any other way to tell Infopath to "Ingore" sql server data types that are autogenerated? InfoPath Discussions SQL Server (1) InfoPath 2007 (1) Ingore (1) Querry (1) Kalyan (1) Sdebriere (1) Querries (1
Dedicated Server and small home office synchronisation Office Hi You may think this is the wrong place but I am not sure if I can do it with sharepoint or even sql server but the system I have at the moment is not really working well. We have a dedicated virtual server running our email and ftp service which at the moment is a basic NAT for all users (5 users all over the UK). The email / ftp server are working great however we share 'projects' with each other and at times work on both sides upto date in order that if I save a new invoice the dedicated server NAT is updated and then as others 'ping' in they are automatically synchronised. At the being deleted. Can this be done by something by MS such as sharepoint and / or sql? I dont want to use a live service as it will be too slow and