473,387 Members | 1,650 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.

Strange deployment problem

I have a strange problem with a Windows Forms application.

It installs and runs fine on my development machine but consistently comes
up with errors on any installed machine.

I get an error about an unhandled exception as the application starts up.

If I go to debugger I get the error showing as :

[thread 0x1220] Unhandled exception generated: (0x04941b54)
<System.NullReferenc
eException>
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_message=(0x04942e38) "Object reference not set to an instance of an
object."
_innerException=<null>
_helpURL=<null>
_stackTrace=(0x04942eb4) array with dims=[60]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0x00000000
_HResult=0x80004003
_source=<null>
_xptrs=0x0012ed28
_xcode=0xc0000005
I've attempted to trace the problem in my code by inserted msgbox lines to
work out where it falls over.

The form is an inherited form (which itself inherits from a standard Windows
Form). It seems to crash as it instantiates a user control on the form.

The line it appears to fall over on is :

Me.DmsTextBox1 = New DMSControls.DmsTextBox

DMSTextBox is my usercontrol. If I put a msgbox before this line I see
it.

The start of the usercontrol reads:

Public Sub New()

MyBase.New()

MsgBox("Start_Input_Box")

'This call is required by the Windows Form Designer.

InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

You never see the msgbox that is at the top of this form....

I'm lost as to what the problem might be!

Anybody any further clues as to what I can do to locate / fix the problem?

The application was developed using VS.Net 2003. The deployed machine is a
Windows 2000 Server, with the .Net framework distributable V1.1 installed.
The project is deployed as an msi built as an install project in VS .net
2003.

Regards
Nov 20 '05 #1
5 1234
Hmm,
This is a third party control right ?, I would suggest you
contact the vendors.

Regards - OHM

======================

Simon Verona wrote:
I have a strange problem with a Windows Forms application.

It installs and runs fine on my development machine but consistently
comes up with errors on any installed machine.

I get an error about an unhandled exception as the application starts
up.

If I go to debugger I get the error showing as :

[thread 0x1220] Unhandled exception generated: (0x04941b54)
<System.NullReferenc
eException>
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_message=(0x04942e38) "Object reference not set to an instance of an
object."
_innerException=<null>
_helpURL=<null>
_stackTrace=(0x04942eb4) array with dims=[60]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0x00000000
_HResult=0x80004003
_source=<null>
_xptrs=0x0012ed28
_xcode=0xc0000005
I've attempted to trace the problem in my code by inserted msgbox
lines to work out where it falls over.

The form is an inherited form (which itself inherits from a standard
Windows Form). It seems to crash as it instantiates a user control
on the form.

The line it appears to fall over on is :

Me.DmsTextBox1 = New DMSControls.DmsTextBox

DMSTextBox is my usercontrol. If I put a msgbox before this line
I see it.

The start of the usercontrol reads:

Public Sub New()

MyBase.New()

MsgBox("Start_Input_Box")

'This call is required by the Windows Form Designer.

InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

You never see the msgbox that is at the top of this form....

I'm lost as to what the problem might be!

Anybody any further clues as to what I can do to locate / fix the
problem?

The application was developed using VS.Net 2003. The deployed
machine is a Windows 2000 Server, with the .Net framework
distributable V1.1 installed. The project is deployed as an msi built
as an install project in VS .net 2003.

Regards


Best Regards - OHMBest Regards - OHM On**********@BTInternet.Com
Nov 20 '05 #2
no not third party... I wrote it... It's just a usercontrol that contains a
text box. It's used to extend the standard textbox control for some custom
databinding etc. It works in other solutions, and runs fine on my
development system in this project.

What I can't see, is why it seems to fall over so early in the control!

It looks from the debug message that it's trying to dimension something, but
can't see what.

Not sure if this helps.

Simon
"One Handed Man [ OHM ]" <te***************************@BTOpenworld.com>
wrote in message news:u4**************@TK2MSFTNGP09.phx.gbl...
Hmm,
This is a third party control right ?, I would suggest you
contact the vendors.

Regards - OHM

======================

Simon Verona wrote:
I have a strange problem with a Windows Forms application.

It installs and runs fine on my development machine but consistently
comes up with errors on any installed machine.

I get an error about an unhandled exception as the application starts
up.

If I go to debugger I get the error showing as :

[thread 0x1220] Unhandled exception generated: (0x04941b54)
<System.NullReferenc
eException>
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_message=(0x04942e38) "Object reference not set to an instance of an
object."
_innerException=<null>
_helpURL=<null>
_stackTrace=(0x04942eb4) array with dims=[60]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0x00000000
_HResult=0x80004003
_source=<null>
_xptrs=0x0012ed28
_xcode=0xc0000005
I've attempted to trace the problem in my code by inserted msgbox
lines to work out where it falls over.

The form is an inherited form (which itself inherits from a standard
Windows Form). It seems to crash as it instantiates a user control
on the form.

The line it appears to fall over on is :

Me.DmsTextBox1 = New DMSControls.DmsTextBox

