SQL Server, ASP and Access Denied

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default SQL Server, ASP and Access Denied

    I have a web application in which I use a PDF form to collect data
    from the user and submit that data directly from the PDF to ASP.

    All pages of the application use the same ADO connection string, and
    most pages are able to access the database. One page cannot access
    the database. This ASP page is different from the others in two ways:

    1. It follows the PDF file and opens in the window previously opened
    for the PDF content.
    2. It uses an IP address in the address bar instead of a DNS name.

    I have minimal control over these two conditions. Unfortunately, I
    also do not have control over the web and database servers. The
    database server is behind a firewall, but other web pages are able to
    access it using the same connection string.

    The database error is:

    Microsoft OLE DB Provider for SQL Server (0x80004005)
    [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
    access denied.

    In testing a couple of days ago, the same code worked perfectly on the
    same server, so I guess the problem is intermittent although it has
    not worked at all today.

    What can I do with my code or what can I suggest be done with the
    servers to correct this?

    Thanks.
    -Bart.
    Bart Guest

  2. Similar Questions and Discussions

    1. SQL Server does not exist or access denied.
      Hi, I had the same issues. I ended up learning more about SQL that I had intended. In the end I discovered that GrocerToGo had not been installed...
    2. ASPNET directory access on server denied
      Tell him that the ASPNET user is on good only on the webserver, if he wants to access a network resource, he'll have to impersonate a valid domain...
    3. Error: SQL Server does not exist or access denied
      My client has a server running Windows 2003 Server and SQL Server 2000. The sole purpose of the server is to run a single web site. It was...
    4. ASP.NET access denied to SQL Server 2000
      I've been working on a WebService project with a local datasource. I moved the datasource to be another server. So now IIS and SQL Server are on...
    5. SQL Server does not exist or access denied
      Problem: ======= Coonection String: <add key="TaxonomyConnection" value="User ID=WebUser;Password='pass';Initial Catalog=Taxonomy;Data...
  3. #2

    Default Re: SQL Server, ASP and Access Denied

    Check the network library that is being used to connect to the sever. It's
    possibly a client connection issue, rather than a server problem. (In this
    case, by client I mean the web server, not the browser.)

    The second possibility is this: if you are storing the connection string in
    a Session variable, you can't pass that variable to a new domain--and as far
    as the browser is concerned, [url]www.mydomain.com[/url] is a different domain from
    10.10.10.10, even if they point to the same machine. So when you move from
    [url]www.mydomain.com[/url] to 10.10.10.10 you are losing the connection string.


    "Bart" <cshrcat@hotmail.com> wrote in message
    news:fa23d9f3.0309101902.3cb39ce0@posting.google.c om...
    > I have a web application in which I use a PDF form to collect data
    > from the user and submit that data directly from the PDF to ASP.
    >
    > All pages of the application use the same ADO connection string, and
    > most pages are able to access the database. One page cannot access
    > the database. This ASP page is different from the others in two ways:
    >
    > 1. It follows the PDF file and opens in the window previously opened
    > for the PDF content.
    > 2. It uses an IP address in the address bar instead of a DNS name.
    >
    > I have minimal control over these two conditions. Unfortunately, I
    > also do not have control over the web and database servers. The
    > database server is behind a firewall, but other web pages are able to
    > access it using the same connection string.
    >
    > The database error is:
    >
    > Microsoft OLE DB Provider for SQL Server (0x80004005)
    > [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
    > access denied.
    >
    > In testing a couple of days ago, the same code worked perfectly on the
    > same server, so I guess the problem is intermittent although it has
    > not worked at all today.
    >
    > What can I do with my code or what can I suggest be done with the
    > servers to correct this?
    >
    > Thanks.
    > -Bart.

    Boris Nikolaevich Guest

  4. #3

    Default Re: SQL Server, ASP and Access Denied

    Boris, thanks for your suggestions. I am using the TCP/IP network
    library... here is the connection string:

    dsn=mydsn;uid=myuid;pwd=mypwd;database=mydb;app=AS P;Connect
    Timeout=60;Network Library=dbmssocn"

    The connection string was initially stored in an Application variable
    in global.asa. I moved it to a global variable in the ASP page during
    the troubleshooting process.

    I suspect that your last point regarding the IP address is the
    problem, but how do I correct it given that Acrobat uses the IP
    address? If I can't control for that, I will be re-writing the PDF
    piece over the weekend to use DHTML.

    Thanks again.

    "Boris Nikolaevich" <boris@nikolaevich.com> wrote in message news:<e4$bT0BeDHA.696@TK2MSFTNGP09.phx.gbl>...
    > Check the network library that is being used to connect to the sever. It's
    > possibly a client connection issue, rather than a server problem. (In this
    > case, by client I mean the web server, not the browser.)
    >
    > The second possibility is this: if you are storing the connection string in
    > a Session variable, you can't pass that variable to a new domain--and as far
    > as the browser is concerned, [url]www.mydomain.com[/url] is a different domain from
    > 10.10.10.10, even if they point to the same machine. So when you move from
    > [url]www.mydomain.com[/url] to 10.10.10.10 you are losing the connection string.
    >
    >
    > "Bart" <cshrcat@hotmail.com> wrote in message
    > news:fa23d9f3.0309101902.3cb39ce0@posting.google.c om...
    > > I have a web application in which I use a PDF form to collect data
    > > from the user and submit that data directly from the PDF to ASP.
    > >
    > > All pages of the application use the same ADO connection string, and
    > > most pages are able to access the database. One page cannot access
    > > the database. This ASP page is different from the others in two ways:
    > >
    > > 1. It follows the PDF file and opens in the window previously opened
    > > for the PDF content.
    > > 2. It uses an IP address in the address bar instead of a DNS name.
    > >
    > > I have minimal control over these two conditions. Unfortunately, I
    > > also do not have control over the web and database servers. The
    > > database server is behind a firewall, but other web pages are able to
    > > access it using the same connection string.
    > >
    > > The database error is:
    > >
    > > Microsoft OLE DB Provider for SQL Server (0x80004005)
    > > [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
    > > access denied.
    > >
    > > In testing a couple of days ago, the same code worked perfectly on the
    > > same server, so I guess the problem is intermittent although it has
    > > not worked at all today.
    > >
    > > What can I do with my code or what can I suggest be done with the
    > > servers to correct this?
    > >
    > > Thanks.
    > > -Bart.
    Bart 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