Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / December 2005

Tip: Looking for answers? Try searching our database.

System.NullReferenceException in COM+ Application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
david clark - 08 Dec 2005 18:26 GMT
Hello,

we have developed a COM+ data access component. It works fine in test
(server application installed on client with dev studio) but in production
(application proxy installed) several functions throw
System.NullReferenceException.

our function GetData opens an SqlConnection, creates a new SqlDataAdapter
and calls Fill on that adapter passing it a DataSet defined locally in the
function.
We have verified that the connection is open, the SQL is good, the adapter
seems okay. it is very weird, and I am at a bit of a loss as to what it could
be.

The same SQL is called each second and it works in the order of 4 out of 5
times.

Any help would be _greatly_ appreciated.

_
David K Clark

this is the (partial) stack trace:

System.NullReferenceException: Object reference not set to an instance of an
object.
  at System.Data.SqlClient.SqlCommand.ValidateCommand(String method,
Boolean executing)
  at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
  at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)
  at
System.Data.SqlClient.SqlCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
  at System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior)
  at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior)
  at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
  at Umen.DataPlusRemote.DBConnect.GetData(String xSQL)
binvij - 13 Dec 2005 13:28 GMT
Hi David,

Can you also post the exception stack ?

Signature

Bindesh Vijayan
MCP [ASP.NET]

> Hello,
>
[quoted text clipped - 37 lines]
>    at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
>    at Umen.DataPlusRemote.DBConnect.GetData(String xSQL)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.