473,473 Members | 2,219 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

C# ActiveX Control won't load on some machines, does on others

Hi,

Our team have a web project which includes some C# ActiveX DLLs.

On some developers' PCs, the code which calls methods in the ActiveX
dll is succesful - no exceptions. On other PCs, the ActiveX control
doesn't even seem to get loaded. (On the failing machines, if we try
and debug down to where the ActiveX DLL method is invoked, both Visual
Studio
and IE hang.)

So there seems to be inconsistencies between the environment on the
different PCs which either does or doesn't allow the DLL to run, or
get registered, or have the right permissions.

My question is, what in the environment configuration can affect
whether an ActiveX DLL can load or not?

Thanks in advance

Artie

Mar 2 '07 #1
7 5796
Could we explain the definitions first? What *IS* a "C# ActiveX control",
specifically?
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Artie" wrote:
Hi,

Our team have a web project which includes some C# ActiveX DLLs.

On some developers' PCs, the code which calls methods in the ActiveX
dll is succesful - no exceptions. On other PCs, the ActiveX control
doesn't even seem to get loaded. (On the failing machines, if we try
and debug down to where the ActiveX DLL method is invoked, both Visual
Studio
and IE hang.)

So there seems to be inconsistencies between the environment on the
different PCs which either does or doesn't allow the DLL to run, or
get registered, or have the right permissions.

My question is, what in the environment configuration can affect
whether an ActiveX DLL can load or not?

Thanks in advance

Artie

Mar 2 '07 #2
On 2 Mar, 22:58, Peter Bromberg [C# MVP]
<pbromb...@yahoo.yabbadabbadoo.comwrote:
Could we explain the definitions first? What *IS* a "C# ActiveX control",
specifically?
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net

"Artie" wrote:
Hi,
Our team have a web project which includes some C# ActiveX DLLs.
On some developers' PCs, the code which calls methods in the ActiveX
dll is succesful - no exceptions. On other PCs, the ActiveX control
doesn't even seem to get loaded. (On the failing machines, if we try
and debug down to where the ActiveX DLL method is invoked, both Visual
Studio
and IE hang.)
So there seems to be inconsistencies between the environment on the
different PCs which either does or doesn't allow the DLL to run, or
get registered, or have the right permissions.
My question is, what in the environment configuration can affect
whether an ActiveX DLL can load or not?
Thanks in advance
Artie- Hide quoted text -

- Show quoted text -
It's a control we've written in C# that gets built as an ActiveX DLL.

It resides in a folder called ActiveX which is below the root of our
IIS site.
The relevant piece ASP code refers to the dll as follows:

<object id="testID" style="display:none;" classid="/ActiveX/
Test.ActiveX.dll#Test.ActiveX.Processors.Processor "></object>

The web app works fine on some machines, but doesn't on others - the
DLL doesn't get loaded.

We've eliminated XP Service Packs, Hotfixes, IE versions etc as being
the cause. We've put various users in the Administrators group, and
ensured all folders have read/write access.

We think it's got something to do with permissions, but we don't know.

Any help would be much appreciated.

Artie

Mar 5 '07 #3
OK, that's not an "ActiveX Control"; there is no COM involved. What you have
is a .Net UserControl that you want to host in Internet Explorer. And yes,
there are security issues involved. Specifically, try settings in the .NET
Configuration wizards in Control Panel. At a minimum, you would need to grant
Full Trust to the url.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Artie" wrote:
On 2 Mar, 22:58, Peter Bromberg [C# MVP]
<pbromb...@yahoo.yabbadabbadoo.comwrote:
Could we explain the definitions first? What *IS* a "C# ActiveX control",
specifically?
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net

"Artie" wrote:
Hi,
Our team have a web project which includes some C# ActiveX DLLs.
On some developers' PCs, the code which calls methods in the ActiveX
dll is succesful - no exceptions. On other PCs, the ActiveX control
doesn't even seem to get loaded. (On the failing machines, if we try
and debug down to where the ActiveX DLL method is invoked, both Visual
Studio
and IE hang.)
So there seems to be inconsistencies between the environment on the
different PCs which either does or doesn't allow the DLL to run, or
get registered, or have the right permissions.
My question is, what in the environment configuration can affect
whether an ActiveX DLL can load or not?
Thanks in advance
Artie- Hide quoted text -
- Show quoted text -

It's a control we've written in C# that gets built as an ActiveX DLL.

It resides in a folder called ActiveX which is below the root of our
IIS site.
The relevant piece ASP code refers to the dll as follows:

