User does not have permission to perform this action

Dear sirs,
i made a project (VB2010 express) connecting to SQL Server 2008 express on my PC running Windows 7 (W7): it works as expected.
Now,
i need  the same project run on a different PC (running Windows XP,  say WXP, with VB2010 express installed) of my private LAN, but still connecting to SQL server running on Windows7-PC. So i exported the project file to WXP PC.
After enabling TCP for SQL, opening ports and bla bla bla, i can "see" SQLEXPRESS instance (running on W7) from SqlServerManagementStudio running on WXP and i can modify, select, create tables and so on.
Then i changed connection string parameters in app.config to point to the dB:
<connectionStrings>
<add name="IlMioCapolavoro22.My.MySettings.MyCompanyConnectionString"
connectionString="Data Source=INGSERGIO\SQLEXPRESS;AttachDbFilename=z:\mycompany.mdf;Integrated Security=true;Connect Timeout=30;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
In detail, i changed .\SQLEXPRESS to INGSERGIO\SQLEXPRESS and AttachDbFilename =c:\temp\mycompany.mdf to  AttachDbFilename = Z:\mycompany.mdf (c:\temp of W7-PC is mounted as z:\ on WXP PC).
IF i do F5, i get the sql exception above.
Based on what i read in other forums,
it seems that the user connecting to SQL server (when the program starts) has not enough permission to access the database: frankly speaking, i don't know which user should i add permission for (my knowledge of SQL is poor).
The SQL Server Log file doesn't show anything (or what i am able to see).
.mdf file is in a directory where anyone has all privileges in reading-writing etc.
Can anyone help me?
Thanks
Sergio

Dear Sofiya,
thanks for reply.
TCP/IP, SQLServer.exe and SQLBrowser were already configured (Windows firewall was configured by adding "listening ports"
and not by changing scope to applications... i don't think this is a problem): in fact i can connect db remotely from SSMS (all privileges).
When you say:
"make sure the
user running your DB application in other computer has permissions to access the database"
you mean "windows user" ? if so, same windows user & password are accessing the 2 PCs, they both have admin-privileges on both PCs (maybe different operating system is a concern?). I didn't
create sql-user so far because my understanding is that in windows authentication mode it shouldn't be necessary or am i wrong? 
"..., we can attach the “.mdf” file the SQL Server Express and then use the same method (Connect to database with
VB) to connect the database." ---> VB doesn't let me do this, because if i try to test the connection
with the db file from VB, it errors saying: "the file is in a network path not supported for database files. A database with the
same name exists, or specified file cannot be opened, or it is located on UNC share." Somewhere i had read
that the VB EXPRESS doesn't support database remote connection, so it is necessary to do it by changing manually string connection.
Any ideas?
thank you.
Sergio

