473,386 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Security Exception?

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?
Nov 17 '05 #1
3 2411
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]
- mv*@spam.guard.caspershouse.com

"pnp" <pn*******@softlab.ntua.gr> wrote in message
news:ek**************@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?

Nov 17 '05 #2
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:
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.

Nov 17 '05 #3
pnp
I read that I need to set up a strong name for them.
http://blogs.gotdotnet.com/shawnfa/P...f-5f1f4627410c
Isn't there an easier way?

pnp wrote:
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:

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: James B | last post by:
OMA (Outlook Mobile Access) under Exchange is giving me a System.Security.SecurityException error. From what I gather this is a problem with the security level under which the OMA application is...
0
by: James B | last post by:
OMA (Outlook Mobile Access) under Exchange is giving me a System.Security.SecurityException error. From what I gather this is a problem with the security level under which the OMA application is...
3
by: Chua Wen Ching | last post by:
Hi there, I had applied this security permissions in my class library based on fxcop standards. Before namespace: using System.Runtime.InteropServices; using System.Security.Permissions;
19
by: Diego F. | last post by:
I think I'll never come across that error. It happens when running code from a DLL that tries to write to disk. I added permissions in the project folder, the wwwroot and in IIS to NETWORK_SERVICE...
0
by: Carl Gilbert | last post by:
Hi I am trying to get an online gallery to work (www.ngallery.org). I have managed to get it all working on my local host but I can not get it to work on my web space. The site can be found...
5
by: CyberLotus | last post by:
Hi, I've created a web application and through this I want to import Excel data to database. Following is the code that I've written, ...
2
by: KaNos | last post by:
Hello world, I've made a webservice (c# v2) to install in a server IIS 6 on a Windows 2000 last SP. We can use the webservice in local, throw the pages wich present the methods, with a windows...
3
by: Mike | last post by:
Hi I have problem as folow: Caught Exception: System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type...
8
by: =?Utf-8?B?TWFuanJlZSBHYXJn?= | last post by:
Hi, I created a web service and hosted it in Windows Services. It is working fine. Now I am trying to implement the X509 certificates for message layer security. But it is throwing the following...
5
by: Henry Stock | last post by:
I am trying to understand the following error: Any thing you can tell me about this is appreciated. Security Exception Description: The application attempted to perform an operation not allowed...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.