473,769 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

'PostgreSQL OLE DB Provider' failed with no error - dbread=dbcomm.E xecuteReader()

1 New Member
I'm making a very simple webpage to view data in a Postgres tbale. Having not done this belore with ASP.NET I'm taking it slowly and overcoming most problems. However I cannot work out what is going on here: I get this message:

SERVER ERROR
'PostgreSQL OLE DB Provider' failed with no error message available, result code: -2147221163(0x80 040155).
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.Ole Db.OleDbExcepti on: 'PostgreSQL OLE DB Provider' failed with no error message available, result code: -2147221163(0x80 040155).

Source Error:


Line 11: sql="SELECT table_name FROM nfmd_master"
Line 12: dbcomm=New OleDbCommand(sq l,dbconn)
Line 13: dbread=dbcomm.E xecuteReader()Line 14: nfmd_master.Dat aSource=dbread
Line 15: nfmd_master.Dat aBind()


Source File: G:\wwwroot\inte rnettest\cat.as px Line: 13

Stack Trace:


[OleDbException (0x80040155): 'PostgreSQL OLE DB Provider' failed with no error message available, result code: -2147221163(0x80 040155).]
Microsoft.Visua lBasic.Compiler Services.Contai ner.InvokeMetho d(Method TargetProcedure , Object[] Arguments, Boolean[] CopyBack, BindingFlags Flags) +202
Microsoft.Visua lBasic.Compiler Services.NewLat eBinding.LateGe t(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack) +275
ASP.cat_aspx.Pa ge_Load() in G:\wwwroot\inte rnettest\cat.as px:13
System.Web.Util .CalliHelper.Ar glessFunctionCa ller(IntPtr fp, Object o) +8
System.Web.Util .CalliEventHand lerDelegateProx y.Callback(Obje ct sender, EventArgs e) +8668019
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +99
System.Web.UI.C ontrol.LoadRecu rsive() +50
System.Web.UI.P age.ProcessRequ estMain(Boolean includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint) +627


MY CODE IS:

Expand|Select|Wrap|Line Numbers
  1.  
  2. <%@ Page Language="VB" Debug="true" %>
  3. <%@ Import Namespace="System.Data.OleDb" %>
  4. <script runat="server">
  5. sub Page_Load
  6. dim dbconn,sql,dbcomm,dbread,nfmd_master
  7.  
  8. dbconn=New OleDbConnection("Provider=PostgreSQL OLE DB Provider;Data Source=localhost;location=gis;User ID=postgres;password=password;")
  9. dbconn.Open()
  10.  
  11. sql="SELECT table_name FROM nfmd_master"
  12. dbcomm=New OleDbCommand(sql,dbconn)
  13. dbread=dbcomm.ExecuteReader()
  14. nfmd_master.DataSource=dbread
  15. nfmd_master.DataBind()
  16. dbread.Close()
  17. dbconn.Close()
  18.  
  19. end sub
  20.  
  21.  
  22. </script>
  23.  
  24.  
  25.  
  26. <html>
  27. <head>
  28. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  29. <title>PostGIS Data Catalogue</title>
  30.  
  31.  
  32. </head>
  33.  
  34. <body>
  35. <form runat="server">
  36. <asp:Repeater id="nfmd" runat="server">
  37.  
  38. <HeaderTemplate>
  39. <table border="1" width="100%">
  40. <tr>
  41. <th>table_name</th>
  42. </tr>
  43. </HeaderTemplate>
  44.  
  45. <ItemTemplate>
  46. <tr>
  47. <td><%#Container.DataItem("table_name")%></td>
  48.  
  49. </tr>
  50. </ItemTemplate>
  51.  
  52. <FooterTemplate>
  53. </table>
  54. </FooterTemplate>
  55.  
  56. </asp:Repeater>
  57. </form>
  58.  
  59.  
  60. </body>
  61. </html>
  62.  
  63.  
can anyone help?

Thanks
Andrew
Sep 2 '10 #1
0 1616

Sign in to post your reply or Sign up for a free account.

Similar topics

0
4613
by: Bon | last post by:
Hello All I got "Tables are skipped or export failed" error when I used upsizing wizard on migrating MS Access 2000 to MS SQL Server 2000. I am changing my application backend database from MS Access 2000 to MS SQL Server 2000. My front end is MS Access interface. When I used the MS Access 2000's Upsizing Wizard for database migration, some tables cannot be migrated. The upsizing wizard report states some tables are "Tables are...
0
1507
by: QZ | last post by:
This one happens once in while and I would appreciates any help that I can get. We have a webservice that generate pdf invoice files. We use dataset as our Source. i.e. we use SetDataSource(data); and data is a strong typed dataset. Everything works fine, we generate about 5000 invoices everymonth. But lately we have trouble with one account which happen to be the largest account. If I do a data.WriteXml("C:\\temp\\test.xml") the file size...
3
3042
by: shreedhar | last post by:
If I try to delete a record from my table which is giving following error Warning: PostgreSQL query failed: ERROR: pg_atoi: zero-length string in /xxx/database.inc on line 73 What might be the problem. Regards, Sreedhar Bhaskararaju
3
9233
by: ralphdepping | last post by:
Trying to get moinmoin wiki working on Windows 2000 using IIS and python. I get the following error when trying to view the start page after insalling moinmoin and python - key error seems to be at the end related to socket.py (ImportError: WSAStartup failed: error code 10107). 10107 is "A system call that should never fail has failed"...which isn't very helpful. Any ideas what the problem may be? Thanks, Ralph
0
1832
by: t0nt0n | last post by:
i have an xp OS service pack 2 currently working on a project that uses ms access 2003 with mysql 5.0 backend... i get an odbc--call failed error when I manually changed the system date in my computer.... I need to do this to test if my code works alright but instead the error occurs..... sometimes the error will not occur but often times it will.... i will have to relink the odbc connection to mysql because i cannot access the tables...
0
1262
by: rhepsi | last post by:
Dear All, Im vb.net 1.1, When im trying to update the records from mysql to postgresql, the connection error: the following code is Update data button click: Dim myPgrConnect As New NpgsqlConnection Dim myPgrCommand As New NpgsqlCommand
0
2180
by: jianxin9 | last post by:
Hi everyone, I don't have a lot of experience with ASP and I was hoping someone could help me. I want to use our ASP form along with some javascript code to create a form where our patrons can select which department they will send the form to (we are trying to consolidate forms). This is what I have so far, but when I test the form, I keep getting this error message: Mailing Failed... Error is: FromAddress Property cannot be blank. You...
5
6846
by: kchang | last post by:
I am trying to view my reports based on a linked table database. However both the reports and the queries they're based on give me a "odbc--call failed" error. When I click on help it cites error 3146 and suggests that either the data source is on a network drive or that I am not connected to the network. I am not sure what either means but I am able to view the linked tables and access the database through data sources (ODBC) in administrative...
1
9208
by: aurekha | last post by:
Hi All, Im newbie to Perl. My problem is that, when i run my script, It is showing the error like "DBI connect('blah','blah',...) failed: ERROR OCIEnvNlsCreate. Check ORACLE_HOME (Linux) env var or PATH (Windows) and or NLS settings, permissions, etc. at common.pl line 448" Here Im giving dependancies : Orcale Client-10.2.0 Perl - /usr/lib/perl5/5.8.8 Crypt::TripleDES -- 0.24
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10212
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9863
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8872
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7410
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3962
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.