Running .NET assembly from a network share

M

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 !
 
C

coholik

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/247reference/System/Security/Permissions/SecurityPermission.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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top