Parser Error on created Master with Codebehind
Version: 5.4.4010
I'm trying to upload a .master with a needed code-behind file. I have uploaded the files to the folder specified on Sitefinity's master page instructions. When I go to view/edit the template based on the master I uploaded I get a Parser Error Server Error in '/main' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
It cannot load the namespace.class from the codebehind, as called in the first line of the .master.
I've searched the forums and found a similar instance in version 4, saying to compile in Visual Studios. After compiling, it finds the codebehind but errors out on unloading an updatepanel within the .master. (BTW... This all works outside of Sitefinity.)
What might I be missing? Thanks!
Dawn,
I ran up against this once...pretty sure this post helped me solve it. If that doesn't work out, I can try to dig up another solution. :)
@Dawn
Never came across this error. I usually just forget to build my Sitefinity App and upload the SitefinityApp.dll to the server along with my .master.
Looking forward to your findings.
Markus
Hi Dawn,
Can you let us know whether you have managed to resolve the problems on your end? Also if you still encounter errors with the update panel, can you let us know in more details, what actual errors you are receiving?
Regards,
Victor Velev
the Telerik team
Thanks, Tim. I'm still getting the error:
Server Error in '/' Application.
Cannot unregister UpdatePanel with ID 'SupNavBar' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported.
Parameter name: updatePanel
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the
code.
Exception Details: System.ArgumentException: Cannot unregister UpdatePanel with ID 'SupNavBar' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported.
Parameter name: updatePanel
The .master has a .cs behind it. I'm trying to have a pull down menu which opens/closes on click of an imagebutton from within the updatepanel. I have moved from an asp:UpdatePanel to using an sf:SitefinityUpdatePanel, I have added the code from the link Tim provided. I continue to get the error above.
Sorry for the delay in my response - I took an extended weekend vacation.
Hi Dawn,
The error reads:
Also please note that Sitefinity has the ability to inject ScriptManager if your control requires it. You can decorate your user control with the below attribute so that Sitefinity knows that this user control needs a ScriptManager:
[Telerik.Sitefinity.Modules.Pages.Web.UI.RequireScriptManager(true)]
public partial class WebUserControl : System.Web.UI.UserControl
Just for closure... I never did get this to work and just pulled the code out to a user control. That works well enough. Thanks.