Compiled app failing in InitializeComponent

I have created a WinForms application that runs fine in Debug mode, but when I deploy it to a server, it fails when it executes InitializeComponent while loading its first form. How do you debug something like this?
[215 byte] By [markbaran] at [2007-12-24]
# 1
What's the exception that you get?
TimothyNgMSFT at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 2

It's very helpful:

Err.Number = 5

Err.Description = Request Failed

markbaran at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 3
That doesn't say much, unfortunately. Is there an exception that is thrown? Can you capture that? Chances are that if it fails while deployed to the server, some necessary component is not installed and this, the application cannot start.
TimothyNgMSFT at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 4
Have you signed the assembly?
weirdbeardmt at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 5
Can you post a stack trace of the failure?
JaredParsonsMSFT at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 6

Is the .NET framework installed on the server ?

spotty at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 7

if the .NET Framework is not installed on the server, the application wouldn't run at all (AFAIK). Perhaps some UI Component is not fully supported on a particular OS? (it can happen but do not quote me)

what OS is this server you are running the application on?

how are you deploying it?

As suggested, if you can, post the stack trace - would give us more help (hopefully)

ahmedilyas at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 8

Winforms?

Err.Number and Err.Description are not VB.Net errors

They are VBA, VB, or VB.Script style errors I believe.

So this error is probably comming from a VB based Com object that the application is attempting to initialize.

Thats my guess anyway.

Ibrahim

IbrahimY at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...