473,387 Members | 1,573 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Creating a SQL adaptor object on a remote server

I have a project on a remote server consisting of a aspx page and a class. When I try to use the fill method of a sqldataadaptor to fill a dataset I get this error - Referenced object has a value of 'Nothing'. This works fine on my local machine. Below is some code to help show what I'm trying to do. I'm thinking permissions but what I have no idea, the project is using Windows Authenitication

Login.aspx cod

Imports PTS.PVBackoffic

Public Class Logi
Inherits System.Web.UI.Pag

Private m_BO As clsBackOffic

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Loa
If Not Page.IsPostBack The
FillEmployees(
End I
End Su

Sub FillEmployees(

m_BO = New clsBackOffic

With cboEmployee
.DataSource = m_BO.GetEmployee
.DataMember = "Employees
.DataTextField = "EmpName
.DataValueField = "OperatorID
.DataBind(
End Wit
End Su

Class Backoffice code routine GetEmployee

Public Function GetEmployees() As DataSe
Dim dstEmployees As New DataSe

Tr
m_adp = New SqlDataAdapte

m_adp.SelectCommand = New SqlCommand("qryGetEmployees", g_cnnPTS

m_adp.Fill(dstEmployees, "Employees") <--- This line gives me the error on the remote server, a local server works fin

Return dstEmployee

Catch ex As Exceptio
'MessageBox.Show(ex.ToString
Finall
If g_cnnPTS.State = ConnectionState.Open The
g_cnnPTS.Close(
End I

If Not m_adp Is Nothing The
m_adp = Nothin
End I
End Tr
End Function
Nov 18 '05 #1
0 1326

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Rennie deGraaf | last post by:
I want to create a long-running RMI server, which makes an object available to remote hosts, and does nothing else. However, the server consistently exists with no exception or error after >=60...
0
by: Robert | last post by:
I get these errors when creating a asp .net web application project in VS 2003 on a remote web server: "Microsoft Development Environment The Web was created successfully, but an error occurred...
4
by: Scott Smedley | last post by:
Hi all, I'm trying to write a special adaptor iterator for my program. I have *almost* succeeded, though it fails under some circumstances. See the for-loop in main(). Any pointers/help...
1
by: Tony Johansson | last post by:
Hello! I'm reading about design pattern adaptor in the GOF book and there is something that sounds strange. When you use the adaptor design pattern you have these participants. *Target -...
0
by: Tony Johansson | last post by:
Hello!! This is about the adaptor design pattern. If you use the class adaptor its easy to override. It says an object adaptor makes it harder to override Adaptee behavior. It will require...
0
by: Kent K | last post by:
I have a project on a remote server consisting of a aspx page and a class. When I try to use the fill method of a sqldataadaptor to fill a dataset I get this error - Referenced object has a value of...
1
by: Jim Bayers | last post by:
Our network nazi doesn't want us running a webserver on the server that has a connection to the campus database so we created a remote object that runs as a windows service. The windows service...
2
by: Anson | last post by:
Hello, I would like to clarify something about Remoting Object in .NET. Knowing from MSDN that in order for Remote Object to work, I need 3 components. a) RemotableType object, just like a...
2
by: Julia | last post by:
Hi, Can a Remote object be a WebService as well? i want to able to connect to a remote object either using .NET remoting and HTTP\SOAP so I wonder if I can create a singleton(statefull)...
0
by: Chris | last post by:
I am using CSS adaptors. When I use enen the most basic treeview the SelectedNodeChanged does not fire. Can anyone help, I am totally stuck. I need to use the CSS adaptors to make the site...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...

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.