problem with <object>

  • Thread starter Zbigniew Kawalec
  • Start date
Z

Zbigniew Kawalec

Hello

I have two external controls (dll) in my project. I try to insert them on my
aspx page like this:

<OBJECT id="axGr1" style="Z-INDEX: 106; LEFT: 176px; POSITION: absolute;
TOP: 16px" height="272"
width="384" classid="axGrafEd.dll#axGrafEd.axGr" name="axGr1" VIEWASTEXT>
</OBJECT>

<OBJECT id="axLay1" style="Z-INDEX: 107; LEFT: 200px; POSITION: absolute;
TOP: 16px" height="312"
width="340" classid="axLayout.dll#axLayout.axLay" name="axLay1"
VIEWASTEXT>
</OBJECT>

They both work fine on localhost, but when I view the pages from remote host
one of these controls still works like expected (axGrafEd), but the other
doesn`t (axLayout).
Instead of the axLayout control, there is only a place for it and the
control never appears.

Does anyone have any clues?


Thanks
 
S

Steve C. Orr [MVP, MCSD]

The control is unable to instantiate properly.
Look for a problem in your constructor.
The most likely cause is a security violation due to the sandbox
restrictions.
Use plenty of Try/Catches to help isolate the problem.
 
Z

Zbigniew Kawalec

Hi

You were right.
There is a security exception in the control.

Thanks a lot for help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top