• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

BMFResposio
#1 Posted : Thursday, December 20, 2007 7:18:00 AM(UTC)
BMFResposio

Rank: Member

Joined: 3/15/2007(UTC)
Posts: 126

I am receiving the following errors when I try to connect to any of the myaccount pages.

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Line 26:
Line 27: Sub Page_Load(ByVal Sender As Object, ByVal E As EventArgs) Handles MyBase.Load
Line 28: Utilities.WebForms.MakePageNonCacheable(Me)
Line 29: bvinField.Value = SessionManager.GetCurrentUserId

If I comment out line 28 the pages will load. Any ideas would be helpful?

Thanks,
BMFResposio
#2 Posted : Thursday, December 20, 2007 8:16:47 AM(UTC)
BMFResposio

Rank: Member

Joined: 3/15/2007(UTC)
Posts: 126

I just discovered that this error is being thrown for the cart pages also. Actually any page that requires HTTPS. I should have added that the site I am experiencing the problem is up to SP3 and hotfixes up to "I".
jetheredge
#3 Posted : Friday, December 21, 2007 11:21:49 AM(UTC)
jetheredge

Rank: Member

Joined: 3/1/2006(UTC)
Posts: 1,142

It is because you have "<% %>" tags in the head section of the page. In asp.net you can not programmatically modify the "head" section (which MakePageNonCacheable is trying to do) if you have <% %> tags in the head.
Justin Etheredge
Senior Software Engineer
BVSoftware
BMFResposio
#4 Posted : Monday, December 24, 2007 7:51:53 AM(UTC)
BMFResposio

Rank: Member

Joined: 3/15/2007(UTC)
Posts: 126

I found the problem. Thanks Justin and have a Merry Christmas!
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012