DMSTextBox is my usercontrol. If I put a msgbox before this line
I see it.

The start of the usercontrol reads:

Public Sub New()

MyBase.New()

MsgBox("Start_Input_Box")

'This call is required by the Windows Form Designer.

InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

You never see the msgbox that is at the top of this form....

I'm lost as to what the problem might be!

Anybody any further clues as to what I can do to locate / fix the
problem?

The application was developed using VS.Net 2003. The deployed
machine is a Windows 2000 Server, with the .Net framework
distributable V1.1 installed. The project is deployed as an msi built
as an install project in VS .net 2003.

Regards


Best Regards - OHMBest Regards - OHM On**********@BTInternet.Com

Nov 20 '05 #3
probably not mutch help but anyway it wont hurt

are you sure that the server has al the updates from ms (probably not the
problem but i've had a pc acting up on me becouse of that)

are you sure that the installer isn't forgetting any references (since you
are using custom controls this could be an issue) do you use the user
control somewhere else? dous it work there? have you tried using the control
static (putting it somwhere on the form in designer instaid of using code)

hope it helps a bit
these things can be very hard to find

eric

"Simon Verona" <ne**@aphroditeuk.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I have a strange problem with a Windows Forms application.

It installs and runs fine on my development machine but consistently comes
up with errors on any installed machine.

I get an error about an unhandled exception as the application starts up.

If I go to debugger I get the error showing as :

[thread 0x1220] Unhandled exception generated: (0x04941b54)
<System.NullReferenc
eException>
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_message=(0x04942e38) "Object reference not set to an instance of an
object."
_innerException=<null>
_helpURL=<null>
_stackTrace=(0x04942eb4) array with dims=[60]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0x00000000
_HResult=0x80004003
_source=<null>
_xptrs=0x0012ed28
_xcode=0xc0000005
I've attempted to trace the problem in my code by inserted msgbox lines to
work out where it falls over.

The form is an inherited form (which itself inherits from a standard Windows Form). It seems to crash as it instantiates a user control on the form.

The line it appears to fall over on is :

Me.DmsTextBox1 = New DMSControls.DmsTextBox

DMSTextBox is my usercontrol. If I put a msgbox before this line I see
it.

The start of the usercontrol reads:

Public Sub New()

MyBase.New()

MsgBox("Start_Input_Box")

'This call is required by the Windows Form Designer.

InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

You never see the msgbox that is at the top of this form....

I'm lost as to what the problem might be!

Anybody any further clues as to what I can do to locate / fix the problem?

The application was developed using VS.Net 2003. The deployed machine is a Windows 2000 Server, with the .Net framework distributable V1.1 installed.
The project is deployed as an msi built as an install project in VS .net
2003.

Regards

Nov 20 '05 #4
"Simon Verona" <ne**@aphroditeuk.com> schrieb
Public Sub New()

MyBase.New()

MsgBox("Start_Input_Box")

'This call is required by the Windows Form Designer.

InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

You never see the msgbox that is at the top of this form....


What if you put the msgbox *before* MyBase.New? Means:
Public Sub New()

MsgBox("MyBase.New()")

MyBase.New()

MsgBox("InitializeComponent")

'This call is required by the Windows Form Designer.

InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #5
"Simon Verona" <ne**@aphroditeuk.com> schrieb
It won't then compile.. says mybase.new must be the first line of
the subroutine....

Ahhh...yes ..ok.. I should have tested this. (sorry!)
--
Armin

Nov 20 '05 #6

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

Similar topics

5
by: Arun Bhalla | last post by:
I'm working with VS.NET 2003 and .NET 1.1 (not SP1) on Windows XP SP1. My application is using the Windows Installer Bootstrap. (I may have also installed a module which detects requirements (.NET...
0
by: Sidney Zhang | last post by:
Hi: I got a very strange problem while using my dotNet SmartClient exe in IE. (One Click Deployment.) What we did are 1) a C# dotNet exe, very small, just for testing. around 492K. 2) put the...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
1
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
0
by: Michael | last post by:
After a week of beating my head against a wall I still continue to receive the following error message when trying to deploy a package using the cabinet option. The same error occurs with a...
2
by: Bill Nguyen | last post by:
I ran into this error trying to run an app from Publish.htm. I can't find what is wrong with the deployment. Thanks a million Bill -------- PLATFORM VERSION INFO
1
by: Paul | last post by:
Hi all, I've hit a strange problem with my ASP .NET site - occasionally when I go to a page, it will have part of another request's output mixed in with my output. This breaks the HTML on the...
1
by: =?Utf-8?B?dmNs?= | last post by:
Short version: IE7 and .NET Framework 2.0 breaks no touch deployment for .NET 1.1 applications. IE6 and .NET Framework 1.1 + 2.0 works fine. IE7 with .NET Framework 1.1 only is fine, once we add...
7
by: itsraghz | last post by:
Hi People, First of all, do we have a dedicated forum for WebSphere? As I dont find any, posting it in the one and only available forum "Java"! We do face a strange scenario in WAS 6.0 in AIX...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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,...

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.