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!