ODBC has error but no error message displayed

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

  1. #1

    Default ODBC has error but no error message displayed

    Hi All..

    This is a strange one that I hope someone has come across.

    I have an asp.net application that needs to access a flat file databse
    via ODBC.

    I have setup the OBDC DSN and tested it via EXCEL. It works perfect. I
    have setup a Windows 2000 server with the application and DSn and it
    works perfect.

    The problem is if I try and run the same scenario under Windows XP,
    EXCEL can get to the ODBC datasource without a problem, but when you
    call up the ASP.NET application, the system plays the CHIME sound and
    the web page goes into limbo.

    Here is some code. I have tracked it down to the line in code
    "myodbc.open()":

    DIM ODBCConn As String = "DSN=MOB;"
    Dim myodbc As OdbcConnection = New OdbcConnection(ODBCConn)
    myodbc.open() <---- here
    Dim myobSC As odbcCommand = New odbcCommand(myobSQL, myODBC)
    Dim myobDR As odbcDataReader =
    myobSC.ExecuteReaderCommandBehavior.CloseConnectio n)


    As mentioned it works on all test beds except XP, and yes I have
    installed each server components identical (MS ODBC for .NET, MDAC2.7)
    etc..

    I thought it might have something to do with the Registry Permissions
    on the ODBC DNS entry, changed to allow ALL access (as on one test
    server, I was getting an error message) but that hasn't seem to do
    anything..

    Also, as mentioned, Excel can connect to the Datasource on the XP
    without a problem, so i know the DSN is setup correctly, and since
    this is the same code that works on W2K test servers, the code works..

    Can anyone Help?
    Robert Brown Guest

  2. Similar Questions and Discussions

    1. error message: Microsoft JScript compilation error '800a03ec'
      Recieved following error message: Microsoft JScript compilation error '800a03ec' Expected ';' ...
    2. [microsoft][odbc microsoft access driver] syntax error (missing operator) in query expression error
      I have a query I want to run using DBQwiksite siftware, which produces the syntax error (missing operator) in query expression error when...
    3. Error Message "A drawing error ocurrred which is probably due to an out-of-memory condition. Try qu
      I am running Acrobat Reader 5.0 on a Mac Powerbook running OS 9.2 and keep getting "A drawing error occurred which is probably due to an out of...
    4. odbc error message
      I am getting the error message below in the event log for a windows 2003/sql server 2000 web and database server, any ideas? I seem to be...
    5. Microsoft OLE DB Provider for ODBC Drivers error '80004005' Error
      Hi folks - i've got a windows 2000 server (SP3) i've run the IIS lockdown tool on it and set for dynamic websites - all the static pages within the...
  3. #2

    Default Re: ODBC has error but no error message displayed

    Dont all jump at once...

    I have found the problem..

    I knew it had to do with a rights issue but where???

    What I did was to change the username in the MACHINE.CONFIG file for
    the framework from "machine" to "SYSTEM", restarted IIS and from then
    on it worked like a charm..

    The only thing I would love to find out, is why wasn't any error
    shown.

    Anyway, there you have it..

    Regards,
    Robert



    [email]rbrown@edium.com[/email] (Robert Brown) wrote in message news:<bdd1819.0307011740.4f14b10d@posting.google.c om>...
    > Hi All..
    >
    > This is a strange one that I hope someone has come across.
    >
    > I have an asp.net application that needs to access a flat file databse
    > via ODBC.
    >
    > I have setup the OBDC DSN and tested it via EXCEL. It works perfect. I
    > have setup a Windows 2000 server with the application and DSn and it
    > works perfect.
    >
    > The problem is if I try and run the same scenario under Windows XP,
    > EXCEL can get to the ODBC datasource without a problem, but when you
    > call up the ASP.NET application, the system plays the CHIME sound and
    > the web page goes into limbo.
    >
    > Here is some code. I have tracked it down to the line in code
    > "myodbc.open()":
    >
    > DIM ODBCConn As String = "DSN=MOB;"
    > Dim myodbc As OdbcConnection = New OdbcConnection(ODBCConn)
    > myodbc.open() <---- here
    > Dim myobSC As odbcCommand = New odbcCommand(myobSQL, myODBC)
    > Dim myobDR As odbcDataReader =
    > myobSC.ExecuteReaderCommandBehavior.CloseConnectio n)
    >
    >
    > As mentioned it works on all test beds except XP, and yes I have
    > installed each server components identical (MS ODBC for .NET, MDAC2.7)
    > etc..
    >
    > I thought it might have something to do with the Registry Permissions
    > on the ODBC DNS entry, changed to allow ALL access (as on one test
    > server, I was getting an error message) but that hasn't seem to do
    > anything..
    >
    > Also, as mentioned, Excel can connect to the Datasource on the XP
    > without a problem, so i know the DSN is setup correctly, and since
    > this is the same code that works on W2K test servers, the code works..
    >
    > Can anyone Help?
    Robert Brown Guest

  4. #3

    Default Re: ODBC has error but no error message displayed

    Probably a registry permission sissue. System DSNs are stored in the System
    registry.

    HTH,

    Kevin Spencer
    Microsoft FrontPage MVP
    Internet Developer
    [url]http://www.takempis.com[/url]
    Big things are made up of
    lots of Little things.

    "Robert Brown" <rbrown@edium.com> wrote in message
    news:bdd1819.0307021634.1c4c0698@posting.google.co m...
    > Dont all jump at once...
    >
    > I have found the problem..
    >
    > I knew it had to do with a rights issue but where???
    >
    > What I did was to change the username in the MACHINE.CONFIG file for
    > the framework from "machine" to "SYSTEM", restarted IIS and from then
    > on it worked like a charm..
    >
    > The only thing I would love to find out, is why wasn't any error
    > shown.
    >
    > Anyway, there you have it..
    >
    > Regards,
    > Robert
    >
    >
    >
    > [email]rbrown@edium.com[/email] (Robert Brown) wrote in message
    news:<bdd1819.0307011740.4f14b10d@posting.google.c om>...
    > > Hi All..
    > >
    > > This is a strange one that I hope someone has come across.
    > >
    > > I have an asp.net application that needs to access a flat file databse
    > > via ODBC.
    > >
    > > I have setup the OBDC DSN and tested it via EXCEL. It works perfect. I
    > > have setup a Windows 2000 server with the application and DSn and it
    > > works perfect.
    > >
    > > The problem is if I try and run the same scenario under Windows XP,
    > > EXCEL can get to the ODBC datasource without a problem, but when you
    > > call up the ASP.NET application, the system plays the CHIME sound and
    > > the web page goes into limbo.
    > >
    > > Here is some code. I have tracked it down to the line in code
    > > "myodbc.open()":
    > >
    > > DIM ODBCConn As String = "DSN=MOB;"
    > > Dim myodbc As OdbcConnection = New OdbcConnection(ODBCConn)
    > > myodbc.open() <---- here
    > > Dim myobSC As odbcCommand = New odbcCommand(myobSQL, myODBC)
    > > Dim myobDR As odbcDataReader =
    > > myobSC.ExecuteReaderCommandBehavior.CloseConnectio n)
    > >
    > >
    > > As mentioned it works on all test beds except XP, and yes I have
    > > installed each server components identical (MS ODBC for .NET, MDAC2.7)
    > > etc..
    > >
    > > I thought it might have something to do with the Registry Permissions
    > > on the ODBC DNS entry, changed to allow ALL access (as on one test
    > > server, I was getting an error message) but that hasn't seem to do
    > > anything..
    > >
    > > Also, as mentioned, Excel can connect to the Datasource on the XP
    > > without a problem, so i know the DSN is setup correctly, and since
    > > this is the same code that works on W2K test servers, the code works..
    > >
    > > Can anyone Help?

    Kevin Spencer 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