<object id="testID" style="display:none;" classid="/ActiveX/
Test.ActiveX.dll#Test.ActiveX.Processors.Processor "></object>

The web app works fine on some machines, but doesn't on others - the
DLL doesn't get loaded.

We've eliminated XP Service Packs, Hotfixes, IE versions etc as being
the cause. We've put various users in the Administrators group, and
ensured all folders have read/write access.

We think it's got something to do with permissions, but we don't know.

Any help would be much appreciated.

Artie

Mar 6 '07 #4
On 6 Mar, 02:05, Peter Bromberg [C# MVP]
<pbromb...@yahoo.yabbadabbadoo.comwrote:
OK, that's not an "ActiveXControl"; there is no COM involved. What you have
is a .Net UserControl that you want to host in Internet Explorer. And yes,
there are security issues involved. Specifically, try settings in the .NET
Configuration wizards in Control Panel. At a minimum, you would need to grant
Full Trust to the url.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net

"Artie" wrote:
On 2 Mar, 22:58, Peter Bromberg [C# MVP]
<pbromb...@yahoo.yabbadabbadoo.comwrote:
Could we explain the definitions first? What *IS* a "C#ActiveXcontrol",
specifically?
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
"Artie" wrote:
Hi,
Our team have a web project which includes some C#ActiveXDLLs.
On some developers' PCs, the code which calls methods in theActiveX
dll is succesful - no exceptions. On other PCs, theActiveXcontrol
doesn't even seem to get loaded. (On the failing machines, if we try
and debug down to where theActiveXDLL method is invoked, both Visual
Studio
and IE hang.)
So there seems to be inconsistencies between the environment on the
different PCs which either does or doesn't allow the DLL to run, or
get registered, or have the right permissions.
My question is, what in the environment configuration can affect
whether anActiveXDLL can load or not?
Thanks in advance
Artie- Hide quoted text -
- Show quoted text -
It's a control we've written in C# that gets built as anActiveXDLL.
It resides in a folder calledActiveXwhich is below the root of our
IIS site.
The relevant piece ASP code refers to the dll as follows:
<object id="testID" style="display:none;" classid="/ActiveX/
Test.ActiveX.dll#Test.ActiveX.Processors.Processor "></object>
The web app works fine on some machines, but doesn't on others - the
DLL doesn't get loaded.
We've eliminated XP Service Packs, Hotfixes, IE versions etc as being
the cause. We've put various users in the Administrators group, and
ensured all folders have read/write access.
We think it's got something to do with permissions, but we don't know.
Any help would be much appreciated.
Artie- Hide quoted text -

- Show quoted text -
Peter,

Thanks for the clarification over the control type.

I followed your suggestion re the .NET config wizards (in
Administrative Tools), but these actions had no effect - we're still
getting the DLL loading on some machines and not others.

I did the following:

Adjusted .NET Security to Full Trust
Added the URL to Trusted Sites, and gave that Full Trust
Trusted the Assembly itself
I've checked the dependencies for the dll on the PC and they're all
fine too.

I should mention that I've tried accessing the site (and therefore
trying to invoke the dll on the web server) from IE5.5, IE6 and
IE6SP2, all with the same results, so it's definitely a server-side
config/security issue.

We do have other (non .NET) server-side DLLs that seem to work without
any problems on every machine.

Any other thoughts? Any IIS 5.1 peculiarities that typically catch
folk out?

Artie

Mar 6 '07 #5
Firstly, you need to determine if your issue is related to CAS policy. Turn
CAS policy off on the machine, purge the assembly download cache, close IE
and re-open to the URL. If your control doesn't load, this is not a CAS
policy issue. If your control loads, turn CAS policy back on and add
full_trust to the all_code group. This is a required work-around to a CAS
design flaw.

