Frequent error occuring in Visual studio 2005

Posted on 2009-04-29
Last Modified: 2013-11-26

Iam getting this error frequently when i execute the program in visual studio 2005.

Server Error in '/FMSMag' Application.

Unspecified error
Oracle error occurred, but error message could not be retrieved from Oracle.
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.OleDb.OleDbException: Unspecified error
Oracle error occurred, but error message could not be retrieved from Oracle.

Source Error:

Line 148:        End If
Line 149:        ' ''---------------------
Line 150:        Return oleDBCommand1.ExecuteReader()
Line 151:    End Function
Line 152:

Source File: E:\sneha\softwares\FMSMag\FMSMag\App_Code\DAL\DBAccess.vb    Line: 150

Stack Trace:

[OleDbException (0x80004005): Unspecified error
Oracle error occurred, but error message could not be retrieved from Oracle.]
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) +99
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +239
   System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +351
   System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +88
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +195
   System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +128
   System.Data.OleDb.OleDbCommand.ExecuteReader() +32
   DBAccess.ReadDB(String SQLstr) in E:\sneha\softwares\FMSMag\FMSMag\App_Code\DAL\DBAccess.vb:150
   functions.verify_menu_mode(String url, String job_id) in E:\sneha\softwares\FMSMag\FMSMag\App_Code\BAL\Admin\functions.vb:50
   Admin_password_change.Page_Load(Object sender, EventArgs e) in E:\sneha\softwares\FMSMag\FMSMag\admin\password_change.aspx.vb:107
   System.Web.UI.Control.OnLoad(EventArgs e) +127
   System.Web.UI.Control.LoadRecursive() +92
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3365

Question by:angnanesh
    1 Comment
    LVL 6

    Accepted Solution


    I'm guessing that the error occurs when you og to execute the sql statement to execute the reader. My suggestion is to run the same query on the database with an oracle program such as TOAD or SqlPlus and see if you get a btter error message (which you should).

    That or add in a try catch statement to catch the error and print it to screen.

             reader = command.ExecuteReader(CommandBehavior.CloseConnection)
    Catch ex As Exception
    End Try

    Hope this helps

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now