473,230 Members | 4,187 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,230 software developers and data experts.

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


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


Jul 21 '05 #1
2 2174
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

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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

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.