473,324 Members | 2,417 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,324 software developers and data experts.

Hosting Controls in IE

All,

I am trying to display a winforms user control inside an HTML page through
an <object> tag. Everything works fine and dandy until I sign the assembly
that contains the control. Once I start signing then I just get the icon
for the failed control.

Now I've confirmed from my web server logs that the control is properly
downloaded, I see requests with status codes of 200 or 304, so the download
succeded. I can further confirm that the download succeeded by checking the
downloaded assembly cache with gacutil /ldl and I do see the assembly in
there ( with the correct version number and public key token ).

When I check the IEHost log file, I see a SecurityException, but I did
explicitly configure FullTrust for all assemblies signed with my strong
name using the Configuration Wizard -> Trust Assembly and specifying the
http URL of the assembly on the web server. There are no details logged on
the security exception. What's even more puzzling is that this is happening
when I attempt to download this from localhost.

The fusion log does not show errors either, unless I take out the <link>
tag that's pointing to my config file on the web server.

I am running out of ideas what else to try right now. The configuration of
my set up is Windows 2003 Server, IE6, .NET Framework 1.1.

Can someone tell me what I am missing? I can post more details if necessary.

Thanks,
Christoph
MVP XML .NET

Nov 15 '05 #1
3 3270
Is your assembly marked by the attribute below?

[assembly: System.Security.AllowPartiallyTrustedCallers]

Before you apply this, you must make sure that your assembly cannot be
exploited by partially trusted code.

rajasi
"Christoph Schittko [MVP]" <ch********************@austin.rr.com> wrote in
message news:ec**************@TK2MSFTNGP09.phx.gbl...
All,

I am trying to display a winforms user control inside an HTML page through
an <object> tag. Everything works fine and dandy until I sign the assembly
that contains the control. Once I start signing then I just get the icon
for the failed control.

Now I've confirmed from my web server logs that the control is properly
downloaded, I see requests with status codes of 200 or 304, so the download succeded. I can further confirm that the download succeeded by checking the downloaded assembly cache with gacutil /ldl and I do see the assembly in
there ( with the correct version number and public key token ).

When I check the IEHost log file, I see a SecurityException, but I did
explicitly configure FullTrust for all assemblies signed with my strong
name using the Configuration Wizard -> Trust Assembly and specifying the
http URL of the assembly on the web server. There are no details logged on
the security exception. What's even more puzzling is that this is happening when I attempt to download this from localhost.

The fusion log does not show errors either, unless I take out the <link>
tag that's pointing to my config file on the web server.

I am running out of ideas what else to try right now. The configuration of
my set up is Windows 2003 Server, IE6, .NET Framework 1.1.

Can someone tell me what I am missing? I can post more details if necessary.
Thanks,
Christoph
MVP XML .NET

Nov 15 '05 #2
Rajasi,

Thanks for the answer. The control is in a signed assembly, with the
AllowPartiallyTrustedCallers attached. I got everything working now as long
as I associate the FullTrust Permission Set with the CodeGroup applicable to
my assembly. Anything less than FullTrust will cause a SecurityException.

In [0] Chris Sells writes that the Execution Permission Set should be
sufficient. Does this only apply to .exe assemblies and not to controls that
are hosted as part of HTML pages? I tried all the stock permission sets as
well as coming up with a few custom ones, but none of them work.

Are there any other ways to work around this issue?
TIA,
Christoph Schittko
MS MVP XML .NET

[0] http://www.microsoft.com/indonesia/m...ms11122002.asp

"Rajasi Saha" <ra*****@online.microsoft.com> wrote in message
news:eL**************@tk2msftngp13.phx.gbl...
Is your assembly marked by the attribute below?

[assembly: System.Security.AllowPartiallyTrustedCallers]

Before you apply this, you must make sure that your assembly cannot be
exploited by partially trusted code.

rajasi
"Christoph Schittko [MVP]" <ch********************@austin.rr.com> wrote in
message news:ec**************@TK2MSFTNGP09.phx.gbl...
All,

I am trying to display a winforms user control inside an HTML page through an <object> tag. Everything works fine and dandy until I sign the assembly that contains the control. Once I start signing then I just get the icon
for the failed control.

Now I've confirmed from my web server logs that the control is properly
downloaded, I see requests with status codes of 200 or 304, so the

download
succeded. I can further confirm that the download succeeded by checking

the
downloaded assembly cache with gacutil /ldl and I do see the assembly in
there ( with the correct version number and public key token ).

