473,659 Members | 2,886 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

windows user control problem at IE

Hi

Sorry to crosspost, but i'm not knowing what should be the correct newsgroup
for this....

I have a web application which i want to show a windows forms user control
in my web form. (lets call this control userControl1)

I have no problem to do this, but when i use a COM / ActiveX control in
userControl1, and try to show it in IE, it fails, without any error. Any
clue ?

I'm showing userControl1 like this:
<OBJECT id="rtfcontrol "
classid="http://localhost/testEmbed/controls/userControlLib. dll#userControl L
ib.UserControl1 "
VIEWASTEXT>
</OBJECT>
Other help
If i activate IEHost log, i get the following log file:

URL: http://localhost/testEmbed/controls/userControlLib.dll
Zone: 2
Assembly Name: userControlLib. dll
Type Name: userControlLib. UserControl1

----- Thrown Exception -----
System.Reflecti on.TargetInvoca tionException: Exception has been thrown by
the target of an invocation. ---> System.Security .SecurityExcept ion: Request
failed.
at userControlLib. UserControl1.In itializeCompone nt()
at userControlLib. UserControl1..c tor()
--- End of inner exception stack trace ---

Server stack trace:
at System.RuntimeT ype.CreateInsta nceImpl(Boolean publicOnly)
at System.Activato r.CreateInstanc e(Type type, Boolean nonPublic)
at System.RuntimeT ype.CreateInsta nceImpl(Binding Flags bindingAttr, Binder
binder, Object[] args, CultureInfo culture, Object[] activationAttri butes)
at System.Activato r.CreateInstanc e(Type type, BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttri butes)
at System.Activato r.CreateComInst anceFrom(String assemblyName, String
typeName, Byte[] hashValue, AssemblyHashAlg orithm hashAlgorithm)
at System.AppDomai n.CreateComInst anceFrom(String assemblyFile, String
typeName, Byte[] hashValue, AssemblyHashAlg orithm hashAlgorithm)
at
System.Runtime. Remoting.Messag ing.StackBuilde rSink.PrivatePr ocessMessage(Me t
hodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean
fExecuteInConte xt, Object[]& outArgs)
at
System.Runtime. Remoting.Messag ing.StackBuilde rSink.SyncProce ssMessage(IMess a
ge msg, Int32 methodPtr, Boolean fExecuteInConte xt)

Exception rethrown at [0]:
at System.Runtime. Remoting.Proxie s.RealProxy.Han dleReturnMessag e(IMessage
reqMsg, IMessage retMsg)
at System.Runtime. Remoting.Proxie s.RealProxy.Pri vateInvoke(Mess ageData&
msgData, Int32 type)
at System.AppDomai n.CreateComInst anceFrom(String assemblyFile, String
typeName, Byte[] hashValue, AssemblyHashAlg orithm hashAlgorithm)
at Microsoft.IE.Se cureFactory.Cre ateInstanceWith Security(Int32 dwFlag,
Int32 dwZone, String pURL, String uniqueIdString, String link, String
licenses)

Thanks in advance!
Nov 18 '05 #1
0 969

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

Similar topics

2
3754
by: Greg Bacchus | last post by:
Hi, I'm getting an exception that really has me stumped. It's sporadic at best, it's only happened a handful of times. This particular time it happened when the user pressed 'Alt-S' to save the data that they were entering. Following is all exception information. Any thoughts much appreciated. Cheers
2
1531
by: roni | last post by:
hi. i want to build USER CONTROL that will be used in WEB PAGE. to build user control and use in web page,I KNOW . i did user control with textbox and lable for example and it works. the problem is after i had the IRC client functionality and Windows sockets it DID NOT work.
3
2265
by: Wayne Gibson | last post by:
Hi, Was wondering if anybody could point me in the right direction. I'm looking at developing a Windows User Control using Visual Studio .NET 2005 in C#. The user control is to be used on a web page to replace an existing Java applet. One of the main reasons for switching from Java to the Windows User Control is to reduce the amount of the time spent maintain two lots of source code, keeping the online and offline versions in sync. So...
5
2686
by: pberna | last post by:
Dear all, I built a Web Form application to start and stop a Windows Service remotely. I successful tested the application on Windows 2000 server + IIS. I must include the ASPNET user to the Administration group (on server side) to have the necessary authorization to start a Windows Service (I don't understand why "Power User" rights are not enough to do the same thing) Although I'm able to start a service using windows 2000 server...
2
1427
by: Shahzad Godil | last post by:
I have successfully placed a seperate .Net windows control on my aspx page as well as one ActiveX Control (Visio control) on my aspx. But my orignal design is that Visio activex will be placed in my windows control. And then this windows control will be place in my aspx as "Client side" rich user interface control. It is giving blank page. Thanks Shahzad Godil
9
12839
by: mohit.akl | last post by:
Hey guys & gals I am havng trouble modifying the control box. I want to make the maximise button invisible and have minimisise button instead of it. Like this _ X (not like _ o X ) How to do this... and eventually i want to modify the control box in the form of ? _ X ... I.e. adding a new button to control box. I need to detect the click events.
0
1894
by: dongarbage | last post by:
Hi there, I've created a user control to put in a web page. I'd like to add a windows media player control to the user control that I've created. But, for some reason, the user control does not load when I add the windows media player control to it. Is the issue that I did not specify the HTML correctly? I have embedded a windows media player in a web page, and had to specify the CLSID for media player, but in this case, I'd like to...
23
2204
by: Dan Tallent | last post by:
A textbox has a attribute for ReadOnly. This seems like such a simple concept. When a textbox is set to read only the user cannot change the contents of the field. I have been trying to find that missing ability for other predefined controls in C#. The radiobutton, checkbox, and combobox controls do not share this ability. I find it difficult to believe that this feature was left out and Microsoft expects everyone to write...
0
9947
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: Programs dealing with autoruns Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list programs that help me to view/modify the autoruns on my Windows PC? Ans: Other than Sysinternals Autoruns, there are only a few programs which are good enough to be used when dealing with autoruns. For more information about Sysinternals Autoruns, read Que-7 in Windows Autorun FAQs: Description....
0
8427
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8851
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8746
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7356
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6179
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2750
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 we have to send another system
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.