Home All Groups Group Topic Archive Search About
Author
14 Sep 2005 6:21 PM
pnp
I have developed an app in C# that I'm trying to deploy in an intranet.
I would like the app to be installed in a server and to be run from a
shortcut from a client machine.
The problem is that while from the .NET wizard I set the security for
everything in the network to full, an error message occurs indecating
that the Application.ExecutablePath produced an error of type
System.Permission.FileIO ...

How can I overcome this?

Author
14 Sep 2005 6:47 PM
Nicholas Paldino [.NET/C# MVP]
pnp,

    Instead of setting the network security to full trust, I would generate
the permission based on the strong name (if you are strong naming the
assembly) or a hash (if it doesn't get recompiled often), or place the
network location in the trusted sites for IE (.NET should pick this up and
give it full trust as a result).

    This should solve your problem.

    Hope this helps.


--
          - Nicholas Paldino [.NET/C# MVP]
          - mvp@spam.guard.caspershouse.com

Show quoteHide quote
"pnp" <pnpNOSPAM@softlab.ntua.gr> wrote in message
news:ekBCnkVuFHA.2504@tk2msftngp13.phx.gbl...
>I have developed an app in C# that I'm trying to deploy in an intranet. I
>would like the app to be installed in a server and to be run from a
>shortcut from a client machine.
> The problem is that while from the .NET wizard I set the security for
> everything in the network to full, an error message occurs indecating that
> the Application.ExecutablePath produced an error of type
> System.Permission.FileIO ...
>
> How can I overcome this?
Are all your drivers up to date? click for free checkup

Author
15 Sep 2005 9:31 AM
pnp
The problem still remains, and i get a UIPermissions error... Is there
anything else I can do? This is very frustrating?


Nicholas Paldino [.NET/C# MVP] wrote:
Show quoteHide quote
> pnp,
>
>     Instead of setting the network security to full trust, I would generate
> the permission based on the strong name (if you are strong naming the
> assembly) or a hash (if it doesn't get recompiled often), or place the
> network location in the trusted sites for IE (.NET should pick this up and
> give it full trust as a result).
>
>     This should solve your problem.
>
>     Hope this helps.
>
>
Author
15 Sep 2005 1:41 PM
pnp
I read that I need to set up a strong name for them.
http://blogs.gotdotnet.com/shawnfa/PermaLink.aspx/40884dc9-dbb7-48e7-a70f-5f1f4627410c


Isn't there an easier way?

pnp wrote:
Show quoteHide quote
> The problem still remains, and i get a UIPermissions error... Is there
> anything else I can do? This is very frustrating?
>
>
> Nicholas Paldino [.NET/C# MVP] wrote:
>



Post Thread options