I'm trying to get a Windows Forms application to work on an intranet (not
including my dev. comp.) It gives me the "unhandled exception error" so I
found an article about strong names. I'm still lacking the basic knowledge of
what's goig on when an application runs.
First of all, does the server on which the application exists have to have
the Framework installed or does the application run on the client machines?
(What happens when they doubleclick the exe-file on the network share?)
Once I copied the Strong name assemblies to the server I'm supposed to
configure CAS Policy with custom code group, using Mscorcfg.msc. Where do I
do that? On the Server or the Client machines?
Thanks
/Miro
Saurabh Nandu - 03 Oct 2004 03:23 GMT
Hi Miro,
You are probablly getting an Unhandled Security Exception since by default
the Framework policies do not allow code to execute from the network.
Now you will need the .NET Framework installed on all the *client* machines
that are going to call the application.
In order for Code Access Security to work on the client machines, you need
to give your assembly strong name so that you can setup a policy to trust the
assembly from the network.
Now on each *client* you will have to configure the Code Access Policy from
mscorcfg.msc. You can go to the Runtime Security Policy node and then click
on the "Increase Assembly Trust" link to start the Wizard that will guide you
to increase trust for your application.