Follow that by adding a custom code group and configure permissions for the
control. See this link: http://support.microsoft.com/kb/555688

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
"Artie" <ar********@yahoo.co.ukwrote in message
news:11*********************@p10g2000cwp.googlegro ups.com...
On 6 Mar, 02:05, Peter Bromberg [C# MVP]
<pbromb...@yahoo.yabbadabbadoo.comwrote:
>OK, that's not an "ActiveXControl"; there is no COM involved. What you
have
is a .Net UserControl that you want to host in Internet Explorer. And
yes,
there are security issues involved. Specifically, try settings in the
.NET
Configuration wizards in Control Panel. At a minimum, you would need to
grant
Full Trust to the url.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net

"Artie" wrote:
On 2 Mar, 22:58, Peter Bromberg [C# MVP]
<pbromb...@yahoo.yabbadabbadoo.comwrote:
Could we explain the definitions first? What *IS* a
"C#ActiveXcontrol",
specifically?
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
"Artie" wrote:
Hi,
Our team have a web project which includes some C#ActiveXDLLs.
On some developers' PCs, the code which calls methods in theActiveX
dll is succesful - no exceptions. On other PCs, theActiveXcontrol
doesn't even seem to get loaded. (On the failing machines, if we
try
and debug down to where theActiveXDLL method is invoked, both
Visual
Studio
and IE hang.)
So there seems to be inconsistencies between the environment on the
different PCs which either does or doesn't allow the DLL to run, or
get registered, or have the right permissions.
My question is, what in the environment configuration can affect
whether anActiveXDLL can load or not?
Thanks in advance
Artie- Hide quoted text -
- Show quoted text -
It's a control we've written in C# that gets built as anActiveXDLL.
It resides in a folder calledActiveXwhich is below the root of our
IIS site.
The relevant piece ASP code refers to the dll as follows:
<object id="testID" style="display:none;" classid="/ActiveX/
Test.ActiveX.dll#Test.ActiveX.Processors.Processor "></object>
The web app works fine on some machines, but doesn't on others - the
DLL doesn't get loaded.
We've eliminated XP Service Packs, Hotfixes, IE versions etc as being
the cause. We've put various users in the Administrators group, and
ensured all folders have read/write access.
We think it's got something to do with permissions, but we don't know.
Any help would be much appreciated.
>Artie- Hide quoted text -

- Show quoted text -

Peter,

Thanks for the clarification over the control type.

I followed your suggestion re the .NET config wizards (in
Administrative Tools), but these actions had no effect - we're still
getting the DLL loading on some machines and not others.

I did the following:

Adjusted .NET Security to Full Trust
Added the URL to Trusted Sites, and gave that Full Trust
Trusted the Assembly itself
I've checked the dependencies for the dll on the PC and they're all
fine too.

I should mention that I've tried accessing the site (and therefore
trying to invoke the dll on the web server) from IE5.5, IE6 and
IE6SP2, all with the same results, so it's definitely a server-side
config/security issue.

We do have other (non .NET) server-side DLLs that seem to work without
any problems on every machine.

Any other thoughts? Any IIS 5.1 peculiarities that typically catch
folk out?

Artie

Mar 7 '07 #6
On 7 Mar, 01:14, "Alvin Bruney [MVP]" <some guy without an email
addresswrote:
Firstly, you need to determine if your issue is related to CAS policy. Turn
CAS policy off on the machine, purge the assembly download cache, close IE
and re-open to the URL. If your control doesn't load, this is not a CAS
policy issue. If your control loads, turn CAS policy back on and add
full_trust to the all_code group. This is a required work-around to a CAS
design flaw.

Follow that by adding a custom code group and configure permissions for the
control. See this link:http://support.microsoft.com/kb/555688

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon andwww.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley

"Artie" <artiele...@yahoo.co.ukwrote in message

