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

.NET exception

I have 3 applications written in VB.NET or C# that will not run on
target machines in our company but run fine on my development PC. The
error I get says the application has generated an exception that can't
be handled, and gives process and thread ID's.

Target machines all have .NET Framework 1.03715. Is it possible that a
higher level is needed? If so, is there .NET upgrade on the Visual
Studio CD's, because these machines don't have web access.

Thanks
Nov 20 '05 #1
3 1062
* Dave Cullen <no*****@mail.com> scripsit:
I have 3 applications written in VB.NET or C# that will not run on
target machines in our company but run fine on my development PC. The
error I get says the application has generated an exception that can't
be handled, and gives process and thread ID's.

Target machines all have .NET Framework 1.03715. Is it possible that a


What version of VS.NET do you use to compile your application?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
<URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 20 '05 #2
If you created the setup via Visual Studio .NET, you can include the .NET
Framework to be installed with your application. It will install the
correct version needed by your application to run properly. Check out
http://msdn.microsoft.com/vstudio/do.../bootstrapper/ for more
details on including dotnetfix into your setup project.

-Jason

"Dave Cullen" <no*****@mail.com> wrote in message
news:41***************@mail.com...
I have 3 applications written in VB.NET or C# that will not run on
target machines in our company but run fine on my development PC. The
error I get says the application has generated an exception that can't
be handled, and gives process and thread ID's.

Target machines all have .NET Framework 1.03715. Is it possible that a
higher level is needed? If so, is there .NET upgrade on the Visual
Studio CD's, because these machines don't have web access.

Thanks

Nov 20 '05 #3
JMW
If you have access to the source code it would be safer to sign them with a strong name and give only assemblies signed with that strong name permissions to run. You have not given a hacker a potientally compromised machine as long as you keep your snk file safe.

If you give permissions to the folder someone could drop any .net assembly, no matter how destructive, into that folder and run it.

jason.

"Mike Caputo" wrote:
"Dave Cullen" wrote:
I have 3 applications written in VB.NET or C# that will not run on
target machines in our company but run fine on my development PC. The
error I get says the application has generated an exception that can't
be handled, and gives process and thread ID's.

Target machines all have .NET Framework 1.03715. Is it possible that a
higher level is needed? If so, is there .NET upgrade on the Visual
Studio CD's, because these machines don't have web access.

Thanks


I ran into a similar problem before, and it sounds like this might have the same cause as mine. Try setting the code permissions in .NET Framework Configuration (under Administrative Tools). If you want to just try it quickly, set the permissions for All_Code Code Group under Runtime Security Policy --> Enterprise to Full Trust. That way, any code can execute. If that works, then you should probably set up specific directories which will receive full trust just to be safe.

Nov 20 '05 #4

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

Similar topics

4
by: Nicolas Fleury | last post by:
Hi, I've made a small utility to re-raise an exception with the same stack as before with additional information in it. Since I want to keep the same exception type and that some types have very...
1
by: Old Wolf | last post by:
1. What is the difference between #include <stdexcept> and #include <exception> ? 2. Is there a list somewhere of what each standard exception is used for? either to throw them, or throw...
11
by: Master of C++ | last post by:
Hi, I am writing a simulation package in C++, and so far I've written about 8000 lines of code and have about 30 classes. I haven't used C++ exceptions so far (for various reasons). The only two...
4
by: maricel | last post by:
I have the following base table structure - DDL: CREATE TABLE "ADMINISTRATOR"."T1" ( "C1" INTEGER NOT NULL ) IN "TEST_TS" ; ALTER TABLE "ADMINISTRATOR"."T1" ADD PRIMARY KEY
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...
40
by: Kevin Yu | last post by:
is it a bad programming design to throw exception in the try block then catch it??
6
by: Vadivel Kumar | last post by:
I've a problem in handling a custom exception The following is my custom exception class: public class AppException : public Exception { public AppException (string message, Exception...
3
by: JohnDeHope3 | last post by:
First let me say that I understand that Asp.Net wraps my exception in an HttpUnhandledException. I have found a lot of discussion about that on the web, which was informative, but not helpful. Let...
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...
2
by: Darko Miletic | last post by:
Recently I wrote a dll in c++ and to simplify the distribution I decided to link with multithreaded static library (/MT or /MTd option). In debug everything works fine but in release I get this: ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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...

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.