473,408 Members | 2,477 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,408 software developers and data experts.

Exception error when trying to run an application on non-development machine

Hi

I have developed an application that access an SQL database and installed it on a different machine

The installation is successful but when I try to run the application I get the following error

Application has generated an exception that could not be handled

Process id = 0x610 (1552), Thread id=0x1d0(464)

Click OK to terminate the applicatio
Click CANCEL to debug the application

As the installation machine does not have visual studio.net installed on it I cannot debug the application so am only able to click on OK to terminate the application. I can successfully install and run the application on the development machine (outside the visual studio.net environment) so can't replicate this error. Previously the application installed and opened correctly on the non-development machine (although I am expecting an error when trying to actually update the SQL database with the application).

I cannot see any changes in the code between the successful installation and opening of the application and the subsequent failures. Is there anyway that I can force this error to occur on the development machine or is there any idea where I can put some MessageBox displays to help find where this error occurs on the non-development machine? I have a MessageBox just after the InitialiseCompenent function call at the start of the application and it gets past this but then stops with this error.

Sorry to be so long winded but I am new to dotnet. programming and would appreciate any help

Thanks

debbie
Jul 21 '05 #1
2 2187
We have a programmer at our company that is experiencing the same exact problem. What we have found is that their is a missing dll or ocx that you are not including in your deployment package. We used to use a tool called a dependency walker that allows you to find what components are missing. Perhaps you might want to try a shot gun approach. Include more than you know is necessary to perhaps include the missing component. Also you can do DLL compare against your machine and the client machine. This would at least give you a place to start. If you find what is missing please let us know. We are in the same stage of research as it sounds that you are.

One of our most previlent errors is on trusting assemblies, ie full trust in the .Net framework intranet settings. But this one does not seem to point to that type of issue.

************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
Jul 21 '05 #2
Hi Debbie
I came across your problem description when I was searching for help on the same problem. Selfishly, I am hoping you have found a solution so you can pass it on to me.
In my case, the problem occurs in an application that has aleady sold to thousands of happy users. Only a handful of users get the problem when they try to fire up the app. Our app doesn't use SQL Server. The only external processer it does access is Internet Explorer as an ActiveX control. Our difficulty is that we cannot persuade any of the affected users to help us to isolate the fault, so debugging is an impossibility. Somewhere in the bowels of the .NET framework the app is prevented from usind a dll, either because it is not there, or the permissions are wrong. This must be connected with the particular configuration that the affected users have. It is not peculiar to any one operating system. That's about all I know, but it might help. Terence

************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
Jul 21 '05 #3

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

Similar topics

2
by: Chris Herring | last post by:
Hi there: Well, let me start off by saying that I am a Visual Studio drag and drop weenie, not a real programmer. So I tend to get confused when things do not look like the instructions said they...
3
by: Professor Frink | last post by:
First off, I apologize if this gets long. I'm simply trying to give you all enough information to help me out. I'm writing (almost finished, actually), my first VB.Net application. It's a forms...
44
by: craig | last post by:
I am wondering if there are some best practices for determining a strategy for using try/catch blocks within an application. My current thoughts are: 1. The code the initiates any high-level...
4
by: Craig831 | last post by:
First off, I apologize if this gets long. I'm simply trying to give you all enough information to help me out. I'm writing (almost finished, actually), my first VB.Net application. It's a forms...
7
by: Chuck Hartman | last post by:
I have a Windows service that requests web pages from a site using an HttpWebRequest object. When I try to request a page from an ASP.NET 2 site, I get a WebException with message "The remote...
7
by: ZorpiedoMan | last post by:
Well, I'm still wondering around in the "land of the lost exception"... It seems that controls that are bound to a class and the class throws an error in the SET method of the bound member, the...
9
by: Ron | last post by:
my application is throwing an exception error when closing if I run a procedure in the app. I can't even trap the error with try/catch ex As Exception. Is there a way to completely shut down the...
7
by: Sek | last post by:
Hi Folks! I was pondering over a code and noticed that exception handlers were present in the private, protected as well as public methods. And, ofcourse, public methods were calling priv/prot...
9
by: Frawls | last post by:
Hi I Am am having problems with a stored Procedure that i wrote. Basically whats happening is that the Stored procedure Runs fine when i EXECUTE it in SQL Query analyzer. But when i debug...
6
by: Steve | last post by:
Hi All I have a windows forms Application (SAM) in vb.net 2008 using .net framework V2 One and only one customer out of 30 customers is getting errors daily where they have to close and...
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:
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...
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,...
0
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...
0
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...
0
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...

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.