help with connection

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default help with connection

    hi
    i created a user in sql server under login then i went to the database and under users i added the user and them gave the user permissions to select from the tables and execute the stored procedures but when i try to pass the user in my connection string i ge


    Access to the remote server is denied because no login-mapping exists.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Data.SqlClient.SqlException: Access to the remote server is denied because no login-mapping exists

    Source Error:

    Line 110
    Line 111: ds = New DataSe
    Line 112: cmdSel.Fill(ds, "Oreg"
    Line 113
    Line 114: DataGrid2.DataSource = ds.Tables("Oreg").DefaultVie


    Source File: D:\Projects\BNPWebsite\pos_application\WebForm2.as px.vb Line: 112

    Stack Trace:

    [SqlException: Access to the remote server is denied because no login-mapping exists.
    System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) +72
    System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior behavior) +4
    System.Data.SqlClient.SqlCommand.System.Data.IDbCo mmand.ExecuteReader(CommandBehavior behavior) +
    System.Data.Common.DbDataAdapter.FillFromCommand(O bject data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +30
    System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +7
    System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +3
    pos_application.WebForm2.BindGrid() in D:\Projects\BNPOSWebsite\pos_application\WebForm2. aspx.vb:11
    pos_application.WebForm2.Page_Load(Object sender, EventArgs e) in D:\Projects\BNPOSWebsite\pos_application\WebForm2. aspx.vb:5
    System.Web.UI.Control.OnLoad(EventArgs e) +6
    System.Web.UI.Control.LoadRecursive() +3
    System.Web.UI.Page.ProcessRequestMain() +73



    why is this. if i change the UID to sa in the connection string it works fine. is there something i missed when i created the user

    thank

    chris Guest

  2. Similar Questions and Discussions

    1. Net connection without Internet connection whoas
      Hi does flash media server 2 require a connection to the internet i'm using the evaluation version on a computer which is not connected to the...
    2. "Contribute cannot verify your connection information."on a Local / Network connection
      When I create a connection key and specify Local/Network for the website, then select the right folder, I get this error: "Contribute cannot...
    3. "Contribute cannot verify your connection information"- Every other problem ruled out, but still no connection
      Hi, first, please allow me to give you the background info Client OS - Windows 2000/XP Pro Version - Contribute 2.01 - I installed the patch from...
    4. One NFS connection fine, one NFS connection slow
      Ok, this is all a bit odd. I will draw an ascii picture and hope it survives in Google: sun server | .------mandrake...
    5. Have internet connection but not workgroup connection.
      In article <Xns93B9BBF24CB33adfslur0mdoaur03jadl@207.46.248.16>, Frank Dreyfus <fdreyfus@nyw.com> wrote: I've written a web site that should help...
  3. #2

    Default RE: help with connection

    H

    Is it Linked Server? if so add user in the following wa
    [url]http://databasejournal.com/features/mssql/article.php/311601[/url]

    HT
    Ravikanth[MVP]
    Ravikanth[MVP] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139