473,725 Members | 2,243 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Issues With User Control Embedded Into Web Page Since Installing .NET 2.0

Hi,

I have a rich Forms UserControl which is embedded into a web page. Since
installing .NET 2.0 on the clients, the control stopped loading completly.

- I disabled security completly using caspol -s off => no effect
- I enabled fussion logging => no single entry generated
- I enabled the IEHost log => nothing created
- Changed to another client machine => same issues, same results
- I started writing a new UserControl from scratch and deployed it to the
same server. The control could also not be loaded.

I deployed the same test project to another 2003 server in the same domain,
with equal patch levels (SP1 and latest patches installed) and it worked.

Perhaps a naming issue?

- I tried to change the names => no result
- I compared the HTTP requests to the different server => nothing special
I have no other clue where to start searching!

- The issues stated above are reproducable from any client, such it should
be a server or framework issue.
- I even have a customer which experienced the same problems
- The problem exists for two completly different client applications
Any help appreciated.
Markus
Feb 9 '06 #1
3 1886
Hi Markus,

Welcome to the ASPNET newsgroup.

From your description, you have some winform controls which are hosted in
IE. The controls work well in IE when you have .net framework 1.0 and 1.1
installed on the client machine, but stop working after you installed .net
framework 2.0 , correct?

As for IE hosted winform control, it will always use the latest .net
framework installed on the client computer. Since you've installed .net
framework 2.0 on the client machine, the IE host control will load the .net
framework 2.0 , also the CAS is also controled by the .net framework 2.0's
CAS setting. Is your CAS policy setting configured in the .net framework
2.0's CAS configuration tool? If not ,you should try set the 2.0's CAS
setting and test again. If that also not work, there may have something
else that may cause the problem, so far I can not make sure what's the
possible cause, but I suggest you create a simple control through .net 2.0
and test is in IE to see whether it can work. If convenient, would you also
post us the page's content and the IIS virtual dir conifiguration info so
that we can also have a look?

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Feb 10 '06 #2
Hi Steve,

thanks for your reply.

I allready knew that IE uses the latest framework. And I'm definitly sure
that I'm using the 2.0 tools and not the 1.1 policy / binding / whatever
tools.

From my previous reply:

" I started writing a new UserControl from scratch and deployed it to the
same server. The control could also not be loaded."

To again clarify my problem:

- I'm definitly sure that I'm using the 2.0 tools and not the 1.1 policy /
binding / whatever tools.
- I'm sure it is not a security issue, at least not one of the caspol which
I disabled completly using "caspol -s off"
- I'm sure the control gets downloaded by the browser into the temporary IE
directories and I'm sure that the downloaded version matches the dll's I
deployed onto the server
- Windows Firewall is completly disabled through Group Policy
- Virus Scanner has been temporarily turned off, on both client and server
- I'm sure that the problem is not dependant on the control code itself

It just doesn't load into the IEHost which I could conclude from none of the
logs, neither IEHost-log nor binding-log are beeing created at all.

My remaining and only problem is why does it not load from that specific
server. It must be something within the communication and not the control
itself.

---- hours later ---

I currently did a network trace and found one significant difference between
the two servers: one is doing chunced HTTP response encoding, the other one
not. I disabled my browser doing HTTP 1.1 and the control loads (HTTP 1.0
does not allow chunced encoding!).

I opened a case via Microsoft Support.

Thanks for your help.
Markus

"Steven Cheng[MSFT]" <st*****@online .microsoft.com> schrieb im Newsbeitrag
news:ro******** ********@TK2MSF TNGXA01.phx.gbl ...
Hi Markus,

Welcome to the ASPNET newsgroup.

From your description, you have some winform controls which are hosted in
IE. The controls work well in IE when you have .net framework 1.0 and 1.1
installed on the client machine, but stop working after you installed .net
framework 2.0 , correct?

