"Partially Trusted Context"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • john bailo

    #1

    "Partially Trusted Context"


    I wrote a c# program that does some file manipulation on
    a remote server. Testing it from my workstation, it ran
    fine.

    When I copied it to another server, and ran it from
    there, on load, it threw a balloon message:

    "This application is running in a partially
    trusted context. Some functionality in
    the application may be disabled due to
    security restrictions."

    What is the answer to this?



  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: "Partia lly Trusted Context"

    John,

    The reason for this is that .NET doesn't fully trust assemblies that are
    located on another machine. In order to get around this, you will have to
    go to the .NET framework configuration tool and set up the assemblies so
    that they are given the appropriate rights. You will have to strong-name
    the assemblies, so that you can identify them in the configuration tool.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - nick(dot)paldin o=at=exisconsul ting<dot>com

    "john bailo" <jbailo@vestcom .com> wrote in message
    news:fa850f889b ee8be63bfa30081 9add671@news.te ranews.com...[color=blue]
    >
    > I wrote a c# program that does some file manipulation on
    > a remote server. Testing it from my workstation, it ran
    > fine.
    >
    > When I copied it to another server, and ran it from
    > there, on load, it threw a balloon message:
    >
    > "This application is running in a partially
    > trusted context. Some functionality in
    > the application may be disabled due to
    > security restrictions."
    >
    > What is the answer to this?
    >
    >
    >[/color]


    Comment

    Working...