473,324 Members | 2,179 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,324 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 2537
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.