Connecting Tech Pros Worldwide Forums | Help | Site Map

"Partially Trusted Context"

john bailo
Guest
 
Posts: n/a
#1: Jul 21 '05

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?



Eddie
Guest
 
Posts: n/a
#2: Jul 21 '05

re: "Partially Trusted Context"


Use the Framework configuration wizard to modify the
trust level for the Program/assembly..
Just assign it a higher trust level..

HTH
Eddie de bear[color=blue]
>-----Original Message-----
>
>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]
john bailo
Guest
 
Posts: n/a
#3: Jul 21 '05

re: "Partially Trusted Context"


perfect, thanks.

i got to the point of adding my .exe to the framework in the .NET
Configuration Tool, but when I right clicked on it, I didn't see
a 'security' property.

then used "Runtime Security Policy" and selected my *.exe and
increased it's security.

i guess i never thought of my little exe as an 'assembly' :D




"Eddie" <blah@blah.blah.com> wrote in message
news:08b401c38ecb$29a154d0$a301280a@phx.gbl...[color=blue]
> Use the Framework configuration wizard to modify the
> trust level for the Program/assembly..
> Just assign it a higher trust level..
>
> HTH
> Eddie de bear[color=green]
> >-----Original Message-----
> >
> >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][/color]


Nicholas Paldino [.NET/C# MVP]
Guest
 
Posts: n/a
#4: Jul 21 '05

re: "Partially 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)paldino=at=exisconsulting<dot>com

"john bailo" <jbailo@vestcom.com> wrote in message
news:fa850f889bee8be63bfa300819add671@news.teranew s.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]


Nicholas Paldino [.NET/C# MVP]
Guest
 
Posts: n/a
#5: Jul 21 '05

re: "Partially 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)paldino=at=exisconsulting<dot>com

"john bailo" <jbailo@vestcom.com> wrote in message
news:fa850f889bee8be63bfa300819add671@news.teranew s.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]


Closed Thread