473,466 Members | 1,402 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Application won't launch from network

Hi everyone,

I have two small applications I have written that I am trying run from a
network directory. Both applications have a dependency on another assembly
(.dll), and I have .NET security wide open. One application is dependent on
an interop assembly (Interop.IWshRuntimeLibrary.dll), and it works fine. The
other application depends on three assemblies that I have written, and
although the executable starts successfully, as soon as any one of the
dependent assemblies attempt to load, I get the following error:

"Application has generated an exception that could not be handled."

Both applications work great when launched from my local drive (Windows
2000). Any help would be great.

Thanks,
Bob L.
Nov 22 '05 #1
5 2683
Maybe the framework is throwing a SecurityException
(System.Security.SecurityException)? I think this is due to the code access
security feature in .NET.

"Bob L." <no**********@libertyfamily.net> wrote in message
news:OG**************@TK2MSFTNGP14.phx.gbl...
Hi everyone,

I have two small applications I have written that I am trying run from a
network directory. Both applications have a dependency on another assembly
(.dll), and I have .NET security wide open. One application is dependent on an interop assembly (Interop.IWshRuntimeLibrary.dll), and it works fine. The other application depends on three assemblies that I have written, and
although the executable starts successfully, as soon as any one of the
dependent assemblies attempt to load, I get the following error:

"Application has generated an exception that could not be handled."

Both applications work great when launched from my local drive (Windows
2000). Any help would be great.

Thanks,
Bob L.

Nov 22 '05 #2
I'm a little dubious of security being the culprit, for three reasons:

1) I have opened up absolutely every security option that .NET allows.
2) One app works and the other does not. If security was an issue, I would
think that both apps would fail.
3) The error message says that it is an exception that can not be handled,
while security exceptions are able to be handled

"Prasanna Padmanabhan" <pr*******@citrixnospamtolerated.com> wrote in
message news:ey**************@TK2MSFTNGP10.phx.gbl...
Maybe the framework is throwing a SecurityException
(System.Security.SecurityException)? I think this is due to the code access security feature in .NET.

"Bob L." <no**********@libertyfamily.net> wrote in message
news:OG**************@TK2MSFTNGP14.phx.gbl...
Hi everyone,

I have two small applications I have written that I am trying run from a
network directory. Both applications have a dependency on another assembly (.dll), and I have .NET security wide open. One application is dependent

on
an interop assembly (Interop.IWshRuntimeLibrary.dll), and it works fine.

The
other application depends on three assemblies that I have written, and
although the executable starts successfully, as soon as any one of the
dependent assemblies attempt to load, I get the following error:

"Application has generated an exception that could not be handled."

Both applications work great when launched from my local drive (Windows
2000). Any help would be great.

Thanks,
Bob L.


Nov 22 '05 #3
This is most often caused because the system cannot find the dll that it
expects to call.

When you are running your app from the network, are all of the dependent
DLLs either in the GAC or in the directory where the executable are located,
or do some of your dependencies live on the hard drive?

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Bob L." <no**********@libertyfamily.net> wrote in message
news:OG**************@TK2MSFTNGP14.phx.gbl...
Hi everyone,

I have two small applications I have written that I am trying run from a
network directory. Both applications have a dependency on another assembly
(.dll), and I have .NET security wide open. One application is dependent
on
an interop assembly (Interop.IWshRuntimeLibrary.dll), and it works fine.
The
other application depends on three assemblies that I have written, and
although the executable starts successfully, as soon as any one of the
dependent assemblies attempt to load, I get the following error:

"Application has generated an exception that could not be handled."

Both applications work great when launched from my local drive (Windows
2000). Any help would be great.

Thanks,
Bob L.

Nov 22 '05 #4
I think you have security issue there. Check if >net allows you to launch
from your network location

HTH
Alex

"Nick Malik [Microsoft]" <ni*******@hotmail.nospam.com> wrote in message
news:ZI********************@comcast.com...
This is most often caused because the system cannot find the dll that it
expects to call.

