?
Solved

.NET Security

Posted on 2005-04-28
4
Medium Priority
?
293 Views
Last Modified: 2010-12-13
How to Configure the Code Access Security Policy for .NET

 

 

All .NET Applications run on the local machine with no problem as this is the default setting.

 

However, such is not the case with .NET Applications placed on the Intranet shares.  Attempting to do so will result in Security Exceptions being raised when these applications are run.

 

To get rid of this problem do the following:

 

1)      Under Control Panel double-click on Administrative Tools.

2)      In Administrative Tools double-click on Microsoft .NET Framework 1.1 Configuration.

3)      Once this program opens click on the link for Configure Code Access Security Policy.

4)      On the next screen click Adjust Zone Security.

5)      Make changes to This Computer.

6)      Click on the icon for Local Intranet.

7)      Move the Trust Level to Full Trust and click Next…then Next again…then Finish.

 

Applications places on the Intranet should now run without having Security Exceptions raised.



============================================



Is there a better way to be handling this?


Can issues like this be configured or resolved during the INSTALL?

0
Comment
Question by:Tom Knowlton
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
jaynus earned 800 total points
ID: 13887660
Yes this can be configured during the Install.

The way you do this is you take a fresh computer with default Code Policy rules.

Follow the instructions above, exception on the 'Enterprise' section rather than the computer.

Once the above you listed is done, save it etc etc and now. WIthin the .NET Configuration window do the following:

-  Right Click on the 'Runtime Security Policy' object

- Select 'Create Deployment Package'

- Make sure enterprise is selected, and select a name for your package and click next and finish.

-----------------------------------

Now you have a .msi installer package that will propigate your Security policy to any machine it is run on.  You can *EASILY* deploy this package via the Active Directory Application Deployment (2k or 2k3), or you can do it with a start script or system-to-system.

Needless to say, this is how you propigate global assembly cache and runtime trusts throughout a large enterprise network.  You can do that for runtime trusts, global assembly cache settings, etc.  And it is all with a .msi package you can silently install, via the domain or with other applications if you wish.

Hope that helps!!!

-jaynus
0
 
LVL 5

Author Comment

by:Tom Knowlton
ID: 13888377
How interesting!!!!!
0
 
LVL 5

Author Comment

by:Tom Knowlton
ID: 13888386
I added a few more points for your trouble!
0
 
LVL 4

Expert Comment

by:jaynus
ID: 13888437
Glad I could help :)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question