In visual basic 6 I can write an application and toss it
up on a shared network drive for the company to access.
Works like a champ.
In .NET my C# application runs fine on anyones machine,
but due to the integrated security model of .NET, bombs
out with Security Exceptions when someone tries to run it
off the network drive.
Sure, I can go to the users PC, and via the control panel,
add the assembly and set the trust. Which is acceptable.
What is NOT acceptable is the fact that would have to do
this with 5,000 users across the country who have access
to the shared drive and application.
Can someone please describe some way my C# application can
behave like my VB6 application from a network drive
without having to go to 5,000 PC's and configuring them
for that application ?
I have gone over the .NET security model many times and am
ready to rewrite the app in VB6 because quite honestly the
lack of information on this in the Microsoft KB (which I
have unsuccessfully scoured) is depressing.
Searching with Google I see people have "solved" the
problem by just copying the file off the network share and
running it on thier local PC - which in my case - is not
an option. I hope i'm missing something painfully easy and
obvious here.
Thanks in advance for any advice you could give me. I'd
hate to have to go back to VB6 to end these Security
Exception nightmares.
Thanks ! 2 2555
Why not create a setup project to adjust the settings for you?
"MF" <an*******@disc ussions.microso ft.com> wrote in message
news:00******** *************** *****@phx.gbl.. . In visual basic 6 I can write an application and toss it up on a shared network drive for the company to access. Works like a champ.
In .NET my C# application runs fine on anyones machine, but due to the integrated security model of .NET, bombs out with Security Exceptions when someone tries to run it off the network drive.
Sure, I can go to the users PC, and via the control panel, add the assembly and set the trust. Which is acceptable. What is NOT acceptable is the fact that would have to do this with 5,000 users across the country who have access to the shared drive and application.
Can someone please describe some way my C# application can behave like my VB6 application from a network drive without having to go to 5,000 PC's and configuring them for that application ?
I have gone over the .NET security model many times and am ready to rewrite the app in VB6 because quite honestly the lack of information on this in the Microsoft KB (which I have unsuccessfully scoured) is depressing.
Searching with Google I see people have "solved" the problem by just copying the file off the network share and running it on thier local PC - which in my case - is not an option. I hope i'm missing something painfully easy and obvious here.
Thanks in advance for any advice you could give me. I'd hate to have to go back to VB6 to end these Security Exception nightmares.
Thanks !
I have the same problem. If you get an answer, please feel free to email me about it. In the meantime, I'm looking at this link to see if there are any other suggestions: http://www.dotnet247.com/247referenc...ssion.aspx?v=2
There seems to be quite a few network security related threads there.
*************** *************** *************** *************** **********
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources... This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: MF |
last post by:
In visual basic 6 I can write an application and toss it
up on a shared network drive for the company to access.
Works like a champ.
In .NET my C# application runs fine on anyones machine,
but due to the integrated security model of .NET, bombs
out with Security Exceptions when someone tries to run it
off the network drive.
Sure, I can go to the users PC, and via the control panel,
|
by: David Lindgren |
last post by:
Hello!
When I am trying to run my .NET application from a network drive a
System.Security.SecurityException exception is thrown. Why is that? How do I
prevent it?
Thanks!
/David.
|
by: Valéry |
last post by:
I am currently developing an application, which receives
Assembly objects from the network. I would like to load
these assemblies dynamically in the application.
I looked the informations about the Load and
LoadWithPartialName methods. If I have well understood,
these methods look first in the application directory for
the assembly and then in the GAC.
So I suppose in order to load my assemblies, I first have
to save them to...
|
by: flat_ross |
last post by:
Hi,
I am in a shop where developers are required to work off of a network
share. This is so that code is backed up nightly.
So I am testing running an ASP.NET Web application with a Class
assembly all on a shared drive.
I have the solution working perfectly. However, I have run into a
hiccup. In order to map IIS Virtual Dir to a network drive, you need
|
by: ASP.NET User |
last post by:
Hi
I am in a shop where developers are required to work off of a networ
share. This is so that code and other documentation is backed up nightly. This is outside the realm of Visual SourceSafe which we also use for code control. The network drive is used as the working folder. This is a configuration this shop has used for 6 years and I do not see it changing any time soon
So I am testing running an ASP.NET Web application with a Clas...
| |
by: Derek Martin |
last post by:
Good morning everyone! I have FINALLY finished my crazy go nuts 80,000 line
custom built app and am getting ready to do some testing and have already
run into a little problem. The app needs to be run from a share, not
locally and when attempting to do that, I get this neat message:
System.Security.SecurityException
What does one need to do to permit this type of activity?
Thanks!
Derek
|
by: Andy |
last post by:
Hi all,
I have a project which references a DLL on a network share. The dll on
the network share is one built by our integration server and I have the
source code for it.
I'm trying to debug a problem that arises in the current project, and
I'd like to be able to step into code from the assembly on the network
share, but I can't figure out how to get the debugger to load the pdb
for the assembly.
|
by: Jeremy S. |
last post by:
We're in the process of writing a new Windows Forms app and the desktop
support folks want for it to be run from a network share. I know it's
possible (i.e., just have the framework on the clients and a desktop
shortcut to the exe out on the network)... but is it really a good idea?
What are some arguments for and against running a .NET Windows Forms client
from a network share? Here is my initial list... I'd appreciate any
additions,...
|
by: utpal |
last post by:
Hi,
My CSharp program, when I run from the local drive it can create/modify
registry. However running the program from a network drive, gives
RegistryPremission error. I don't belive that just by running the program
from a network drive, the program will try to access the registry of the
network machine. Here is the code snippet:
RegistryKey rk =...
|
by: Shawn |
last post by:
I have a .net 1.1 app that runs from a network share. I signed it and can
add a machine policy to my computers and it runs fine, but I really need to
use a user policy to allow the app to run. I set the user policy the same as
the machine policy, but it fails to allow the app to run in Full Trust. Do I
need to sign the exe in a certain way? I can't find an answer out there.
Here is my AssemblyInfo.vb file...
Imports System.Reflection...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |