473,783 Members | 2,418 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 1618

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
3044
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
2181
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
9643
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
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10081
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9946
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
8968
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...
0
6735
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.