news:11*********************@p10g2000cwp.googlegro ups.com...
On 6 Mar, 02:05, Peter Bromberg [C# MVP]
<pbromb...@yahoo.yabbadabbadoo.comwrote:
OK, that's not an "ActiveXControl"; there is no COM involved. What you
have
is a .Net UserControl that you want to host in Internet Explorer. And
yes,
there are security issues involved. Specifically, try settings in the
.NET
Configuration wizards in Control Panel. At a minimum, you would need to
grant
Full Trust to the url.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
"Artie" wrote:
On 2 Mar, 22:58, Peter Bromberg [C# MVP]
<pbromb...@yahoo.yabbadabbadoo.comwrote:
Could we explain the definitions first? What *IS* a
"C#ActiveXcontrol",
specifically?
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
"Artie" wrote:
Hi,
Our team have a web project which includes some C#ActiveXDLLs.
On some developers' PCs, the code which calls methods in theActiveX
dll is succesful - no exceptions. On other PCs, theActiveXcontrol
doesn't even seem to get loaded. (On the failing machines, if we
try
and debug down to where theActiveXDLL method is invoked, both
Visual
Studio
and IE hang.)
So there seems to be inconsistencies between the environment on the
different PCs which either does or doesn't allow the DLL to run, or
get registered, or have the right permissions.
My question is, what in the environment configuration can affect
whether anActiveXDLL can load or not?
Thanks in advance
Artie- Hide quoted text -
- Show quoted text -
It's a control we've written in C# that gets built as anActiveXDLL.
It resides in a folder calledActiveXwhich is below the root of our
IIS site.
The relevant piece ASP code refers to the dll as follows:
<object id="testID" style="display:none;" classid="/ActiveX/
Test.ActiveX.dll#Test.ActiveX.Processors.Processor "></object>
The web app works fine on some machines, but doesn't on others - the
DLL doesn't get loaded.
We've eliminated XP Service Packs, Hotfixes, IE versions etc as being
the cause. We've put various users in the Administrators group, and
ensured all folders have read/write access.
We think it's got something to do with permissions, but we don't know.
Any help would be much appreciated.
Artie- Hide quoted text -
- Show quoted text -
Peter,
Thanks for the clarification over the control type.
I followed your suggestion re the .NET config wizards (in
Administrative Tools), but these actions had no effect - we're still
getting the DLL loading on some machines and not others.
I did the following:
Adjusted .NET Security to Full Trust
Added the URL to Trusted Sites, and gave that Full Trust
Trusted the Assembly itself
I've checked the dependencies for the dll on the PC and they're all
fine too.
I should mention that I've tried accessing the site (and therefore
trying to invoke the dll on the web server) from IE5.5, IE6 and
IE6SP2, all with the same results, so it's definitely a server-side
config/security issue.
We do have other (non .NET) server-side DLLs that seem to work without
any problems on every machine.
Any other thoughts? Any IIS 5.1 peculiarities that typically catch
folk out?
Artie- Hide quoted text -

- Show quoted text -
Thanks for your suggestion Alvin.

I turned off CAS policy, cleared the assembly cache, closed IE, and
restart the web app. Same issue - control didn't load.

I also glanced through a couple of your articles, but couldn't see
anything obvious.

Anything else you can think of?

Artie

Mar 7 '07 #7
This sounds like a similar problem to what we are having also...

ActiveX runs ok on some PCs with Windows XP and IE7 and not on others?

We have found that if the activeX was installed prior to the IE7 update then
our activeX runs perfectly and we can also detect the version (important for
updates). But if the activeX is installed after updating to IE7 then the
activeX is not run. Nor can it be detected and it doesn't show in "managed
add-ons".

At the moment we are trying to find out how it can be installed and accepted
as a "Managed add-on" in IE7. Web searches have turned up a lot of discussion
about not be able to detect plugin/version in IE7 at all, and wondering how
other developers are coping?

- Is there a solution?


May 24 '07 #8

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

Similar topics

12
by: A.M. | last post by:
Hi at all, how can I do to insert into a HTML page a file .txt stored in the same directory of the server where is the html file that must display the text file.txt? Thank you very much P.Pietro
0
by: Ike | last post by:
I have an Activex Control created in VB6, which, displays no problem on any machine I have, but, on some machines of others, it does not. All machines are running either XP or Windows 2000, and all...
2
by: Dean Bortell | last post by:
I am new to VS 2003 C#. I have created a simple telephony project in C# using an activex control from allem martin called aximtapi pro. www.allen-marting- inc.com. I have the retail version of...
1
by: Steve | last post by:
I am having an issue deploying an ActiveX control. This is a .NET project in C#. The ActiveX control is written in VB6. I use the PDW (Package and Deployment Wizard) to create a .CAB for the...
3
by: Jeffery Franzen | last post by:
Anyone know where the documentation is regarding Activex controls in asp web forms? I'm using VS.NET 2002 enterprise and am trying to use Activex controls in vb.net web form app. I do the add...
1
by: fniles | last post by:
I have an ActiveX control in my ASP page that has not been signed yet, so currently just for testing I set the Security for Intranet to "Low". When I run the ASP page on my machine (the IIS is in...
5
by: fniles | last post by:
We created an ActiveX control and marked it as safe for scripting using Implements IObjectSafety. We then created a CAB file and signed it using Verisign. We also created a license file (LPK file)...
11
by: Tim | last post by:
hi, I would like to create an application that runs in a web browser. It must have access to the client machine. I guess a bit like the microsoft update tool at windowsupdate.com Having never...
4
by: Mr Seth T | last post by:
Hey, I have spent several days trying to find out how to do something, and i don't know if I am blind or what, but I can not find it. I am developing a web app and I need it to run an activex...
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
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.