Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mikael Mørup 297 posts 326 karma points
    Mar 03, 2010 @ 09:27
    Mikael Mørup
    0

    Usercontrol issue

    I have a usercontrol that works perfectly on my development PC, but when i move it to my server the user control wont load and i get this error (in a nice red box):

    Error creating control (/usercontrols/IpEdit.ascx).
    Maybe file doesn't exists or the usercontrol has a cache directive, which is not allowed! See the tracestack for more information!

     

    In the trace i can see this:

    Trace Information
    Category    Message    From First(s)    From Last(s)
    aspx.page    Begin PreInit        
    umbracoInit    handling request    4,30222276853622E-05    0,000043


    Unhandled Execution Error    
    Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
      at System.Guid..ctor(String g)
      at umbraco.UmbracoDefault.Page_PreInit(Object sender, EventArgs e)
      at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
      at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
      at System.EventHandler.Invoke(Object sender, EventArgs e)
      at System.Web.UI.Page.OnPreInit(EventArgs e)
      at System.Web.UI.Page.PerformPreInit()
      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

     

    I have of course checked that all files are where they should be. Both environments are  Umbraco version 4.0.2.1

    Does anybody know what the problemcan be?

    Thanks

    Mikael

  • Tim 225 posts 690 karma points
    Mar 03, 2010 @ 10:04
    Tim
    0

    The first thing worth checking is your permissions:

    http://umbraco.org/documentation/books/important-files-and-folder-structure/permissions

    Just in case this is what's causing the issue.

    Tim

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Mar 03, 2010 @ 10:42
    Peter Dijksterhuis
    0

    Can it be you have a scriptmanager in your local install and not in the copy on the server? If you add a scriptmanager to your template, it might help.

    Peter

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Mar 03, 2010 @ 12:31
    Aaron Powell
    8

    Easiest way to debug problems with a macro usercontrol is to go to Developer -> Macros -> macro name -> Browse Properties

    This will show you the full stack trace.

    Most likely thoughts are:

    • When deploying the ascx file became corrupt and malformed
    • The assembly didn't make it up

  • Mikael Mørup 297 posts 326 karma points
    Mar 03, 2010 @ 14:46
    Mikael Mørup
    0

    Thanks guys.

     

    Using Slace's advice i quickly found out is was a connectionstring issue (diferent connectionstrings in the two environments).

    Everything is working fine now.

    Mikael

  • Hamish 96 posts 154 karma points
    Oct 14, 2010 @ 08:29
    Hamish
    0

    Awesome - I had the following error:

    Error creating control (usercontrols/DropdownLinkForm.ascx).
    Maybe file doesn't exists or the usercontrol has a cache directive, which is not allowed! See the tracestack for more information!

    Using the same information by Slace - i was able to solve my issue - cheers slace

  • Lars 66 posts 136 karma points
    Jan 13, 2011 @ 15:37
    Lars
    0

    Yep, Slace has a quite good idea :-), it helped solving my problem the same way

  • kunta1 7 posts 27 karma points
    Jun 19, 2012 @ 19:59
    kunta1
    0

    hi - thanks for the suggestion but these cookiecuter solutions are worthless. If there is someone who knows how postbacks and usercontrols work, helpful information would be appreciated.

    this is a very simple matter that works perfectly fine in dev envoronmnet (asp.net only) but when moved to umbraco it has been nothing but problems and a waste of over two days time. The issue is with a very very simple usercontrol in an umbraco masterpage like such.

    usercontrol content:


                                                Username:
                                     Additional login information                                                              
                                               

                                               
                                       

                                               

                                     


                                          
                                            Reset
                                            Additional login information
                                        

     

    masterpage content

    <%@ Master Language="C#" MasterPageFile="~/masterpages/masterpage.master" Inherits="secure_check" AutoEventWireup="true" %>

    <asp:content ContentPlaceHolderId="CP2" runat="server">

    <ajaxToolkit:ToolkitScriptManager ID="tsm1" runat="server" LoadScriptsBeforeUI="false" CombineScripts="true" EnablePartialRendering="true" ScriptMode="Release" />
     <section id="content">                   
         <umbraco:Macro Alias="myMacro1" runat="server">umbraco:Macro>
      section>
    asp:content>

     

    THE PROBLEM: simple -- no postback event occurs when clicking the checkbox; an autopostback should occur and the field should change to either "checked" or "unchecked" yet no postback. I am looking at the get/post request captures in firebug and each time the checkbox is selected no post occurs; simply the page refreshes the state. The page is in secure mode (SSL). Again this is pretty simple and basic and it works fine in asp.net dev testing environment. Oh, yes the page has a "form" with a "runat" equals server tag. Yes i have check the "browse properties" of the macro -- no problems. Does anyone have ideas?

  • kunta1 7 posts 27 karma points
    Jun 19, 2012 @ 20:05
    kunta1
    0

    here is the checkbox:

                                       <p>
                                            <asp:CheckBox ID="chgpwd" EnableViewState="true" runat="Server" AutoPostBack="true" Checked="False" />
                                            Reset

                                            <img id="Image4" runat="server" src="image source path here" />
                                          </p>

  • Alan 5 posts 25 karma points
    Feb 07, 2013 @ 09:01
    Alan
    0

    I just encountered the same problems when I deploy some ascx files to the remote server. After I follow slace's advice, I see the following errors.

    I have tried to set the permissions for the folders and copied all of the ascx files to the remote folder. Finally, the content of MyMessageControl.ascx shows. But the error still there in macro properties browser

    My Credits goes here

     

  • Umair Hafeez Mughal 5 posts 25 karma points
    Apr 15, 2013 @ 10:13
    Umair Hafeez Mughal
    0

    Thanks to Slace ... it was just a piece of cake to get to the real problem :-)

  • Mpumzi Gedeni 4 posts 24 karma points
    Jun 23, 2015 @ 11:33
    Mpumzi Gedeni
    0

    I see everybody is thanking Slace for the solution ... Where can I find Slace's solution ? as I can't find it on this page.

Please Sign in or register to post replies

Write your reply to:

Draft