caspol, mscorcfg.msc and trusting applications on a network share

by Terry 4/22/2008 12:50:00 PM

I finished coding data publisher I started last week. That works smoothly, except the annoying hoops to try and register the application with .NET 2.0 caspol.exe. I am not sure why, but that command line utility is completely counter-intuitive. I had partial success with it, provided the application is running in the context of a local server administrator. I need my application to run with a limited-access domain service account, which I have completely verified has all the correct rights.

I am trying to grant FullTrust to an application that lives on a file share (UNC path). I used caspol.exe to register the application, which worked for the administrative account when running the application, but did not work with the service account. I so far found these links, Using CasPol to Fully Trust a Share and Code Access Security Policy Tool, to be my best reference so far. Neither was completely helpful and I resorted to installing the .Net 2.0 Framework SDK to get the full suite of GUI tools. I ran mscorcfg.msc on my development server, now found under Administrative Tools, configured the application with the GUI and all is now well.

Unfortunately, I do not want to install the framework SDK on my Acceptance Test and Production servers. I am hoping I can use the GUI to figure out what settings to use with caspol.exe. So far, I have had little luck. Time pressures being what they are, I will likely install the SDK on the servers and use the GUI tools.

Currently rated 2.0 by 1 people

  • Currently 2/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

Powered by BlogEngine.NET
Theme by Mads Kristensen

About Terry Losansky

Terry Dee Losansky

I am a software architect, actively practice and teach martial arts and live in Snoqualmie, Washington. I have an amazing daughter who is the jewel of my life.

E-mail me Send mail
Terry's Facebook profile


<<  August 2021  >>

View posts in large calendar

Recent comments



The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2021

Sign in