473,473 Members | 1,750 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

System.Security.Permissions.SecurityPermission

Hi

I'm trying to write an ActiveX replacement in VB.Net the following link was
my starting point.

http://www.vbdotnetheaven.com/Code/Jun2003/2067.asp

All was going well until I tried accessing a com object local on the PC (the
ActiveX is served from a web server)

The Error I get is:

The application attempted to perform an operation not allowed by the
security policy the operation required the securityException. To grant this
application the required permission please contact your system
administrator, or use the Microsoft .NET security policy administrator
tool..

System.Security.Permissions.SecurityPermission

So what does this mean and what do I do to over come it!?
Nov 21 '05 #1
4 11840
Sounds like your program needs to be added to the GAC with full trust

"Adrian" wrote:
Hi

I'm trying to write an ActiveX replacement in VB.Net the following link was
my starting point.

http://www.vbdotnetheaven.com/Code/Jun2003/2067.asp

All was going well until I tried accessing a com object local on the PC (the
ActiveX is served from a web server)

The Error I get is:

The application attempted to perform an operation not allowed by the
security policy the operation required the securityException. To grant this
application the required permission please contact your system
administrator, or use the Microsoft .NET security policy administrator
tool..

System.Security.Permissions.SecurityPermission

So what does this mean and what do I do to over come it!?

Nov 21 '05 #2
OK thanks, how do I do that?

"Crouchie1998" <Cr**********@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
Sounds like your program needs to be added to the GAC with full trust

"Adrian" wrote:
Hi

I'm trying to write an ActiveX replacement in VB.Net the following link
was
my starting point.

http://www.vbdotnetheaven.com/Code/Jun2003/2067.asp

All was going well until I tried accessing a com object local on the PC
(the
ActiveX is served from a web server)

The Error I get is:

The application attempted to perform an operation not allowed by the
security policy the operation required the securityException. To grant
this
application the required permission please contact your system
administrator, or use the Microsoft .NET security policy administrator
tool..

System.Security.Permissions.SecurityPermission

So what does this mean and what do I do to over come it!?

Nov 21 '05 #3
Sorry to take so long to get back to you

The following article tells you how:

http://support.microsoft.com/default...b;en-us;315682

"Adrian" wrote:
OK thanks, how do I do that?

"Crouchie1998" <Cr**********@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
Sounds like your program needs to be added to the GAC with full trust

"Adrian" wrote:
Hi

I'm trying to write an ActiveX replacement in VB.Net the following link
was
my starting point.

http://www.vbdotnetheaven.com/Code/Jun2003/2067.asp

All was going well until I tried accessing a com object local on the PC
(the
ActiveX is served from a web server)

The Error I get is:

The application attempted to perform an operation not allowed by the
security policy the operation required the securityException. To grant
this
application the required permission please contact your system
administrator, or use the Microsoft .NET security policy administrator
tool..

System.Security.Permissions.SecurityPermission

So what does this mean and what do I do to over come it!?


Nov 21 '05 #4
Thanks I will have a look at it.

In the meantime I have got around the problem by accessing the external
programs Com object from JavaScript and then passing the result to my AX
replacement!

Thanks for help.

"Crouchie1998" <Cr**********@discussions.microsoft.com> wrote in message
news:02**********************************@microsof t.com...
Sorry to take so long to get back to you

The following article tells you how:

http://support.microsoft.com/default...b;en-us;315682

"Adrian" wrote:
OK thanks, how do I do that?

"Crouchie1998" <Cr**********@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
> Sounds like your program needs to be added to the GAC with full trust
>
> "Adrian" wrote:
>
>> Hi
>>
>> I'm trying to write an ActiveX replacement in VB.Net the following
>> link
>> was
>> my starting point.
>>
>> http://www.vbdotnetheaven.com/Code/Jun2003/2067.asp
>>
>>
>>
>> All was going well until I tried accessing a com object local on the
>> PC
>> (the
>> ActiveX is served from a web server)
>>
>>
>>
>> The Error I get is:
>>
>> The application attempted to perform an operation not allowed by the
>> security policy the operation required the securityException. To grant
>> this
>> application the required permission please contact your system
>> administrator, or use the Microsoft .NET security policy administrator
>> tool..
>>
>>
>>
>> System.Security.Permissions.SecurityPermission
>>
>>
>>
>> So what does this mean and what do I do to over come it!?
>>
>>
>>


Nov 21 '05 #5

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

Similar topics

3
by: nick | last post by:
The program runs well on Local harddisk. But it always popup the exception if I run it on Netware mapping disk. After debugger say there is no source code on the exception. Also the following error...
1
by: edge | last post by:
hi, here it is my problem. My console app, reads a text file where it grabs username/password. Next, my app creates a .BAT file to trigger the command ftp:\\user:password@ftphomeaddress. ...
2
by: Glenn Hulls via .NET 247 | last post by:
(Type your message here) -------------------------------- From: Glenn Hulls I am new to VB.net. The app i have written is short and simple, it uses the process class to invoke an internet...
3
by: Velvet | last post by:
I ran FxCop on one of the components for my web site and the security rules what me to add " tags like the ones listed below: This breaks my ASP.NET application. So my question is,...
0
by: Peter Newman | last post by:
This has already been posted but in the wrong section. im very new to visual basic .net and have been trying to modify some of my 'amauter' visual basic applications under vb.net. I am currently...
3
by: Carl | last post by:
Hi. I have my program written as a console application in C# .NET 2005. I run it from a server on the local intranet and I got this message: An unhandled exception of type...
6
by: alex | last post by:
Hi, this always works: private ConsoleToTextbox myConsole; Console.SetOut(myConsole); But now (a few weeks later i started this project again) i get a non handeld security exception from...
0
by: Lambuz | last post by:
Hi all, I've got this problem. I've to implemente a solution like the example in http://support.microsoft.com/default.aspx?scid=kb;EN-US;313891, but I can't configure correctly the example. ...
1
by: fireline1082 | last post by:
HI ALL PLEASE HELP ME. I am stuck on this point and can't do any progress in my project. Currently, I am using Domain Environment. I have Active directory and I want every users when they...
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
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,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.