Similar Messages

  • CREATE USER, User does not have permission to perform this action.

    -- first, connect to the master database
    CREATE LOGIN login1 WITH password='Qwerty12345';
    CREATE USER login1User FROM LOGIN login1;
    EXEC sp_addrolemember 'dbmanager', 'login1User';
    EXEC sp_addrolemember 'loginmanager', 'login1User';After, I connect to database 'master' with 'login1User' and execute:CREATE LOGIN login2 WITH password='Qwerty12345'; - okCREATE USER login2User FROM LOGIN login2; - User does not have permission to perform this action.

    Hi Vit007,
    Please check the two database role: 'dbmanager' and 'loginmanager'.
    CREATE USER Requires ALTER ANY USER permission on the database.
    Iric Wen
    TechNet Community Support
    select rm.*, dp2.name AS 'User', dp1.name AS 'Role' from sys.database_role_members rm LEFT JOIN sys.database_principals dp1 ON rm.role_principal_id = dp1.principal_id LEFT JOIN sys.database_principals dp2 ON rm.member_principal_id = dp2.principal_id
    role_principal_id
    member_principal_id
    User   Role
    6  8 
    login1 dbmanager
    7 8 
    login1 loginmanager

  • PSCONFIG - error - USer does not have permission to perform this action

    After installation fo July 14 CU in the sharepoint 2013 server, getting the below error when i ran the PSCONFIG command.
    "An exception of type System.Data.SQLClient.SqlException was thrown. Additional Exception information: USer does not have permission to perform this action"
    My service accounts have db_Owner, db_SecurityAdmin, public, and SPDataAccess to the CONFIG DB.
    Added the services to the local admin group also.
    I am not sure why i am getting this error.
    Any help is much appreciated.
    Thank u

    Hi,
    Did you run SharePoint configuration wizard after applying
    July 14 CU?
    you need to run the wizard after installing the CU.
    Please remember to click Mark as Answer on the answer if it helps you

  • The loged on user does not have permission to use this object'

    A professional license user currently has Authorisation to all Customer BPs and Sales Documents.
    When creating a random Sales Order, the error message
    'Create POs(): The loged on user does not have permission to use this object'
    is occuring.  This is not occuring for all Sales Orders, this is occuring randomly.
    Note that the Purchase Orders Button in the Logsitics tab in the sales order is NOT selected.
    Cheers Lisa

    hi lisa
    there could be some changes in transaction notification from your side if there are any i would request you to please comment all the changes and then try saving the document it would definately go ahead as there has to be some change in the stored procedure ,
    Regards,
    Manish

  • 'The logged-on user does not have permission to use this object'

    Hello everyone,
    I am getting the message 'The logged-on user does not have permission to use this object' while saving the Sales Order. I am logging in as a CRM user. There is an addon also running on the server, that saves some data into a user defined table when the Sales Order is saved. Is there any authoisation for users to access user defined tables.
    Regards,
    William

    hi William,
    this is an Authorization issue. provide the user with authorization on your UDT. Definition of user authorization can be found in Administration -- >> System Initialization -->> Authorizations -->> Additional Authorization Creator.... if already defined from here you can fined the additional authorization from the General authorization window.
    regards,
    Fidel

  • Error Message' "The loged on user does not have permission to use this obje

    The loged on user does not have permission to use this object-
    I am entering a Sales order, which is customized, when I add the Sales order this system imformation appears.
    The user has a pro-license and authorizations to all AR
    Can someone tell me what my problem might be?

    Thank you for your help

  • The logged in user does not have permissions to perform this operation

    OIM 11.1.2.0.4
    Connector: Microsoft Active Directory User Management 11.1.1.5.0
    Action: revoke a provisioned AD account (logged in user is XELSYSADM member of SYSTEM ADMINISTRATIONS role)
    Error message: IAM-2050243 : Orchestration process with id 5756, failed with error message IAM-4065011 : An error occurred in oracle.iam.provisioning.spi.DOBProvisioningMechanism/revoke(Account) while revoking account with id 1 for the user with key 43 and the cause of error is The logged in user does not have permissions to perform this operation..

    The problem is missing entries into table AAD, Provisioning API uses table AAD to check administrator's scope on the user's organization.
    TEST: following SQL statement should return at least a value
    select aad_write, aad_delete
    from aad aad
    , usr usr
    where aad.act_key = usr.act_key
    and usr.usr_key = <user_key_of_user_you_wanto_to_revoke>
    and aad.ugp_key in (
    select ugp.ugp_key
    from ugp ugp
    , usg usg
    where ugp.ugp_key = usg.ugp_key
    and usg.usr_key = <user_key_of_xelsysadm>
    BUG (in my case): if you create an Organization using a OIM user that does not have any Role (except default ALL USERS Role) the system does NOT add right entries into AAD table, so you can revoke account of users that are members of this Organization
    WORKAROUND: manually insert entries for all Organizations (ACT_KEYs) for the user XELSYSADM into AAD table
    FIX: always create an Organization using a OIM users with at least one Role except ALL USERS role

  • Error Loged On user does not have permission to use this object

    Hi all,
    I am trying to Export Document Data in XML format
    for OSalesinvoice or oPurchaseInovice object it is working fine
      But if i use oPurchaseTaxInvoice it is giving error
    "An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in myDUAPI.exe "
    "Additional information: The Loged On user does not have permission to use this object"
    I have logged as "manger" "manager"
    Dim oInv As SAPbobsCOM.Documents
            'oInv = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
            'oInv = vCmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseInvoices)
            oInv = vCmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseTaxInvoice)
            If oInv.GetByKey("9") Then
                oInv.SaveXML("C:\downloads\purinvtax.xml")
            Else
                MessageBox.Show("couldn't find it")
            End If

    Hi Sudish,
    It looks to me that the logged on user is only a CRM user. You need to have a professional user license to access Invoices.
    If you're using only the DI API, please check which user name you are using to connect to DI. If you're using UI API with single sign on, the logged on user to SBO is not a professional user or don't have the correct authorisation.
    Hope it helps,
    Adele

  • "The Loged On user does not have permission to use this object" error

    Hi
    I've created a form that is used by a customer which allows for certain draft documents to be approved and then once approved they are created. The problem that I am having is that when the users attempt to update the changes on the form an error is logged, which is shown below:
    "Error: -3000
    The Loged On user does not have permission to use this object
    System.Runtime.InteropServices.COMException (0xFFFFF448): The Loged On user does not have permission to use this object"
    Once the update button is pressed then a User Defined Table and Drafts are both updated with the relevant modified UDFs from the form.
    If I log onto their system then I don't seem to get any issues. To me it looks like a user authorisation problem but the ones who have used the form seem to have the relevant licences.
    Do you have any idea why this error could be occuring?
    Thanks a lot.
    Steve

    Hi,
    Go to Administration --> System Initlization > Authorizations> General Authorizations not expand all and check if the service call is given full *Read & Write * rights to the required user.
    If not then give full rights and check the add on.
    Hope it helps,
    Vasu Natari.

  • Root cause of error " Access denied. You do not have permission to perform this action or access this resource" - workflow - SharePoint 2013

    Good evening, technet community
    I hope you are doing well.
    When configuring my SharePoint workflow, I encounter the problem below:
    Problem Description:
    Let's say my domain is: test.com, my group user is: test\group , my user is: test\user1
    Except an admin account with full control at both "Web Application" and "Site Collection", all others account all have problem when creating a list item. After creating a list item, the workflow status is "cancelled" immediately
    with the following message:
    RequestorId: 262a35e4-99f4-40f0-929b-5d04b415f147. Details: System.ApplicationException: HTTP 401 {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["10"],"SPRequestGuid":["262a35e4-99f4-40f0-929b-5d04b415f147"],"request-id":["262a35e4-99f4-40f0-929b-5d04b415f147"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4420"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;
    RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Thu, 06 Nov 2014 12:14:28 GMT"],"Server":["Microsoft-IIS\/7.5"],"WWW-Authenticate":["NTLM"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]}
    {"error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access denied. You do not have permission to perform
    this action or access this resource."}}} at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor,
    BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
    - The workflow is still fail even I assign "full control" to my users group "test\group" – at Site Collection level.
    Surprisingly, I have successfully found a solution for this error message. However, I still have some points that I do not clearly understand. Let's start with my solution first.
    Solution:
    *** i. Assign permission policy at Web Application level – Central Admin site ***
    1. Central Administration ==> Application management
    ==> Manage Web application 
    2. Go to "permission policy", then create a new permission level. This permission level contains all "edit item" permission.
    3. Select "user policy", then I assign it directly to my user account: test\user1.
    *** ii. Assign "edit item" permission at Site Collection level ***
    1. Site Setting ==> Site permission
    2. Assign "Edit" permission to my test\group.
    (Actually I removed all permissions of my user group at Site Collection level. It seem my group has inherited permission from Web Application level, is that correct? )
    *** iii. Create a new list item and workflow runs ……. ***
    ==> My question is:
    1. Why I cannot assign permission to my users group - "test\group" -
     at "Web Application" level? Instead I have to assign permission policy for each users, one by one?
    2. Could you please let me know how to collect full detail error message of workflow status?
    Thank you very much! Have a nice weekend.

    Thank you for your very detail response.
    Point 1: Yes my 2 service: user profile & profile sync service are running. I performed "full synchronization" as well. Actually i've tried 3 another action plans before coming up with the solution i posted:
    *** Actions completed ***
    1. Activate the feature: workflow can use app permissions.
    Site actions > Site Settings > Site features >activate the feature below:
     Workflows can use app permissions
    2.
    Refresh trusted security token services metadata feed
    Get-SPTimerJob
    "RefreshMetadataFeed"
    | Start-SPTimerJob
    - then restart the machine.
    3. Start full user profile synchronization.
    Point 2:
    - Yes my user had Edit permission at workflow task list + list affected by workflow.
    I have just remove all permissions of my user at "Site Collection" level. However, when i show my user permissions at my workflow task list and my users still have "Edit" Permission ( assigned at Web Application level. These permissions
    still exist even after my workflow task list stop inheriting permission).
    ==> the problems probably belongs to "permission" at "Site Collection level". It seems "permission level at my Site Collection does not work". All users accounts are also suffer from the same issues except farm admin account
    ( which has full control at Web Application level).
    I would appreciate if your guys can guide me how to make "permission" at my "Site Collection level" work again?
    Thank you very much.

  • The user does not have permission to perform the operation

    Hi,
    Configuration: JES Q405. Solaris 10 x86.
    My customer initially installed JES (Portal + AM + DS) on the same box.
    Now, they have a change in their requirement. They want DS to run dedicatedly in another box.
    I have successfully installed a fresh instance of DS in the new box with the same domain name (thus maintaining the same dn). I have copied over 99user.ldif and exported all the data from the original DS in the old box.
    Everything is running fine. DS in the new box is able to function properly.
    On the Portal and AM side, I have changed the following file:
    1. AMConfig.properties
    2. serverconfig.xml
    3. PSConfig.properties
    I have also changed the Primary LDAP entry in iPlanetAMAuthLDAPService, iPlanetAMAuthMembershipService, and iPlanetAMPolicyConfigService.
    However, when I started AM (which is running on Sun Web Server), I got the following error message:
    ------------------- in /var/opt/SUNWam/debug/amSDK ---------------------------
    05/01/2006 04:46:43:324 PM SGT: Thread[main,5,main]
    ConfigManager->Constructor: root DN dc=sg,dc=com
    05/01/2006 04:46:43:403 PM SGT: Thread[main,5,main]
    Invoking _ldapPool.getConnection()
    05/01/2006 04:46:43:403 PM SGT: Thread[main,5,main]
    Got Connection : LDAPConnection {ldap://sg-dsq405.sg.com:389 ldapVersion:3 bindDN:"cn=puser,ou=DSAME
    Users,dc=sg,dc=com"}
    05/01/2006 04:46:43:410 PM SGT: Thread[main,5,main]
    Invoking _ldapPool.close(conn) : LDAPConnection {ldap://sg-dsq405.sg.com:389 ldapVersion:3 bindDN:"c
    n=puser,ou=DSAME Users,dc=sg,dc=com"}
    05/01/2006 04:46:43:411 PM SGT: Thread[main,5,main]
    Released Connection : LDAPConnection {ldap://sg-dsq405.sg.com:389 ldapVersion:3 bindDN:"cn=puser,ou=
    DSAME Users,dc=sg,dc=com"}
    05/01/2006 04:46:43:411 PM SGT: Thread[main,5,main]
    ERROR: ConfigManager->Constructor: Caught exception Message:The user does not have permission to per
    form the operation.
    ------------------------------------ end --------------------------------------------------
    -------------------------- in /var/opt/SUNWam/debug/amAuth ---------------------
    05/01/2006 04:47:21:252 PM SGT: Thread[main,5,main]
    Directory Host: sg-dsq405.sg.com
    Directory PORT : 389
    05/01/2006 04:47:21:298 PM SGT: Thread[main,5,main]
    AuthD initializing
    05/01/2006 04:47:21:610 PM SGT: Thread[main,5,main]
    ERROR: AuthD failed to get auth session
    05/01/2006 04:47:21:688 PM SGT: Thread[main,5,main]
    ERROR: AuthD init()
    com.iplanet.dpro.session.SessionException: AuthD failed to get auth session
    at com.sun.identity.authentication.service.AuthD.initAuthSessions(AuthD.java:709)
    at com.sun.identity.authentication.service.AuthD.<init>(AuthD.java:229)
    at com.sun.identity.authentication.service.AuthD.getAuth(AuthD.java:494)
    at com.sun.identity.authentication.UI.LoginLogoutMapping.init(LoginLogoutMapping.java:71)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:921)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3478)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3760)
    at com.iplanet.ias.web.WebModule.start(WebModule.java:251)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)
    at org.apache.catalina.startup.Embedded.start(Embedded.java:995)
    at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431)
    at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500)
    at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)
    ----------------------------------------- end --------------------------------------------------
    Any idea how to solve this problem? Thanks in advance!
    justCheeChong
    Message was edited by:
    justCheeChong

    check if the new DS instance has all the AM required ACI's.

  • User does not have permission...

    Emm... actually this is jdbc, but from Microsoft ...
    I have created a login with "Security Admin" role, and after i login with the newly created id in console, i can successfully issue sp_addlogin.
    But the problem is, when i login with this id over jdbc and tried to create an account with sp_addlogin command, it gave me:
    [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]User does not have permission to perform this action.
    I could logged in, but not allowed to run sp_addlogin.
    Would any one pls help?? Many Thanks!
    (i am using the latest jdbc drivers download from MS)

    I have already checked "SQL Server and Windows", is there anything else missing in the configuriation?
    (I am running SQL Server 5.0 SP3 on Windows 2000, and I created the a/c through the Enterprise Manager)
    Many Thanks in advance.
    Did you set the SQLServer security setting to
    "SQLServer and Windows"? In the SQLServer
    administration tool, that is.

  • Error msg: Current user does not have privileges to perform product Activation

    I am running Adobe Photoshop CS 8.0 on Windows Home Vista platform.
    I keep getting this error message when I try to open Photoshop:
    Current user does not have privileges to perform product activation. Run this application from a user account with administrative privileges or contact your system administrator.
    I am the only owner & user of this software. I have re-installed the SW once (full install), and the error message went away for a while.
    Now it's come back.
    What do I do now?

    2 options:
    Either disable UAC (User Access Controls) or run the application with Administrator rights.

  • Project Server 2013 - User does not have permission to create a WSS site

    We have Auto-Publish enabled for the project by the Owner. The issue is that when a user submits his updates,  the updates are auto approved and auto-published but it also ends up showing below error to the user. 
    General
    •User does not have permission to create a WSS site.:
    ◦GeneralSecurityAccessDenied (20010). Details: id='20010' name='GeneralSecurityAccessDenied' uid='---'. 
    •Queue:
    ◦GeneralQueueJobFailed (26000) - CreateWssSite.CreateWssSiteMessage. Details: id='26000' name='GeneralQueueJobFailed' uid='---' JobUID='---' ComputerName='---' GroupType='CreateWssSite' MessageType='CreateWssSiteMessage' MessageId='1' Stage='' CorrelationUID='54a0c79c-da9b-c011-2554-5fb474e440c6'.
    For more details, check the ULS logs on machine --- for entries with JobUID ---. 
    And in the Project Queue, the failed job type and job state are
    Job type- Project Site Update
    Job State - Failed But Not Blocking Correlation
    We have disabled Site Provisioning for Project publish.
    Can anyone point us on how auto-publish works and what all permission is required by users or owners?

    Hi Goahh,
    It might be that your issue has nothing to do with the rules set to auto-publish the project. Try to inactivate the auto-publish for a test project and try if the publication by itself works. Or simply try to publish a project from MS Project Pro and see
    if you still get the error message. 
    Has it been working before?
    Check also that the "Manage SharePoint Foundation" permission is enabled for the security groups in question.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • I am attempting to upload an EPUB document to iTunes Connect, but each time that a login, "Apple ID does not have permission to use this site."  What is going on?

    I submitted an ISBN number and title to the iBooks Store using iTunes Connect.
    A nameless iBooks editor replied back, reuesting that I submit a digiral copy of my ePub document to iTunes Connect.
    The first time, I got past the login stage, but I was told that my title and ISBN had already been submitted and I was kicked,  the second through sixteenth time that I attempted to login, the system reported "Apple ID does not have permission to access this site"
    Can someone please tell me how to manuver around this roadblock?
    Regards,
    Robert Owen Cobb, CNE, MCSE
    aka The Clemmons Kid

    You have to apply to be approved for iTunes Connect first.
    Start here.
    https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa/wa/apply

Maybe you are looking for

  • ITunes error (-42404) with itunes latest update

    I recently went to sync my phone and when i opened itunes it said an update was available. To which i replied yes update and itunes the new itunes version and quick time (as i always do and have never had a problem) Then when it was done, i received

  • Uninstalled Facebook App not completely removed

    I was recently having issues with the Facebook application so I tried to remove i so that I could just reinstall it. I performed the usual act of removing by tapping the "x" on the Facebook icon and it appeared that the app had been removed. But when

  • Posting with reconciallation account

    hi, how to post the commission amounts of a vendor to their reconciliation's accounts while releasing to accounting from vf02 automatically, may i know the configuration settings in IMG. here customer and vendor is different. Edited by: santosh kumar

  • Sharpening in ACR 7.1

    I'm reading the part of Martin Evening's "Adobe Photoshop CS6 for Photographers" dealing with sharpening in ACR.  As in his previous edition for CS5, he seems to be saying that putting the Detail slider at 100 is akin to USM in PS, while placing it a

  • What does status_code_error means?

    In the app store, when i submit my password an error called "STATUS_CODE_ERROR" appears. What is wrong?