473,322 Members | 1,734 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,322 software developers and data experts.

Help! Dataset returning an error on one machine, works fine on another.

Hello,

I have a web application that I developed in ASP.NET on one machine and I'm
trying to deploy it on a Windows 2003 Server. The application runs fine on
the development workstation connected to the development SQL Server 2000.

I've deployed the application to the server and it works fine, accesses the
data in the SQL database, but the problem comes when I try to create a
report using a dataset. I get an error "Object reference not set to an
instance of an object". This occurs on every report I try. Any idea what I
should look at?

I also have a second problem; the server does not (and will not) have
VS2003 installed, I have administrator privledges, I have taken all the
advice I can from elsewhere on the net (re: IIS set up, HTTP Keep Alive,
Windows Authentication etc) but I can't debug the ASP.net application from
this workstation, I get the error "Unable to start debugging on the web
server. The debugger is not properly installed. Run setup to install or
repair the debugger." But the problem is, Visual Studio is not going to be
installed on the server and I know debugging can take place without VS
installed, but can't find a solution to this problem.

Any help would be greatly appreciated.

Thanks!
Feb 1 '06 #1
2 1225
Rico maybe try posting some code how you are trying to
write the report
Patrick
"Rico" <r c o l l e n s @ h e m m i n g w a y . c o mREMOVE THIS PART IN
CAPS> wrote in message news:Sw8Ef.409503$2k.312999@pd7tw1no...
Hello,

I have a web application that I developed in ASP.NET on one machine and I'm trying to deploy it on a Windows 2003 Server. The application runs fine on the development workstation connected to the development SQL Server 2000.

I've deployed the application to the server and it works fine, accesses the data in the SQL database, but the problem comes when I try to create a
report using a dataset. I get an error "Object reference not set to an
instance of an object". This occurs on every report I try. Any idea what I should look at?

I also have a second problem; the server does not (and will not) have
VS2003 installed, I have administrator privledges, I have taken all the
advice I can from elsewhere on the net (re: IIS set up, HTTP Keep Alive,
Windows Authentication etc) but I can't debug the ASP.net application from
this workstation, I get the error "Unable to start debugging on the web
server. The debugger is not properly installed. Run setup to install or
repair the debugger." But the problem is, Visual Studio is not going to be installed on the server and I know debugging can take place without VS
installed, but can't find a solution to this problem.

Any help would be greatly appreciated.

Thanks!

Feb 2 '06 #2
I've pasted the code below. I don't think it's the code that's the issue,
since it works fine on this machine, but blows up on the server. Here is is
either way;

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim dt As New dbTier
Dim ds As DataSet, dv As DataView
Dim dsA As New dsCourses
Dim i As Long
Dim r As DataRow
Dim t As Long

t = Date.Now.Ticks()
ds = dt.GenericDS("SELECT * FROM [viewCourses];")

'!!!!!! NOTE: The following line is where the code blows up on the server.
dv = ds.Tables(0).DefaultView
'!!!!!!
For i = 0 To dv.Count - 1
' Check to see if this record is valid.
r = dsA.Tables("viewCourses").NewRow()
r("CourseID") = dv(i)("CourseID")
r("Title") = dv(i)("Title")
r("Description") = dv(i)("Description")
r("Safety") = dv(i)("Safety")
r("RetrainInterval") = dv(i)("RetrainInterval")
dsA.Tables("viewCourses").Rows.Add(r)

Next
ds.Dispose()
r = dsA.Tables("Heading").NewRow
r("Heading1") = "Western Forest Products Inc."
r("Heading2") = ""
dsA.Tables("Heading").Rows.Add(r)

' Load the report document and push in the data.
Dim fname As String
Dim rpt As New ReportDocument
Dim repName As String

'rpt.Load(Server.MapPath("rptTrainingRequired_I.rp t"))
repName = Request.Form("repName")
rpt.Load(Server.MapPath(repName))
Dim exp As ExportOptions = rpt.ExportOptions

