By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,066 Members | 1,625 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,066 IT Pros & Developers. It's quick & easy.

.NET exception

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
* 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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.