04-25-2013 02:22 AM
Hello,
I am trying to create a web application in ASP.Net to get contact information form my sage act database.
I have created a sample web application for it when I run this application while opening from File System it will works well but when I try to run this application via using Local IIS I have got below errors on LogOn method:-
"Access to the path 'ACT\ACT Data\Preferences' is denied."
I have tried to apply below permission to folder with full access :-
Everyone,Iuser,Network Service,IIS_IUSR,DefaultAppPool,ASP.NET 4.0
But it did not works and gives same error.
I have created web application for ACT Sage Pro using ASP.Net 4.0.
So Pelsae suggest how to resolve this issue have also attached a screen shot for it.?
Please help to resolve this issue I have tried almost all of the solution while google search but did not get any solution yet.
Thanks
04-25-2013 05:54 AM
The screenshot of the error definitely helps.
It looks to me like you are trying to access a remote server from your web application. If that's the case, you're going to have a number of issues if you don't have your accounts and permissions set up properly. If I'm correct that you are trying to access a remote server, you'll need to use an account that has permissions on both machines (such as a domain account). That domain account will have to be set as the account to run this particular web application, as well as having access to the proper locations on the remote machine.
Could you please provide a bit more information about your server setups (where is ACT! located, is it on a different machine than your web server, etc.)? Right now, it's a bit difficult to get a good grasp on your situation. Thanks.
04-25-2013 09:28 PM
04-26-2013 05:44 AM
It's all making a bit more sense now. I'm not familiar with the particular overloaded Logon method you are using, so I'm not sure how it's getting that "Act\Act Data\Preference" path. Have you tried any of the other logon options, such as one that needs the .PAD file path? The .PAD file is largely the connection settings for an ACT database (someone can correct me if I'm wrong). If you have one of those, it may be easier to deal with the permissions since that is a set file, in a set location.
One other question; Is your computer user account an administrator or are you running Visual Studio as administrator? It could be that the ASP.NET account is trying to access that ACT directly listed (which I'm guessing is in the Program Files folder), and it won't be able to due not having Admin privileges (usually through UAC). It works when running through Visual Studio because those privileges do exist on your user account.
04-26-2013 07:29 AM
04-26-2013 08:00 AM
04-26-2013 10:12 AM
04-26-2013 11:25 AM
04-28-2013 09:39 PM
08-27-2013 07:20 AM
Hi
Did you ever get this resolved..?