473,324 Members | 2,511 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.

Hosted WINFormControl only works via LocalHost

Hi All,

I have a winformcontrol which is loaded using the object tag in a html page
which only appears when I load the page using localhost, if I used my
machine name or www.mysite.net which is also linked to 127.0.0.1 in my hosts
file the page does not appear, The control has a strong name. I dont
understand this security system, I've also added the
[assembly: System.Security.AllowPartiallyTrustedCallers]

line to my assemply.cs file.

This is running on framework 1.1, IIS 5.1 in IE 6, does anyone know why i'm
getting this behaviour ?

Any help appreciated,

Thanks

Dave.
Nov 15 '05 #1
2 1092
In Control panel /Administrative tools, there is an applet ".NET Wizards".

Try using the "Trust an Assembly" wizard.

P.S. Thats a lot of newgroups you're posting to...

--Peter

"Dave Brown" <dave.AT.dbws.net> wrote in message
news:Oj**************@TK2MSFTNGP11.phx.gbl...
Hi All,

I have a winformcontrol which is loaded using the object tag in a html page which only appears when I load the page using localhost, if I used my
machine name or www.mysite.net which is also linked to 127.0.0.1 in my hosts file the page does not appear, The control has a strong name. I dont
understand this security system, I've also added the
[assembly: System.Security.AllowPartiallyTrustedCallers]

line to my assemply.cs file.

This is running on framework 1.1, IIS 5.1 in IE 6, does anyone know why i'm getting this behaviour ?

Any help appreciated,

Thanks

Dave.

Nov 15 '05 #2
I trusted it with full trusts, but still no luck.

Is there anyway to setup an assembly/control to behave as the older activex
controls did,

I got used to signing my code/cab and then having my users just click yes
when asked if I was trustworthy.
These new security methods i'm sure have much more capabilities but boy they
seem difficult to implement and understand.

rgds,

Dave.
"Dave Brown" <dave.AT.dbws.net> wrote in message
news:Oj**************@TK2MSFTNGP11.phx.gbl...
Hi All,

I have a winformcontrol which is loaded using the object tag in a html page which only appears when I load the page using localhost, if I used my
machine name or www.mysite.net which is also linked to 127.0.0.1 in my hosts file the page does not appear, The control has a strong name. I dont
understand this security system, I've also added the
[assembly: System.Security.AllowPartiallyTrustedCallers]

line to my assemply.cs file.

This is running on framework 1.1, IIS 5.1 in IE 6, does anyone know why i'm getting this behaviour ?

Any help appreciated,

Thanks

Dave.

Nov 15 '05 #3

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

Similar topics

1
by: Dave Brown | last post by:
Hi All, I have a winformcontrol which is loaded using the object tag in a html page which only appears when I load the page using localhost, if I used my machine name or www.mysite.net which is...
5
by: Segfahlt | last post by:
I need a little help here please. I have 2 win forms user controls in 2 different projects that I'm hosting in 2 different virtual directories. The controls have been test and operate okay in...
1
by: Newbie | last post by:
Hi all, - Anyone here know how to access ASP.NET's "Web Site Administration Tool" on the production/hosted server? something that on my development machine the URL is:...
1
by: Dhruba Bandopadhyay | last post by:
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm....
0
by: Apu Nahasapeemapetilon | last post by:
The runtime environment is .NET CLR v1.1. I've got a C# DLL that contains the following code: IPHostEntry hostInfo = Dns.GetHostByName(this.ComputerName); When the DLL containing the above...
1
by: Karch | last post by:
I am writing a WCF Service using MSMQ hosted in a Windows Service on Windows XP. All the required components are installed (.NET3, MSMQ, etc). For some reason my service tries to start and then...
0
by: =?Utf-8?B?QWRyaWFuIENvbGU=?= | last post by:
I have written a simple WCF service hosted in a Windows console application and a simple WCF client console application that connects successfully to that service and retrieves data. I then ported...
0
by: =?Utf-8?B?c293b3Js?= | last post by:
I create the wcf service hosted in IIS. I tried to use "Web Service Task" to call this wcf service in SSIS package. in the Http Connection manager, server url :...
0
by: khurramlone | last post by:
I am trying to generate a client proxy from a WCF service library. I am using VS2005, .NET 3.0 on a Windows XP Pro workstation. The WCF service is hosted in a windows service. When I run the windows...
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...
1
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...
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: 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
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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.