Remote SQL Connectivity Problem with ASP.Net Web Application

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

  1. #1

    Default Remote SQL Connectivity Problem with ASP.Net Web Application

    Hello,

    I am connecting to a remote sql server using asp.net web application, the error that i get is "Sql Server does not exist or access denied". now when i use the same query string in a windows based application then connection is made successfully.

    am i missing some thing in web.config file (i ve set authentication mode to none)

    please respond asap, i badly need to fix this problem

    thanks in advance

    Hammad.Rajjoub.
    Hammad Rajjoub Guest

  2. Similar Questions and Discussions

    1. connectivity problem
      I am using SCO OPENSERVER 5.0.0 with 35 users.I am now facing a problem, the number of telnet connections are 25 maximum. If the 26 connection is...
    2. Remote Desktop Connectivity
      I have Windows 2003 Enterprise Edition running Active Directory and Exchange 2003 Enterprise on the same server. My problem is, when users try...
    3. SQL Connectivity problem
      We have a web page that connects to SQL server running under Windows Server 2003 and have a connectivity problem Connection is made using NT...
    4. Problem with Remote SQL Server Connectivity
      Hello I am developing a web based application that needs to access data from varied data Sources (Sql Servers) placed at different locations within...
    5. problem with asp connectivity
      I am trying to connect to my oracle data base with my asp page, but it keeps giving an error message "Microsoft OLE DB Provider for ODBC Drivers...
  3. #2

    Default Re: Remote SQL Connectivity Problem with ASP.Net Web Application

    If you are running ASP.NET under it's default process identity, then it may
    not have access to remote resources. For example, in Windows 2000, ASP.NET
    runs under Machine\ASPNET or Machine\IWAM_<machinename> for v1 and v1.1
    respectively. These are local accounts and do not have access to remote
    resources. You will need to change the process identity to something else.

    On Windows 2003, ASP.NET uses the Web App Pool process identity. You will
    need to configure that so that it has access to remote resources.

    Cheers
    Ken

    "Hammad Rajjoub" <hammad.rajjoub@lycos.co.uk> wrote in message
    news:37EF1E41-6420-4A0B-B184-5C7F6970DD76@microsoft.com...
    : Hello,
    :
    : I am connecting to a remote sql server using asp.net web application, the
    error that i get is "Sql Server does not exist or access denied". now when i
    use the same query string in a windows based application then connection is
    made successfully.
    :
    : am i missing some thing in web.config file (i ve set authentication mode
    to none) ?
    :
    : please respond asap, i badly need to fix this problem .
    :
    : thanks in advance.
    :
    : Hammad.Rajjoub.


    Ken Schaefer Guest

  4. #3

    Default Re: Remote SQL Connectivity Problem with ASP.Net Web Application

    Hello Ken,

    I have actually changed asp.net process identity to Administrator, and
    the remote server(having sql server) installed on it has the same
    Administrator UserId / Password as on web server.

    What else do i need to check ?

    Thanks for the response.

    regards,
    Hammad.Rajjoub.

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Hammad Rajjoub Guest

  5. #4

    Default Re: Remote SQL Connectivity Problem with ASP.Net Web Application

    Hi,

    Are you using Integrated Windows security in your SQL Server connection
    string (Integrated Security=SSPI)? If so, then having two local
    administrator accounts with the same password is not enough (as far as I
    know - someone else who knows more about how the SSPI interface works might
    be able to help you more). You will need to use a domain account instead, or
    you somehow need to impersonate the remote administrator account (I don't
    know how that's possible though).

    Cheers
    Ken

    "Hammad Rajjoub" <hammad.rajjoub@lycos.co.uk> wrote in message
    news:ufktdQMOEHA.892@TK2MSFTNGP09.phx.gbl...
    : Hello Ken,
    :
    : I have actually changed asp.net process identity to Administrator, and
    : the remote server(having sql server) installed on it has the same
    : Administrator UserId / Password as on web server.
    :
    : What else do i need to check ?
    :
    : Thanks for the response.
    :
    : regards,
    : Hammad.Rajjoub.
    :
    : *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    : Don't just participate in USENET...get rewarded for it!


    Ken Schaefer 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