473,386 Members | 2,042 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.

.NET ActiveX Permission Problem

I've signed my activeX control with a public key (strong name). I've
set up the client machine to grant full trust to code signed with that
public key. I did this using the .NET Configuration 1.1 Tool -->
Runtime Security Policy --> Machine --> Code Groups --> All Code -->
New() --> Membership Condition = StrongName.

Yet, when the IE browser runs the activeX control and I click on a
button that tells the activeX control to run notepad on the client
machine, i get the Microsoft .NET Framework permission denied box.

However, If I change the membership condition type from strong name to
Site, and put it the corresponding website, then it works. This would
seem to indicate to me that the key is just not correct. However, if i
do the same thing, but with an EXE instead, it works based on the
strong name alone. (with no strong name it doesn't work but with strong
name it does). So why isn't the dll running in the correct code group?

Can anyone tell me what's so special about activeX ddls and how do i
fix this? It should be able to work through the strong name.

Help

Mark

Nov 17 '05 #1
2 1937
Does anyone have an answer? Anyone have any hints at least?

Mark

Nov 17 '05 #2
The basic reason behind this is that IEExec is evaluating your assembly
evidence before it loads the assembly, so it doesn't use the strong name.
For more details and some workarounds, see
http://blogs.msdn.com/shawnfa/archiv.../26/57026.aspx.

<ma*******@hotmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
I've signed my activeX control with a public key (strong name). I've
set up the client machine to grant full trust to code signed with that
public key. I did this using the .NET Configuration 1.1 Tool -->
Runtime Security Policy --> Machine --> Code Groups --> All Code -->
New() --> Membership Condition = StrongName.

Yet, when the IE browser runs the activeX control and I click on a
button that tells the activeX control to run notepad on the client
machine, i get the Microsoft .NET Framework permission denied box.

However, If I change the membership condition type from strong name to
Site, and put it the corresponding website, then it works. This would
seem to indicate to me that the key is just not correct. However, if i
do the same thing, but with an EXE instead, it works based on the
strong name alone. (with no strong name it doesn't work but with strong
name it does). So why isn't the dll running in the correct code group?

Can anyone tell me what's so special about activeX ddls and how do i
fix this? It should be able to work through the strong name.

Help

Mark

Nov 17 '05 #3

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

Similar topics

0
by: Andreas | last post by:
Hi, I have an application that reads some data from an Excel file and uses the Excel ActiveX object to do this. I have written a function that opens the document and reads a value out. This...
0
by: Gazelle | last post by:
I have a dilemma, that I am hopping I can find some help with. He is the back story so everyone sort of understands what it is that I am trying to accomplish. My problem: I have multiple...
1
by: Charles A. Lackman | last post by:
Hello, I have an activeX control on my web site that seems to work on certain computers. I have checked the Browser Security Setting and ActiveX setting and it does not seem to fix the problem....
1
by: Anand Kale | last post by:
How to have ActiveX control called from Web Form in ASP.Net ? ActiveX control is written using VC++/MFC/ATL-COM. Also kindly answer following issues, 1. Also how to take care of issues about...
6
by: Steve Richter | last post by:
I am getting error in a vbscript: ActiveX component cant create object: Excel.Application. The vbscript code is: Dim objExcel Set objExcel = CreateObject("Excel.Application") I am pretty...
3
by: Steve Richter | last post by:
running a simple vbscript in an .htm page that starts excel and loads the spreadsheet with the contents of a <table> ... </table> getting an "Error: ActiveX component cant create object....
1
by: nandakumar.raghu | last post by:
Hi, I have written a javascript function that acceses properties from an activex object. - <OBJECT id="alertObj" classid="clsid:AEE77194-B98F-4E0E-A27F-4AD6B23F0038"></OBJECT> function...
3
by: =?Utf-8?B?R3JlZyBN?= | last post by:
Hello, I'm running an asp.net, intranet web application using .net framework 1.1 on IIS5.1 / 6.0. Through the web application, I would like to press a button on the web page, have another window...
0
by: emmyelba | last post by:
There is a problem while doing the ActiveX programs in VB. It shows 'permission denied' message when making AvtiveX exe.Suggest a solution soon.
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.