Upgrading best practice.

Posted by: roger.porter on 2 June 2020, 9:56 pm EST

  • Posted 2 June 2020, 9:56 pm EST

    Hi,

    I have a new virtual development PC where I will be upgrading my web application from VS2015 to VS2019. At the same time I want to update my component one software. Would it be best to install the latest version of the component one tools first and then load my web app in VS 2019? If so what will I need to do so that my web app is using the new version of the Component One tools and will I need to alter anything when doing a fresh deploy to the host server?

    Many Thanks,

    Roger
  • Replied 3 June 2020, 3:16 pm EST

    Hi Roger,
    To upgrade to the latest ComponentOne without any issue, please follow the given below steps:

    • Open your WebApp in previous machine to make WebApp non-specific version

    • Open licenses.licx file

    • Remove version information , Version=x.x.xxxxx.xxx, Culture=neutral, PublicKeyToken=xxxxxxxxxxxxxx

    • Repeat the same with web.config file

    • Select to the C1.Web.Wijmo.Controls.4 dll

    • Check dll location and Specific version

    • If specific version is true, set it to false and save the solution

    • Copy Path for the DLL "C:\Program Files (x86)\ComponentOne\ASP.NET Web Forms Edition\bin\v4.5.2\C1.Web.Wijmo.Controls.45.dll"

    • Delete the bin and obj folder

    • Install the newer version on new development machine @C:\Program Files (x86)\ComponentOne location

    • Copy the webapp to new machine

    • Open the webapp in Visual Studio

    • Rebuild the application


    The application should be executed without any issue.

    Hope it helps! Please let us know if you have any further queries.

    Regards,
    Manish Gupta
  • Replied 8 June 2020, 8:38 pm EST

    Hi Manish,

    Thank you for your assistance.

    When I remove the version number for the following line in my web.config I get an error.
    <add assembly="C1.Web.Wijmo.Controls.Design.4, Version=4.0.20172.264, Culture=neutral, PublicKeyToken=9B75583953471EEA" />

    Thanks,
  • Replied 8 June 2020, 8:43 pm EST

    Hi Manish,

    I am a bit confused about this line 'Select to the C1.Web.Wijmo.Controls.4 dll'. Is this the one in the Bin folder of my project? Also I don't see 'If specific version is true, set it to false and save the solution'.

    Thanks,
  • Replied 8 June 2020, 10:15 pm EST

    Hi Manish,

    Sorry for all the emails but when I try and build my web app I get this error: -

    licenses.licx: Could not transform licenses file into a binary resource. Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
    Validating Web Site

    Thanks,
  • Replied 9 June 2020, 10:38 pm EST

    Hi Roger,
    The web.config file should be updated as follow:
    <add assembly="C1.Web.Wijmo.Controls.Design.4" />


    >>Select to the C1.Web.Wijmo.Controls.4 dll
    It was from the reference in Asp WebForm project but you have Asp WebSite project.
    So you just need to delete the C1 older entry and add a reference to the new one.

    Regards,
    Manish Gupta

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels