|
ms
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Security Exception?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? 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. -- Show quoteHide quote- Nicholas Paldino [.NET/C# MVP] - mvp@spam.guard.caspershouse.com "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? 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. > > 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: >
implicit types in C# 3.0, what is the usefulness of them?
Amazing LINQ for .Net decimal numbers c# and sql server What does extending a class mean? Create object with dynamically generated name ? What is the @ at symbol for? Turning a datetime object to string Basic Datagrid Code How to change size of PictureBox from code ? How do I reference a ListView Control? |
|||||||||||||||||||||||