all groups > dotnet distributed apps > october 2004 >
You're in the

dotnet distributed apps

group:

Application Error when starting



Application Error when starting LisaConsult
10/20/2004 10:43:02 AM
dotnet distributed apps: I've completed my first .Net project and I'm having problems getting it to
run on a client workstation. The client has the .NET framework installed,
I'm using .msm files to install Crystal 9 (full product) and Farpoint spread.
I used the setup project to create the setup program and it seems to work
fine. When I start the application I receive "Application has generated an
exception that could not be handled Process id-XXXX Thread id= XXXX". Am I
missing a file? How do I find out what I'm missing? I use Microsoft
Application Blocks Exception Management in the subroutines and not even
getting to my splash. The compiled exe works fine on my development machine
so I can only assume it's an issue with missing a reference, but I've checked
all of them and they exist on the client machine. Any help would be
Re: Application Error when starting Sam Santiago
10/20/2004 11:38:00 AM
Do you see any further information in the event log or any app logs? Try
changing the code to capture all exceptions and logging/displaying more
information about the error. For example, enclose your
startup/initialization logic in a try..catch.

Thanks,

Sam

--
_______________________________
Sam Santiago
ssantiago@n0spam-SoftiTechture.com
http://www.SoftiTechture.com
_______________________________
[quoted text, click to view]

Re: Application Error when starting LisaConsult
10/20/2004 12:01:04 PM
Thank you for your response. My start up code is enclosed in a try/catch,
with the catch set to publish with the exception manager (which we have
writing to the event log and message to the user). It doesn't display
anything to the event log other than what I described. I should mention that
the error is coming from Common Language Runtime (CLR) not the applicaiton.
Any other ideas?

[quoted text, click to view]
Re: Application Error when starting Jorge Matos
10/20/2004 12:43:09 PM
Can you post some sample code showing what happens during your application
start? Also are you trapping errors at a global scope? The application
object has a ThreadException Event and the AppDomain class has an
UnhandledException event. Both of these events should be wired up to event
handlers in your application.

[quoted text, click to view]
Re: Application Error when starting Jorge Matos
10/20/2004 12:45:07 PM
Can you post some sample code showing what happens during your application
start? Also are you trapping errors at a global scope? The application
object has a ThreadException Event and the AppDomain class has an
UnhandledException event. Both of these events should be wired up to event
handlers in your application.

[quoted text, click to view]
Re: Application Error when starting Jorge Matos
10/20/2004 12:46:58 PM
Can you post some sample code showing what happens during your application
start? Also are you trapping errors at a global scope? The application
object has a ThreadException Event and the AppDomain class has an
UnhandledException event. Both of these events should be wired up to event
handlers in your application.

[quoted text, click to view]
RE: Application Error when starting lukezhan NO[at]SPAM online.microsoft.com
10/21/2004 2:02:54 AM
It also may be related to Application Blocks Exception Management. I
suggest you may compile a sample in Application Blocks Exception Management
and deploy it to your client computer. WIll this sample app work on it?

Luke
RE: Application Error when starting Jorge Matos
10/21/2004 5:59:02 AM
Thats a good idea luke.

Sorry for the multiple posts - I did'nt do that intentionally.

[quoted text, click to view]
RE: Application Error when starting lukezhan NO[at]SPAM online.microsoft.com
10/22/2004 2:22:26 AM
Thank you for the reply. If you have further questions on this issue,
please feel free to post here.

Luke
RE: Application Error when starting LisaConsult
10/22/2004 12:03:03 PM
Thanks to all for the reply. I finally figured out the error although I'm a
bit confused by it. Here's the deal: When we started the project one
developer brought in the AX control PolarZipLight. .Net named the control
AXPolarZipLight. However at somepoint when the control wasn't found on my
machine (we are not all on the same network so we "passed" the project
around), it could not find AXPolarZipLight, so I pulled it from my machine,
but .Net brought it in as PolarzipLight (no AX) (First question....Why?).
Somewhere in the process of passing the project, we noticed that there were 2
so we got rid of PolarZipLight and just kept AXPolarZipLight because the AX
referenced one was the one actually named in the project. But, evidently
although it was not reference in the project references, the compile was
still using PolarZipLight (no AX). How do I know and how did I find such a
crazy thing!?! Well, after trying several things (built HelloWorld app for
computer and slowly added components) I still couldn't find the problem and
in a point of desperation I put a Try..Catch in the InitializeComponents
routine of the form. You can't view a form with that in there, but it does
compile and it gave me the tiny bit of insight that I needed. I thought .net
was supposed to resolve all of our DLL troubles! I found this more
mysterious than dealing with an out of version DLL. Anyway, I'm still not
sure how to resolve this so that it compiles and uses the AXPolarZipLight
reference rather than the other. Any one run across this? Thanks for all
Re: Application Error when starting Sam Santiago
10/22/2004 1:30:04 PM
I have seen similar behavior if you are using integrated SourceSafe with
VStudio. Someone removes a reference, but somehow after another developer
checks in the project the reference is re-established. You might want to
simply load your project file into Notepad and examine the references that
way. The project file is simply an XML file, so it's not a problem to view
that way. I have deleted references via Notepad in the past with no
problems.

Thanks,

Sam

--
_______________________________
Sam Santiago
ssantiago@n0spam-SoftiTechture.com
http://www.SoftiTechture.com
_______________________________
[quoted text, click to view]

Re: Application Error when starting LisaConsult
10/25/2004 7:23:06 AM
However, I guess my question is, how can I get my machined to set up the
reference the same with AXPolarZipLight so that I can compile it properly?
Why do they come in differently on different machines? Is there some
setting? Is it the difference between versions of Visual Studio?

[quoted text, click to view]
Re: Application Error when starting lukezhan NO[at]SPAM online.microsoft.com
10/26/2004 3:01:39 AM
Is AXPolarZipLight also a project from your team? I suggest you may strong
name it. And then remove the reference and add again. Such a problem may be
related to that you have multiple version of AXPolarZipLight.

Luke
Re: Application Error when starting LisaConsult
11/2/2004 9:03:03 AM
No, PolarZipLight is a 3rd Party DLL. We all installed it from the same
install program. The file is a COM DLL originally used in VB6. We are using
different versions of VS.NET (one is enterprise, one is just VB.NET
standard). You see, I believe there is something in the import of a Com
Object into the project through VS.NET that must be different since by
default one comes in as AX, the other as Interop. Until I get a resolution,
I'm including both DLLs in the build, but this really is not a long term
solution. Thanks.

[quoted text, click to view]
Re: Application Error when starting lukezhan NO[at]SPAM online.microsoft.com
11/3/2004 7:10:41 AM
It seems a COM registry issue. When adding COM component in VS.NET, it will
create the interop assembly and namespace based on the COM registry
information. I am not sure if this is caused by that there are different
registry information on the two computers. I suggest you may remove both of
the two references and add again. Anyway, leave just two same references as
they are being now won't cause problems.

Luke

AddThis Social Bookmark Button