When you are running your app from the network, are all of the dependent
DLLs either in the GAC or in the directory where the executable are located, or do some of your dependencies live on the hard drive?

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Bob L." <no**********@libertyfamily.net> wrote in message
news:OG**************@TK2MSFTNGP14.phx.gbl...
Hi everyone,

I have two small applications I have written that I am trying run from a
network directory. Both applications have a dependency on another assembly (.dll), and I have .NET security wide open. One application is dependent
on
an interop assembly (Interop.IWshRuntimeLibrary.dll), and it works fine.
The
other application depends on three assemblies that I have written, and
although the executable starts successfully, as soon as any one of the
dependent assemblies attempt to load, I get the following error:

"Application has generated an exception that could not be handled."

Both applications work great when launched from my local drive (Windows
2000). Any help would be great.

Thanks,
Bob L.


Nov 22 '05 #5
Everything is in the same folder (no GAC), but I did find a clue - If I
don't use strong names, everything works great off the network. As soon as I
recompile using strong names, it blows up with a security error, even though
my security settings are set to "Grant assemblies unrestricted access to all
security permissions". I am testing the URL membership condition using the
syntax file://server/folder/*.

This problem is extremely easy to reproduce by just creating an executable
with one button that makes a call to a DLL. If the DLL has a strong name,
it's toast.

- Bob

"Nick Malik [Microsoft]" <ni*******@hotmail.nospam.com> wrote in message
news:ZI********************@comcast.com...
This is most often caused because the system cannot find the dll that it
expects to call.

When you are running your app from the network, are all of the dependent
DLLs either in the GAC or in the directory where the executable are located, or do some of your dependencies live on the hard drive?

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Bob L." <no**********@libertyfamily.net> wrote in message
news:OG**************@TK2MSFTNGP14.phx.gbl...
Hi everyone,

I have two small applications I have written that I am trying run from a
network directory. Both applications have a dependency on another assembly (.dll), and I have .NET security wide open. One application is dependent
on
an interop assembly (Interop.IWshRuntimeLibrary.dll), and it works fine.
The
other application depends on three assemblies that I have written, and
although the executable starts successfully, as soon as any one of the
dependent assemblies attempt to load, I get the following error:

"Application has generated an exception that could not be handled."

Both applications work great when launched from my local drive (Windows
2000). Any help would be great.

Thanks,
Bob L.


Nov 22 '05 #6

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

Similar topics

3
by: Scott | last post by:
I have been told that the only way to develop an ASP.NET application is to do it on the localhost, and then just copy the files out to the web server that will be hosting. Is this true? ...
5
by: Bob L. | last post by:
Hi everyone, I have two small applications I have written that I am trying run from a network directory. Both applications have a dependency on another assembly (.dll), and I have .NET security...
32
by: Hank | last post by:
Hello, Five years of development has us using a very large database (a couple hundred screens) in one location, which is very managable. Now our company will be expanding to several distant...
1
by: Michael Howes | last post by:
I have a c# windows form that talks to a web service on a server that then can talk to multiple "agents" on different machines using web service calls. I want to be able to launch an application...
8
by: Pete Wittig | last post by:
Hello, I am wondering if it is possible to create a networked application with C# that is seen as a windows user. For example, if Bob logged onto windows and then started the application, any...
8
by: mike2036 | last post by:
I have an application (that has unmanaged code) and when I launch it without 'FullTrust' permissions (LocalIntranet_Zone), it crashes. When I set 'FullTrust' permissions, it launches fine. Is...
6
by: Steve4D | last post by:
With an ASP.NET application, I try to run an external program (like EXE, BAT) with a logon of an another user. I use CreateProcessWithLogonW from API "advapi32.dll" . When my ASP.NET application...
2
by: Buck | last post by:
I have an application that is using impersonation and when I try to launch an executable, the executable is started with the NetworkService account used in the Application Pool identity. My...
4
by: Peter Nimmo | last post by:
Hi, I am writting a windows application that I want to be able to act as if it where a Console application in certain circumstances, such as error logging. Whilst I have nearly got it, it...
0
by: vol30w60 | last post by:
Hi folks, I am having a problem using PHP to launch an application on the server. All the basics work, but I cannot launch more than 4 instances of the application. This application functions as...
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
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
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.