Upgrades Questions on upgrading to version 7.x.
Version 7.x > Upgrades > SearchBox error after upgrade View modes: 
User avatar
Member
Member
Aon_Vlado - 11/7/2012 4:40:47 PM
   
SearchBox error after upgrade
I upgraded my application from V6 to V7 and I got error on existing Smart search box web part:

[Error loading the WebPart 'SearchBox' of type 'SearchBox'] 
d:\WebCode\DS2Test\CMSWebParts\SmartSearch\SearchBox.ascx.cs(33): error CS1061: 'System.Web.UI.WebControls.TextBox' does not contain a definition for 'WatermarkText' and no extension method 'WatermarkText' accepting a first argument of type 'System.Web.UI.WebControls.TextBox' could be found (are you missing a using directive or an assembly reference?)

I do not get this error when I place a new Smart search box web part to the page. Is this a bug or do I do something wrong?

Thanks,
Vlado

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 11/8/2012 1:46:52 AM
   
RE:SearchBox error after upgrade
Hi,

I am unable to reproduce this issue. Have you made any customizations in the search box web part? There was a change in the CS file of this web part. Could oyu please check whether this file was updated with the file from the upgrade package?

Best regards,
Juraj Ondrus

User avatar
Member
Member
Aon_Vlado - 11/8/2012 7:39:16 AM
   
RE:SearchBox error after upgrade
No, we have not customized this web part and the file was updated. As I said when I delete the web part from and put it back it works.
This was done in test upgrade. I will let you know if this happens in QA environment as well once we do the upgrade.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 11/9/2012 3:41:08 AM
   
RE:SearchBox error after upgrade
Hi,

I guess you are using .Net 3.5, right? If so, could you please check the version of the AjaxControlToolkit.dll? this should extend the textbox control property in this .Net version. It should be v3.5.51116.0

Best regards,
Juraj Ondrus

User avatar
Member
Member
Aon_Vlado - 11/9/2012 7:02:47 AM
   
RE:SearchBox error after upgrade
No, we are using .NET 4.0

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 11/9/2012 7:42:06 AM
   
RE:SearchBox error after upgrade
That is strange, I am unable to reproduce the issue. What is the AjaxControlToolkit.dll file version please?

Best regards,
Juraj Ondrus

User avatar
Member
Member
Aon_Vlado - 11/9/2012 8:44:22 AM
   
RE:SearchBox error after upgrade
The version is 4.1.51116.0

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 11/12/2012 12:33:26 AM
   
RE:SearchBox error after upgrade
Thanks,

this version os OK for .NET 4.0 - however, I am unable to reproduce the issue in this case. What are the exact steps please?
Were there made any customizations before? I mean any customization not only in the search box web part.

Best regards,
Juraj Ondrus

User avatar
Member
Member
Aon_Vlado - 11/12/2012 6:43:13 AM
   
RE:SearchBox error after upgrade
We will upgrade other our environments by mid December. I will come back to this.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 11/14/2012 1:53:31 AM
   
RE:SearchBox error after upgrade
Hi again,

One more idea - could you please try reinstalling and re-registering .Net, e.g. using the aspnet_regiis.exe tool?

Best regards,
Juraj Ondrus

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 11/15/2012 7:15:13 AM
   
RE:SearchBox error after upgrade
Hi,

I think we have found the issue

For the search box, you are probably using custom layout and there is <asp:TextBox ... control. In version 7, there is <cms:CMSTextBox ... control with the watermark extension. So, you need to change this control in your custom layout (on Design tab open the web part properties and switch to Layout tab)


Best regards,
Juraj Ondrus

User avatar
Member
Member
Aon_Vlado - 11/15/2012 7:54:46 AM
   
RE:SearchBox error after upgrade
Juro,

You are right. There is asp:TextBox. You people in Kentico are the best!
Sorry and thank you.

Vlado