473,796 Members | 2,488 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1239
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.4095 03$2k.312999@pd 7tw1no...
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.EventArg s) 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("S ELECT * FROM [viewCourses];")

'!!!!!! NOTE: The following line is where the code blows up on the server.
dv = ds.Tables(0).De faultView
'!!!!!!
For i = 0 To dv.Count - 1
' Check to see if this record is valid.
r = dsA.Tables("vie wCourses").NewR ow()
r("CourseID") = dv(i)("CourseID ")
r("Title") = dv(i)("Title")
r("Description" ) = dv(i)("Descript ion")
r("Safety") = dv(i)("Safety")
r("RetrainInter val") = dv(i)("RetrainI nterval")
dsA.Tables("vie wCourses").Rows .Add(r)

Next
ds.Dispose()
r = dsA.Tables("Hea ding").NewRow
r("Heading1") = "Western Forest Products Inc."
r("Heading2") = ""
dsA.Tables("Hea ding").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(Serve r.MapPath("rptT rainingRequired _I.rpt"))
repName = Request.Form("r epName")
rpt.Load(Server .MapPath(repNam e))
Dim exp As ExportOptions = rpt.ExportOptio ns

exp.ExportForma tType = ExportFormatTyp e.PortableDocFo rmat
exp.ExportDesti nationType = ExportDestinati onType.DiskFile

exp.Destination Options = New DiskFileDestina tionOptions
fname = GetNewFilename( ) & ".pdf"
exp.Destination Options.diskfil ename = Server.MapPath( "reports/pdf/"
& fname)

rpt.SetDataSour ce(dsA)
rpt.Export()

Link = "reports/pdf/" & fname

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

"Patrick.O. Ige" <na********@hot mail.com> wrote in message
news:%2******** *******@TK2MSFT NGP14.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.4095 03$2k.312999@pd 7tw1no...
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
6562
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 Workshop program: hcw.exe that's included with Visual Basic. This exact same file compiled perfectly with no notes, warnings or errors prior to reformatting my system. Prior to the reformatting, I copied the help.rtf file onto a CD and checked the box to...
4
3358
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 cmd.Cmd but I would also like to get the man-page-like help for classes and functions. Does anyone know how to do that? Thanks. Sarir
2
6487
by: Sudheer Kareem | last post by:
Dear All Please tell me how to assosiate help files with my Vb.net Project. Regards Sudheer
6
3026
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 an html authoring tool to help you accomplish? 2. What do you expect from online help for a html authoring tool? 3. What audience do you think a freeware html authoring tool is directed towards?
5
3003
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 <<<<<<<<<<<<<<CODE>>>>>>>>>>>>>>>> <html>
7
5393
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 from clicking on many of the available topics (mostly methods but some properties are also unavailable). This same problem occurs with many, if not most, keywords. Is there any way I can activate these "missing" help topics? HELP!
4
2257
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! Apparently, all I have to do is create a "Help Project"! There's my starting point. So the VS help says: "To create a Help project, click on the File menu, choose New and follow the wizard's instructions"
8
3238
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 including search the internet for help, but the help is worthless. Any ideas?
10
3369
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 the worst I ever seen. I almost cannot find anything I need, including things I
1
6141
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 default property of object Label. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' Label = New Object(){Box1, Box2, Box3, Box4, Box5, Box6, Box7, Box8, Box9, Box10, Box11,...
0
9529
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10231
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...
0
10013
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
9054
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...
1
7550
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5443
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
5576
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3733
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2927
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.