Re: .NET Windows Forms Control hosted in web page
- From: "Roger Abell [MVP]" <mvpNoSpam@xxxxxxx>
- Date: Wed, 25 Jan 2006 23:26:21 -0700
Have you gone to msdn.microsoft.com and found the developer forums
and asked there ?? Or, in one of the framework related newsgroups ?
I know that NetFx 2 did add a new level of security for Asp.Net but
I had just assumed that this was only operative if it was the v2 version
of the CLR being used. As to your other question about CAS policies,
I would thing where you needed to make the config adjustments would
be governed by the NetFx version IIS is configured to use for the web
application where this is.
"Mike Ogden" <MikeOgden@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CE8B843A-E506-429B-85DF-D1E6ED2FD96B@xxxxxxxxxxxxxxxx
>I have a .NET 1.1 Windows Forms control that I built and have hosted it in
>a
> web page using the <OBJECT/> element. The control is used for downloading
> files to the users local system. I provided users with a .msi file which
> only
> added a code group to the machine-level runtime security policy to enable
> the
> control to run. The code group granted full trust to the intranet site
> hosting the control.
>
> Everything was working fine until our company pushed .NET Framework 2.0
> out
> to all of the users stations, including mine. After this update the .NET
> control in this web page stopped working. The rectangle where the control
> would appear remains blank with a red/blue/green icon in the upper
> left-hand
> corner.
>
> My assumption was that the security configurations for .NET 2.0 were not
> configured and may be causing the 1.1 assy to not run. I installed the
> .NET
> 2.0 SDK and did a small test by adding the website manually to my 2.0
> configuration in the same manner as 1.1. The control worked... I proceeded
> to
> create a 2.0 installer that users could run in addition to the 1.1
> installer,
> but when I tested it again I could not get the 1.1 control to appear in my
> web page. I then migrated the control to 2.0 hoping that with the 2.0
> settings correct and the control in 2.0 everything would work, but again I
> could not get the control to load.
>
> So a few questions:
> 1 - is this a bug? does the security in this case have to be configured in
> both 1.1 and 2.0 to allow a control hosted in a web page to run?
> 2 - If yes to the first question, is there a way to do all of this from
> one
> setup routine? Or does there need to be one in the 1.1 version and another
> one in the 2.0 version? I could not figure out how to iterate through both
> policy configurations from either 1.1 or 2.0.
>
> PLEASE HELP! I am desparate for a solution and my users are patiently
> waiting for this to start working again... thank you.
.
- Prev by Date: Re: NTFS folder permissions - Creator Owner issue (I think)
- Next by Date: Re: strange encryption behavior
- Previous by thread: Re: Hacked or.....Would appreciate expert help
- Next by thread: Windows 2003 SP1
- Index(es):
Relevant Pages
|