As for IE hosted winform control, it will always use the latest .net
framework installed on the client computer. Since you've installed .net
framework 2.0 on the client machine, the IE host control will load the
.net
framework 2.0 , also the CAS is also controled by the .net framework 2.0's
CAS setting. Is your CAS policy setting configured in the .net framework
2.0's CAS configuration tool? If not ,you should try set the 2.0's CAS
setting and test again. If that also not work, there may have something
else that may cause the problem, so far I can not make sure what's the
possible cause, but I suggest you create a simple control through .net
2.0
and test is in IE to see whether it can work. If convenient, would you
also
post us the page's content and the IIS virtual dir conifiguration info so
that we can also have a look?

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)



Feb 10 '06 #3
Thanks for your followup Markus,

Please feel free to post here if you got any progress or shared the result
with us.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 13 '06 #4

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

Similar topics

2
7773
by: Russell | last post by:
Morning, I have been having trouble with a my embedded user control not being able to see the view state that I set in its parent page. I have done a test with the following and I still cant get it to work! PARENT PAGE (default.aspx): private void Page_Load(object sender, System.EventArgs e)
0
892
by: Harry Longleat | last post by:
Hello, as part of our web application we embed a .net control into IE. In which we expose some events for javascript to catch. We've created a code group/ permission set and signed the control with a strong name. Before installing .net 1.1 sp1 this ran perfectly unfortunately since installing sp 1 the event doesn't get hooked up initially it is necessary to click on the body of the page then the control to actually get the event to link...
0
1698
by: clintonG | last post by:
I applied aspnet_regsql to SQL2K which was working fine throughout Beta 2 development. After installing Visual Studio and SQL Express RTM my application has blown up. Logging in to the application became realllllllllllly slow. Content in LoginView Role Groups was not displaying even after a user in a role had logged in. It was taking about 15 seconds or so for the login control to display when the login link was selected on the homepage....
10
3084
by: Robert | last post by:
I have an app that was originally 1.1, now migrated to 2.0 and have run into some sporadic viewstate errors...usually saying the viewstate is invalid, eventvalidation failed or mac error. My web config does specify a machinekey setting: <machineKey validationKey="447C05E8B3A71401CC4CAE5513A7F1A3494A3618EE819316AAD1D58433F236A759D66FB4154500E01EB4E1BC1DE42046E2D652D391CB8367A1649438867A02EB"...
2
1558
by: | last post by:
I want to use codebehind to pass property values to a control that I've embedded INSIDE of a user control. In other words, let's say I have the following: MyPage.aspx ....with the following control placed on it... MyUserControl.ascx .... and inside of MyUserControl.ascx, is an instance of .... MyCommercialUploadControl1
0
1031
by: Mythran | last post by:
I have: Class Library - User Control with Build Action set to "Embedded Resource" in a class library. User Control code-behind file Build Action set to "Compile". Web Application - Web page that needs to display the user control.
0
1054
by: Mythran | last post by:
I apologize for the need to x-post this thread. The original thread is getting pretty old and no replies in microsoft.public.dotnet.framework.aspnet. Also, I'm aware that this isn't a C# only issue, but since most of y'all know asp.net as well, I'm sure someone can help :) Thanks .... Mythran Original Post Below ----------------------------------------------------------------- I have:
2
2319
by: ccbalapatel | last post by:
Hi, We have recently converted our code to ASP.NET 2.0. We have an user control that is embedded inside the page. The user control has a link button and the event handler for the link button is written inside the user control. When the link button is clicked, the page is posted back and the page_load method of the user control also executes fine. But, the event handler for the link button is not called. The same code works fine on ASP.NET...
3
4188
by: cfps.Christian | last post by:
I'm trying to have a javascript file included with my usercontrol, but when the page loads it says that none of my JS methods are there. What are the steps that I need to take to get a javascript file to go with the user control so that I don't have to load the script onto the page that is calling the control?
0
8752
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9401
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9257
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9179
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8099
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6702
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3228
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.