473,396 Members | 1,998 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,396 software developers and data experts.

Running .NET assembly from a network share

MF
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 !
Nov 22 '05 #1
2 2538
Why not create a setup project to adjust the settings for you?
"MF" <an*******@discussions.microsoft.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 !

Nov 22 '05 #2
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...
Nov 22 '05 #3

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

Similar topics

2
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...
2
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.
1
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...
2
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...
11
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...
4
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...
2
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...
4
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...
1
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...
5
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...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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,...
0
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,...

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.