When I check the IEHost log file, I see a SecurityException, but I did
explicitly configure FullTrust for all assemblies signed with my strong
name using the Configuration Wizard -> Trust Assembly and specifying the
http URL of the assembly on the web server. There are no details logged on the security exception. What's even more puzzling is that this is

happening
when I attempt to download this from localhost.

The fusion log does not show errors either, unless I take out the <link>
tag that's pointing to my config file on the web server.

I am running out of ideas what else to try right now. The configuration of my set up is Windows 2003 Server, IE6, .NET Framework 1.1.

Can someone tell me what I am missing? I can post more details if

necessary.

Thanks,
Christoph
MVP XML .NET


Nov 15 '05 #3
Rajasi,

I started over, recreated my project structure from scratch and now
everything works just great only
with the permissions needed.

I hope it will still work when I get back to it tomorrow, but I think I at
least I now understand what's going on.

Thanks for the help,

Christoph

"Rajasi Saha" <ra*****@online.microsoft.com> wrote in message
news:eL**************@tk2msftngp13.phx.gbl...
Is your assembly marked by the attribute below?

[assembly: System.Security.AllowPartiallyTrustedCallers]

Before you apply this, you must make sure that your assembly cannot be
exploited by partially trusted code.

rajasi
"Christoph Schittko [MVP]" <ch********************@austin.rr.com> wrote in
message news:ec**************@TK2MSFTNGP09.phx.gbl...
All,

I am trying to display a winforms user control inside an HTML page through an <object> tag. Everything works fine and dandy until I sign the assembly that contains the control. Once I start signing then I just get the icon
for the failed control.

Now I've confirmed from my web server logs that the control is properly
downloaded, I see requests with status codes of 200 or 304, so the

download
succeded. I can further confirm that the download succeeded by checking

the
downloaded assembly cache with gacutil /ldl and I do see the assembly in
there ( with the correct version number and public key token ).

When I check the IEHost log file, I see a SecurityException, but I did
explicitly configure FullTrust for all assemblies signed with my strong
name using the Configuration Wizard -> Trust Assembly and specifying the
http URL of the assembly on the web server. There are no details logged on the security exception. What's even more puzzling is that this is

happening
when I attempt to download this from localhost.

The fusion log does not show errors either, unless I take out the <link>
tag that's pointing to my config file on the web server.

I am running out of ideas what else to try right now. The configuration of my set up is Windows 2003 Server, IE6, .NET Framework 1.1.

Can someone tell me what I am missing? I can post more details if

necessary.

Thanks,
Christoph
MVP XML .NET


Nov 15 '05 #4

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

Similar topics

2
by: David Hearn | last post by:
Does anyone know of a hosting company, that is reasonably priced and has the Infragistics controls installed? I am developing a web site that uses the latest Infragistics controls so I need them...
3
by: Lloyd Sheen | last post by:
I have the following situation: Need a user resizable user control. After much trying with user control I came across the idea of hosting the controls in a form marked as not TopLevel = false. ...
1
by: Neal | last post by:
Hi All, I have deployed a web site to a hosting site (ix), but some really strange incomplete execution hassles. The app is Frameset based, 2 of the aspx pages for 2 of the 4 frames, don't...
10
by: Benton | last post by:
Hi there, I have a UserControl with a couple of textboxes and a couple of buttons ("Save" and "Cancel"). The Click event for this buttons is in the UserControl's codebehind of course, so here's...
1
by: Uriah Piddle | last post by:
Hi, For my ASP.NET 2.0 website, I found what looks like a really great freeware text editor (XStandard: http://xstandard.com/default.asp) but it is a COM component. I've never set up a website...
3
by: jonny | last post by:
Please recommend a Web Hosting Service that supports ASP.NET and SQL server. I am new at this and just signed up with Yahoo before I new any better. It appears that yahoo does not support ASP.NET...
4
by: Peted | last post by:
Hi, this prob isnt the right forum but i got no response from the other forums so i hope someone can point me in the right direction. I know you can write a custom control in C# and host...
5
by: jbeckh2 | last post by:
Hi, I am trying to create a custom server control that contains several dropdownlists. The control looks like this: Dim pnlHeader As New Panel Protected Overrides Sub RenderContents(ByVal...
3
by: Andy B | last post by:
Is there any way to use .net windows forms controls inside asp.net pages and not require that the client have .net access? I'm more the less thinking of mobile devices that don't have access to, or...
14
by: Jeff | last post by:
Hello I'm teaching myself web programming in ASP.NET using freely available online resource and videos. It's going really well and I've built myself some personal web pages based on the Visual...
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
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...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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)...
1
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.