More in this section

Forums / Bugs & Issues / Convert to webapp not working for me

Convert to webapp not working for me

7 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    22 Nov 2011
    Link to this post
    My ascx was having an issue adding new items to the designer so I deleted the designer with the intent of re-adding via the Convert To Web Application right-click context menu.

    However I get this error: http://screencast.com/t/DQaATyHEJ
  2. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    22 Nov 2011
    Link to this post
    Found the Culprit(s)

    When I add these lines to the ascx it craps out
    <sitefinity:JavaScriptEmbedControl ID="JavaScriptEmbedControl1" runat="server" ScriptEmbedPosition="BeforeBodyEndTag" Url="~/UserControls/DashWidgets/Documents/widget-documents.js" />
    <sitefinity:CssEmbedControl ID="CssEmbedControl1" runat="server" Url="~/UserControls/DashWidgets/Documents/widget-documents.less" />

    (As seen here)
    http://screencast.com/t/h5dBW71VQwH
  3. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    24 Nov 2011
    Link to this post
    Hi Steve,

    Just a wild guest - the <sitefinity:> prefix is by default registered in your web.config like this:

    <add tagPrefix="sitefinity" namespace="Telerik.Sitefinity.Web.UI.Fields" assembly="Telerik.Sitefinity" />

    However the JavaScriptEmbedControl control is in a different namespace - maybe the problem comes from a missing @Register tag?

    Kind regards,
    Lubomir Velkov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  4. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    06 Dec 2011
    Link to this post
    Hmm interesting...this is what I have defined

    <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
    <add tagPrefix="sitefinity" namespace="Telerik.Sitefinity.Web.UI.Fields" assembly="Telerik.Sitefinity" />
    <add tagPrefix="sitefinity" namespace="Telerik.Sitefinity.Web.UI" assembly="Telerik.Sitefinity" />
    <add tagPrefix="sitefinity" namespace="Telerik.Sitefinity.Web.UI.PublicControls" assembly="Telerik.Sitefinity" />

    One of these causing a conflict you think?
  5. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    07 Dec 2011
    Link to this post
    Hello Steve,

    No, I don't think these should cause any conflicts. I would like to ask a logical question - does this problem happen on some other web application project or just in Sitefinity? It looks to me like this is not a Sitefinity issue.

    Regards,
    Lubomir Velkov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    07 Dec 2011
    Link to this post
    Well...I mean it's clearly VS2010 doing something strange, but it ONLY happens when you have a phsyical JS\CSS Embedd control on the page.

    Like if you put one on the page, then try to add another control after it (Label Control for example), it doesn't work.  The Label doesnt get added to the .designer.  If you then delete the JS\CSS Embedd controls, the label is then back into the .desiger file.
  7. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    10 Dec 2011
    Link to this post
    Hi Steve,

    I was able to reproduce the issue. I'm not sure what is causing this however. The type initializer for the Res class is a private static constructor with not much code in it. I'm sorry I can't give you a workaround at the moment. We will investigate this further.

    Thank you for reporting the issue.

    Greetings,
    Lubomir Velkov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
7 posts, 0 answered