473,320 Members | 1,926 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,320 software developers and data experts.

.Net ActiveX behaviour differs depending on the "Execute Permissio

Hi,

I've developed an ActiveX control in C# and I'm using it inside an ASP.Net
intranet app.

I've noticed though that in some situations, instead of loading the ActiveX
control, it just shows a text-box in its place. On my other test sites it
works fine.

Turns-out that if the Execute Permissions of the Virtual Directory are set
for "Scripts Only" it works fine, but under "Scripts and Executables", I get
the rather useless text-box.

I may need the "Scripts and Executables" because my ASP.Net app. is set as
an MSHTA app. I don't know yet if the "Scripts Only" setting will affect the
application somehow, for now it seems to be fine. But in any case, I would
like to try to understand why is this happening? As is seems strange to me
that a more restrictive setting is the one that works. Could it have
something to do with the trust settings on the assembly (I configured it for
Full Trust)?

My environment is XP Prof. SP2, .Net 2003 and Framework 1.1. IIS 5.1. The
code I use to insert the control into the page looks something like this:

<OBJECT id="myControl2" height="180" width="640"
classid="MyClass.dll#MyClass.Test1"
name="myControl2" VIEWASTEXT>
</OBJECT>

The assemblies for the control are placed in the same directory next to the
aspx page.

An OCX test control developed in VB6.0 seems to work fine every time.
Thanks,
Antonio
Nov 19 '05 #1
0 957

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

Similar topics

6
by: John Baker | last post by:
Hi: Does "On Open" code execute before or after related data is loaded? I want to test before the form appears on the screen to see if there is any data in the queryresult, and if there is not...
2
by: Mike | last post by:
Is there an equivalent in VB.Net or C# of VBScript's "Eval" and "Execute" statements? Thanks, Mike
6
by: TJS | last post by:
in vbscript there was a command called "execute" which would process a dynamic string, vb.net dropped that feature ... does anybody have a working solution for sale or free that will execute a...
23
by: ticfranca | last post by:
Hi, I'm getting this error in the code below: sub Pega_recorde { $database = 'bundinha'; $host = 'localhost'; $usuario = 'myhumoradm'; $senha = 'my8xr2d2'; ...
5
bartonc
by: bartonc | last post by:
By that I mean they stop evaluation at the first True part of the expression. I use it often to replace an uninitialized object. Like this: >>> aString = "" >>> aString or "Hello, world" 'Hello,...
1
by: jpenguin | last post by:
I'm working on a proof of concept application, and I have a line that reads #ifdef __APPLE__ || __unix__ __APPLE__ is for MaxcOS X __unix__ is for unix Will the lines of code after this and...
5
by: stmfc | last post by:
i dont know why pl/sql block below returns no data found error. do you have any idea about it? declare c1 varchar2(80); c2 varchar2(80); begin execute immediate 'select col2 from table1 where...
8
by: cmuraz | last post by:
hi i need to insert values in a temporary teble which i dynamically create the columns like tbl_01, tbl_02.... for eg., execute immediate 'INSERT INTO...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.