exp.ExportFormatType = ExportFormatType.PortableDocFormat
exp.ExportDestinationType = ExportDestinationType.DiskFile

exp.DestinationOptions = New DiskFileDestinationOptions
fname = GetNewFilename() & ".pdf"
exp.DestinationOptions.diskfilename = Server.MapPath("reports/pdf/"
& fname)

rpt.SetDataSource(dsA)
rpt.Export()

Link = "reports/pdf/" & fname

t = Date.Now.Ticks - t
ElapsedTicks = t
End Sub

"Patrick.O.Ige" <na********@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl...
Rico maybe try posting some code how you are trying to
write the report
Patrick
"Rico" <r c o l l e n s @ h e m m i n g w a y . c o mREMOVE THIS PART IN
CAPS> wrote in message news:Sw8Ef.409503$2k.312999@pd7tw1no...
Hello,

I have a web application that I developed in ASP.NET on one machine and

I'm
trying to deploy it on a Windows 2003 Server. The application runs fine

on
the development workstation connected to the development SQL Server 2000.

I've deployed the application to the server and it works fine, accesses

the
data in the SQL database, but the problem comes when I try to create a
report using a dataset. I get an error "Object reference not set to an
instance of an object". This occurs on every report I try. Any idea
what

I
should look at?

I also have a second problem; the server does not (and will not) have
VS2003 installed, I have administrator privledges, I have taken all the
advice I can from elsewhere on the net (re: IIS set up, HTTP Keep Alive,
Windows Authentication etc) but I can't debug the ASP.net application
from
this workstation, I get the error "Unable to start debugging on the web
server. The debugger is not properly installed. Run setup to install or
repair the debugger." But the problem is, Visual Studio is not going to

be
installed on the server and I know debugging can take place without VS
installed, but can't find a solution to this problem.

Any help would be greatly appreciated.

Thanks!


Feb 2 '06 #3

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

Similar topics

21
by: Dave | last post by:
After following Microsofts admonition to reformat my system before doing a final compilation of my app I got many warnings/errors upon compiling an rtf file created in word. I used the Help...
4
by: Sarir Khamsi | last post by:
Is there a way to get help the way you get it from the Python interpreter (eg, 'help(dir)' gives help on the 'dir' command) in the module cmd.Cmd? I know how to add commands and help text to...
2
by: Sudheer Kareem | last post by:
Dear All Please tell me how to assosiate help files with my Vb.net Project. Regards Sudheer
6
by: d.warnermurray | last post by:
I am doing a project for school that involves creating help files for a html authoring tool. If you could help me with answers to some questions it would really help. 1. What tasks do you expect...
5
by: Craig Keightley | last post by:
Please help, i have attached my page which worksin IE but i cannnot get the drop down menu to fucntion in firefox. Any one have any ideas why? Many Thanks Craig ...
7
by: Corepaul | last post by:
Missing Help Files When I enter "recordset" as the keyword and search the Visual Basic Help index, I get many topics of interest in the resulting list. But there isn't any information available...
4
by: Fred Flintstone | last post by:
This one baffles me. I'm using VS.Net 2005 and write desktop apps that need built in help. So logically, I figure maybe VS has a help system component built in so I search the help. Hey! ...
8
by: Mark | last post by:
I have loaded Visual Studio .net on my home computer and my laptop, but my home computer has an abbreviated help screen not 2% of the help on my laptop. All the settings look the same on both...
10
by: JonathanOrlev | last post by:
Hello everybody, I wrote this comment in another message of mine, but decided to post it again as a standalone message. I think that Microsoft's Office 2003 help system is horrible, probably...
1
by: trunxnirvana007 | last post by:
'UPGRADE_WARNING: Array has a new behavior. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="9B7D5ADD-D8FE-4819-A36C-6DEDAF088CC7"' 'UPGRADE_WARNING: Couldn't resolve...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.