473,385 Members | 2,269 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,385 software developers and data experts.

Exception System.Security.SecurityException has accured

Hi

The Visual Basic 2003 application that I wrote was installed on Windows 2003
Server and we are trying to acess it across the network from Windows XP Pro
but we are getting An Exception System.Security.SecurityException has accured
when we try and run it.

The application is a Executable the network administrator do not want to add
the application to the .Net Wizard Trust because they fear that it will open
up a bunch of security problems on the entire network. So I was wondering if
there is any way to include some code in the application to make it without
any trust levels? If so can you please give me a example of how to do it.
Checked the internet and I was unable to find any that would work with my
application.

I am using windows server 2003 and if you add a application .net trust
assembley how can I do this please?

Thanks
Phillip Taylor

Oct 16 '06 #1
1 1549
Since the code is not installed on running computer locally, instead it is
loaded from a network share, it is considered as "unsafe" by default, hence
the error. You must configutre the .NET FW on the running computer to give
required trust, so that the code loaded from outside computer can run, using
either .NET Configuration applet or .NET Framework configuration wizard.

Why your netwrok admiistrator does not want to do that? It seems he need to
do some study on that. The .NET configuration tool is just designed for
that. He should learn how to configure it properly. It is not like that if
you do the configuration, then you get the computer wide open. You simply
have to know how to do it and do it correctly.

If you have a few small .NET destop apps that you'd like load from a network
share, in order to simplify deployment, you can use the .NET configuration
applet or Caspol.exe tool to configure a new work folder as trusted code
group (make it read-only to all users, and only the admin can copy files
in). I usualy give full trust, but you can give different level of trust
based on need. However, if the .NET app is big or complicated, create an
installation package and install it locally would be better.
"Phillip Taylor" <Ph***********@discussions.microsoft.comwrote in message
news:B0**********************************@microsof t.com...
Hi

The Visual Basic 2003 application that I wrote was installed on Windows
2003
Server and we are trying to acess it across the network from Windows XP
Pro
but we are getting An Exception System.Security.SecurityException has
accured
when we try and run it.

The application is a Executable the network administrator do not want to
add
the application to the .Net Wizard Trust because they fear that it will
open
up a bunch of security problems on the entire network. So I was wondering
if
there is any way to include some code in the application to make it
without
any trust levels? If so can you please give me a example of how to do it.
Checked the internet and I was unable to find any that would work with my
application.

I am using windows server 2003 and if you add a application .net trust
assembley how can I do this please?

Thanks
Phillip Taylor

Oct 16 '06 #2

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...
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, ...
5
by: Ankit Aneja | last post by:
This is my problem. I am using Visual 2003, .Net framework 1.1 and the Application Block I configured the DAAB using the Enterprise Library Configuration now this is the error which is coming ...
5
by: wenning | last post by:
Hello, I am struggling with a website on a W2K3 server which has the actual content on a NAS server (also W2K3 based). The servers doesn't run in a domain and arent intended to. I did make...
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...
0
by: alf | last post by:
I have an app that was running in my local server using full trust, now I moved it to hosting company wish run in Medium trust. Then I get a Security exception (details below) Then I configured...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.