Convert to webapp not working for me
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: screencast.com/.../DQaATyHEJ
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"
/>
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?
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"
/>
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.
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.
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.